diff --git a/.travis.yml b/.travis.yml index dc63b2e5..9a37f31c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,15 @@ +sudo: false language: node_js node_js: -- "0.10" + - "0.10" + - "0.12" before_install: -- npm install -g npm@~1.4.18 + - npm install -g npm@~1.4.28 before_script: -- npm install -g istanbul -- npm install coveralls -- npm install node-red -#- npm install git+https://github.com/node-red/node-red.git -- export NODE_RED_HOME=`pwd`/node_modules/node-red -- (cd $NODE_RED_HOME ; npm install nock@~0.48.0 ) + - npm install -g istanbul grunt-cli + - npm install coveralls + - npm install git+https://github.com/node-red/node-red.git + - export NODE_RED_HOME=`pwd`/node_modules/node-red + - (cd $NODE_RED_HOME ; npm install nock@~0.48.0) script: -- istanbul cover ./node_modules/.bin/grunt --report lcovonly && istanbul report text && ( cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js || true ) && rm -rf coverage + - istanbul cover grunt --report lcovonly && istanbul report text && ( cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js || true ) && rm -rf coverage diff --git a/Gruntfile.js b/Gruntfile.js index bfab95e5..6d936e19 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -42,7 +42,7 @@ module.exports = function(grunt) { //"sub": true, // don't warn that foo['bar'] should be written as foo.bar ////"unused": true, // Check for unused functions ////"forin":false, // turn off check for "for (x in y...)" - "reporter": require('jshint-stylish') + //"reporter": require('jshint-stylish') }, all: { src: ['*/*.js','*/*/*.js'], @@ -59,8 +59,8 @@ module.exports = function(grunt) { inlinelint: { html: ['*/*/*.html'], options: { - jshintrc: ".jshintrc", - reporter: require('jshint-stylish') + jshintrc: ".jshintrc" + //,reporter: require('jshint-stylish') } }, jscs: { diff --git a/function/rbe/icons/rbe.png b/function/rbe/icons/rbe.png index 52aaba97..bc397210 100644 Binary files a/function/rbe/icons/rbe.png and b/function/rbe/icons/rbe.png differ diff --git a/hardware/Arduino/README.md b/hardware/Arduino/README.md index e85f5c10..b89fa78b 100644 --- a/hardware/Arduino/README.md +++ b/hardware/Arduino/README.md @@ -3,10 +3,8 @@ node-red-node-arduino A Node-RED node to talk to an Arduino running firmata. -**Note** : This is the same node as is/was in the core of Node-RED. If you already -have it installed you do NOT need this node. However it will be deprecated from -the core in due course, at which point you will need to install it from here if -still required. +**Note** : This is the same node as was in the core of Node-RED. +As of v0.10.8 you will need to install it from here if still required. Install ------- diff --git a/hardware/Arduino/package.json b/hardware/Arduino/package.json index 247b5136..3129d275 100644 --- a/hardware/Arduino/package.json +++ b/hardware/Arduino/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-arduino", - "version" : "0.0.1", + "version" : "0.0.2", "description" : "A Node-RED node to talk to an Arduino running firmata", "dependencies" : { "arduino-firmata" : "0.3.2" diff --git a/hardware/sensorTag/79-sensorTag.html b/hardware/sensorTag/79-sensorTag.html index 1d0c185d..18f870e7 100644 --- a/hardware/sensorTag/79-sensorTag.html +++ b/hardware/sensorTag/79-sensorTag.html @@ -1,5 +1,5 @@ - - - - - - - @@ -51,8 +57,9 @@ RED.nodes.registerType('pushover',{ category: 'output', defaults: { - title: {value:""}, name: {value:""}, + device: {value:""}, + title: {value:""}, priority: {value:0} }, credentials: { @@ -72,7 +79,7 @@ }, oneditprepare: function() { $("#node-input-priority").spinner({ - min:-1, + min:-2, max:2 }); } diff --git a/social/pushover/57-pushover.js b/social/pushover/57-pushover.js index d05de452..9778e3fc 100644 --- a/social/pushover/57-pushover.js +++ b/social/pushover/57-pushover.js @@ -22,6 +22,7 @@ module.exports = function(RED) { function PushoverNode(n) { RED.nodes.createNode(this,n); this.title = n.title; + this.device = n.device; this.priority = n.priority; var credentials = this.credentials; if ((credentials) && (credentials.hasOwnProperty("pushkey"))) { this.pushkey = credentials.pushkey; } @@ -43,9 +44,10 @@ module.exports = function(RED) { this.on("input",function(msg) { var titl = this.title || msg.topic || "Node-RED"; var pri = this.priority || msg.priority || 0; + var dev = this.device || msg.device; if (isNaN(pri)) {pri=0;} if (pri > 2) {pri = 2;} - if (pri < -1) {pri = -1;} + if (pri < -2) {pri = -2;} if (typeof(msg.payload) === 'object') { msg.payload = JSON.stringify(msg.payload); } @@ -58,7 +60,8 @@ module.exports = function(RED) { retry: 30, expire: 600 }; - //console.log("Sending",pushmsg); + if (dev) { pushmsg.device = dev; } + //node.log("Sending "+JSON.stringify(pushmsg)); pusher.send( pushmsg, function(err, response) { if (err) { node.error("Pushover Error: "+err); } //console.log(response); @@ -73,6 +76,6 @@ module.exports = function(RED) { credentials: { deviceid: {type:"text"}, pushkey: {type: "password"} - } + } }); } diff --git a/social/pushover/README.md b/social/pushover/README.md index 3ff18ebc..b8b6cd94 100644 --- a/social/pushover/README.md +++ b/social/pushover/README.md @@ -16,7 +16,8 @@ Usage Uses Pushover to push the msg.payload to a device that has the Pushover app installed. -Optionally uses **msg.topic** to set the title, and **msg.priority** to set the priority, if not already set in the properties. +Optionally uses **msg.topic** to set the title, **msg.device** to set the device +and **msg.priority** to set the priority, if not already set in the properties. The User-key and API-token are stored in a separate credentials file. diff --git a/social/pushover/package.json b/social/pushover/package.json index b10cb564..a3e98d44 100644 --- a/social/pushover/package.json +++ b/social/pushover/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pushover", - "version" : "0.0.4", + "version" : "0.0.5", "description" : "A Node-RED node to send alerts via Pushover", "dependencies" : { "pushover-notifications" : "0.2.2" diff --git a/social/twitter/27-twitter.html b/social/twitter/27-twitter.html index 8ebda615..456b4c20 100644 --- a/social/twitter/27-twitter.html +++ b/social/twitter/27-twitter.html @@ -39,6 +39,7 @@ }, exportable: false, oneditprepare: function() { + var twitterConfigNodeId = this.id; var clickhere = this._("twitter.label.clickhere"); var twitterID = this._("twitter.label.twitter-id"); function showTwitterAuthStart() { @@ -204,6 +205,8 @@

To send a Direct Message (DM) - use a payload like "D {username} {message}"

If msg.media exists and is a Buffer object, this node will treat it as an image and attach it to the tweet.

+

If msg.params exists and is an object of name:value pairs, + this node will treat it as parameters for the update request.