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:
parent
b35de37ec1
commit
4979ad8966
@ -45,7 +45,7 @@ module.exports = function(RED) {
|
||||
if (node.pin !== undefined) {
|
||||
node.child = spawn(gpioCommand, ["in",node.pin,node.intype,node.debounce]);
|
||||
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) {
|
||||
var d = data.toString().trim().split("\n");
|
||||
@ -156,7 +156,7 @@ module.exports = function(RED) {
|
||||
node.status({fill:"green",shape:"dot",text:node.level});
|
||||
} else {
|
||||
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;
|
||||
|
||||
@ -220,7 +220,7 @@ module.exports = function(RED) {
|
||||
|
||||
if (allOK === true) {
|
||||
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) {
|
||||
data = Number(data);
|
||||
@ -271,7 +271,7 @@ module.exports = function(RED) {
|
||||
|
||||
if (allOK === true) {
|
||||
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) {
|
||||
var b = data.toString().trim().split(",");
|
||||
|
@ -52,7 +52,8 @@
|
||||
"closed" : "geschlossen",
|
||||
"not-running" : "nicht aktiv",
|
||||
"not-available" : "nicht verfügbar",
|
||||
"na" : "N/A: __Wert__"
|
||||
"na" : "N/A: __Wert__",
|
||||
"ok": "OK"
|
||||
},
|
||||
"errors" : {
|
||||
"ignorenode" : "Raspberry Pi-spezifische Nodes inaktiv",
|
||||
|
@ -53,7 +53,8 @@
|
||||
"closed": "closed",
|
||||
"not-running": "not running",
|
||||
"not-available": "not available",
|
||||
"na": "N/A : __value__"
|
||||
"na": "N/A : __value__",
|
||||
"ok": "OK"
|
||||
},
|
||||
"errors": {
|
||||
"ignorenode": "Raspberry Pi specific node set inactive",
|
||||
|
@ -52,7 +52,8 @@
|
||||
"closed": "切断",
|
||||
"not-running": "停止中",
|
||||
"not-available": "利用不可",
|
||||
"na": "N/A : __value__"
|
||||
"na": "N/A : __value__",
|
||||
"ok": "OK"
|
||||
},
|
||||
"errors": {
|
||||
"ignorenode": "Raspberry Pi固有のノードを無視しました",
|
||||
|
@ -52,7 +52,8 @@
|
||||
"closed": "절단",
|
||||
"not-running": "정지중",
|
||||
"not-available": "이용불가",
|
||||
"na": "N/A : __value__"
|
||||
"na": "N/A : __value__",
|
||||
"ok": "OK"
|
||||
},
|
||||
"errors": {
|
||||
"ignorenode": "Raspberry Pi고유의 노드를 무시했습니다",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-pi-gpio",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"description": "The basic Node-RED node for Pi GPIO",
|
||||
"dependencies" : {
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user