mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
update redmes and some colours for blink1, ledborg and digirgb
This commit is contained in:
parent
7135bb3067
commit
96bfc5b672
@ -24,17 +24,17 @@ module.exports = function(RED) {
|
||||
var gpioCommand = __dirname+'/nrgpio';
|
||||
|
||||
if (!fs.existsSync("/dev/ttyAMA0")) { // unlikely if not on a Pi
|
||||
//util.log("Info : Ignoring Raspberry Pibrella specific node.");
|
||||
throw "Info : Ignoring Raspberry Pibrella specific node.";
|
||||
//util.log("Info : Ignoring Raspberry LEDborg specific node.");
|
||||
throw "Info : Ignoring Raspberry LEDborg specific node.";
|
||||
}
|
||||
|
||||
if (!fs.existsSync("/usr/share/doc/python-rpi.gpio")) {
|
||||
util.log("[rpi-pibrella] Info : Can't find RPi.GPIO python library.");
|
||||
util.log("[rpi-ledborg] Info : Can't find RPi.GPIO python library.");
|
||||
throw "Warning : Can't find RPi.GPIO python library.";
|
||||
}
|
||||
|
||||
if ( !(1 & parseInt ((fs.statSync(gpioCommand).mode & parseInt ("777", 8)).toString (8)[0]) )) {
|
||||
util.log("[rpi-pibrella] Error : "+gpioCommand+" needs to be executable.");
|
||||
util.log("[rpi-ledborg] Error : "+gpioCommand+" needs to be executable.");
|
||||
throw "Error : nrgpio must to be executable.";
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-ledborg",
|
||||
"version" : "0.0.4",
|
||||
"version" : "0.0.5",
|
||||
"description" : "A Node-RED node to control a PiBorg LedBorg board for a Raspberry Pi.",
|
||||
"dependencies" : {
|
||||
},
|
||||
|
@ -54,7 +54,7 @@ module.exports = function(RED) {
|
||||
// these are the @cheerlight ones.
|
||||
var colors = {"red":"#FF0000","green":"#00FF00","blue":"#0000FF","cyan":"#00FFFF",
|
||||
"white":"#FFFFFF","warmwhite":"#FDF5E6","oldlace":"#FDF5E6","purple":"#800080","magenta":"#FF00FF",
|
||||
"yellow":"#FFFF00","amber":"#FFD200","orange":"#FFA500","black":"#000000","pink","#FF69B4"}
|
||||
"yellow":"#FFFF00","amber":"#FFD200","orange":"#FFA500","black":"#000000","pink":"#FF69B4"}
|
||||
if (msg.payload.toLowerCase() in colors) {
|
||||
var c = colors[msg.payload.toLowerCase()];
|
||||
r = parseInt(c.slice(1,3),16);
|
||||
|
@ -13,7 +13,8 @@ and <a href="https://github.com/todbot/blink1/blob/master/linux/51-blink1.rules"
|
||||
Install
|
||||
-------
|
||||
|
||||
Run the following command in the root directory of your Node-RED install
|
||||
Run the following command in the user directory of your Node-RED install.
|
||||
This is usually `~/.node-red`
|
||||
|
||||
npm install node-red-node-blink1
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-blink1",
|
||||
"version" : "0.0.5",
|
||||
"version" : "0.0.6",
|
||||
"description" : "A Node-RED node to control a Thingm Blink(1)",
|
||||
"dependencies" : {
|
||||
"node-blink1" : "0.1.5"
|
||||
|
@ -24,7 +24,8 @@
|
||||
|
||||
<script type="text/x-red" data-help-name="digiRGB">
|
||||
<p>Simple output node to drive digispark RGB</p>
|
||||
<p>Requires <b>msg.payload</b> to be of the form 'r,g,b'</p>
|
||||
<p>Requires <b>msg.payload</b> to be of the form 'r,g,b' decimals 0-255, or a hex string "#rrggbb". For example:</p>
|
||||
<ul><li>Red : "255,0,0"</li><li>Green : "#00FF00"</li></ul>
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
@ -6,7 +6,8 @@ A <a href="http://nodered.org" target="_new">Node-RED</a> node to control a <a h
|
||||
Install
|
||||
-------
|
||||
|
||||
Run the following command in the root directory of your Node-RED install
|
||||
Run the following command in the home directory of your Node-RED install.
|
||||
This is usually `~/.node-red`
|
||||
|
||||
npm install node-red-node-digirgb
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-digirgb",
|
||||
"version" : "0.0.2",
|
||||
"version" : "0.0.3",
|
||||
"description" : "A Node-RED node to control a Digispark RGB LED",
|
||||
"dependencies" : {
|
||||
"node-hid" : "0.3.1"
|
||||
@ -18,15 +18,15 @@
|
||||
}
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Dave Conway-Jones",
|
||||
"email": "ceejay@vnet.ibm.com",
|
||||
"url": "http://nodered.org"
|
||||
},
|
||||
{
|
||||
"name": "Ben Hardill",
|
||||
"email": "hardillb@gmail.com",
|
||||
"url": "http://www.hardill.me.uk/wordpress/"
|
||||
},
|
||||
{
|
||||
"name": "Dave Conway-Jones",
|
||||
"email": "ceejay@vnet.ibm.com",
|
||||
"url": "http://nodered.org"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user