1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

fix gpio node ok status label

This commit is contained in:
Dave Conway-Jones 2019-10-06 09:51:26 +01:00
parent b35de37ec1
commit 4979ad8966
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
6 changed files with 13 additions and 9 deletions

View File

@ -45,7 +45,7 @@ module.exports = function(RED) {
if (node.pin !== undefined) { if (node.pin !== undefined) {
node.child = spawn(gpioCommand, ["in",node.pin,node.intype,node.debounce]); node.child = spawn(gpioCommand, ["in",node.pin,node.intype,node.debounce]);
node.running = true; node.running = true;
node.status({fill:"yellow",shape:"dot",text:"common.status.ok"}); node.status({fill:"yellow",shape:"dot",text:"rpi-gpio.status.ok"});
node.child.stdout.on('data', function (data) { node.child.stdout.on('data', function (data) {
var d = data.toString().trim().split("\n"); var d = data.toString().trim().split("\n");
@ -156,7 +156,7 @@ module.exports = function(RED) {
node.status({fill:"green",shape:"dot",text:node.level}); node.status({fill:"green",shape:"dot",text:node.level});
} else { } else {
node.child = spawn(gpioCommand, [node.out,node.pin,node.freq]); node.child = spawn(gpioCommand, [node.out,node.pin,node.freq]);
node.status({fill:"yellow",shape:"dot",text:"common.status.ok"}); node.status({fill:"yellow",shape:"dot",text:"rpi-gpio.status.ok"});
} }
node.running = true; node.running = true;
@ -220,7 +220,7 @@ module.exports = function(RED) {
if (allOK === true) { if (allOK === true) {
node.child = spawn(gpioCommand+".py", ["mouse",node.butt]); node.child = spawn(gpioCommand+".py", ["mouse",node.butt]);
node.status({fill:"green",shape:"dot",text:"common.status.ok"}); node.status({fill:"green",shape:"dot",text:"rpi-gpio.status.ok"});
node.child.stdout.on('data', function (data) { node.child.stdout.on('data', function (data) {
data = Number(data); data = Number(data);
@ -271,7 +271,7 @@ module.exports = function(RED) {
if (allOK === true) { if (allOK === true) {
node.child = spawn(gpioCommand+".py", ["kbd","0"]); node.child = spawn(gpioCommand+".py", ["kbd","0"]);
node.status({fill:"green",shape:"dot",text:"common.status.ok"}); node.status({fill:"green",shape:"dot",text:"rpi-gpio.status.ok"});
node.child.stdout.on('data', function (data) { node.child.stdout.on('data', function (data) {
var b = data.toString().trim().split(","); var b = data.toString().trim().split(",");

View File

@ -52,7 +52,8 @@
"closed" : "geschlossen", "closed" : "geschlossen",
"not-running" : "nicht aktiv", "not-running" : "nicht aktiv",
"not-available" : "nicht verfügbar", "not-available" : "nicht verfügbar",
"na" : "N/A: __Wert__" "na" : "N/A: __Wert__",
"ok": "OK"
}, },
"errors" : { "errors" : {
"ignorenode" : "Raspberry Pi-spezifische Nodes inaktiv", "ignorenode" : "Raspberry Pi-spezifische Nodes inaktiv",

View File

@ -53,7 +53,8 @@
"closed": "closed", "closed": "closed",
"not-running": "not running", "not-running": "not running",
"not-available": "not available", "not-available": "not available",
"na": "N/A : __value__" "na": "N/A : __value__",
"ok": "OK"
}, },
"errors": { "errors": {
"ignorenode": "Raspberry Pi specific node set inactive", "ignorenode": "Raspberry Pi specific node set inactive",

View File

@ -52,7 +52,8 @@
"closed": "切断", "closed": "切断",
"not-running": "停止中", "not-running": "停止中",
"not-available": "利用不可", "not-available": "利用不可",
"na": "N/A : __value__" "na": "N/A : __value__",
"ok": "OK"
}, },
"errors": { "errors": {
"ignorenode": "Raspberry Pi固有のードを無視しました", "ignorenode": "Raspberry Pi固有のードを無視しました",

View File

@ -52,7 +52,8 @@
"closed": "절단", "closed": "절단",
"not-running": "정지중", "not-running": "정지중",
"not-available": "이용불가", "not-available": "이용불가",
"na": "N/A : __value__" "na": "N/A : __value__",
"ok": "OK"
}, },
"errors": { "errors": {
"ignorenode": "Raspberry Pi고유의 노드를 무시했습니다", "ignorenode": "Raspberry Pi고유의 노드를 무시했습니다",

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-node-pi-gpio", "name": "node-red-node-pi-gpio",
"version": "1.0.4", "version": "1.0.5",
"description": "The basic Node-RED node for Pi GPIO", "description": "The basic Node-RED node for Pi GPIO",
"dependencies" : { "dependencies" : {
}, },