Created
October 12, 2020 21:38
-
-
Save stevehenderson/7ae9b2b8f21df74033d90e5856cd264e to your computer and use it in GitHub Desktop.
nodered_green_red_light
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "a35b9d70.ae8be", | |
"type": "tab", | |
"label": "GREEN-RED DEMO", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "ef262268.43b27", | |
"type": "rpi-gpio out", | |
"z": "a35b9d70.ae8be", | |
"name": "GREEN LED", | |
"pin": "40", | |
"set": true, | |
"level": "0", | |
"freq": "", | |
"out": "out", | |
"x": 1030, | |
"y": 60, | |
"wires": [] | |
}, | |
{ | |
"id": "261e09f9.5c9386", | |
"type": "debug", | |
"z": "a35b9d70.ae8be", | |
"name": "", | |
"active": true, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "false", | |
"statusVal": "", | |
"statusType": "auto", | |
"x": 530, | |
"y": 380, | |
"wires": [] | |
}, | |
{ | |
"id": "36b03bff.da39b4", | |
"type": "split", | |
"z": "a35b9d70.ae8be", | |
"name": "", | |
"splt": "\\n", | |
"spltType": "str", | |
"arraySplt": 1, | |
"arraySpltType": "len", | |
"stream": false, | |
"addname": "", | |
"x": 470, | |
"y": 180, | |
"wires": [ | |
[ | |
"261e09f9.5c9386", | |
"f4dc4dba.f5244" | |
] | |
] | |
}, | |
{ | |
"id": "3d60065c.5f17fa", | |
"type": "inject", | |
"z": "a35b9d70.ae8be", | |
"name": "GREEN ", | |
"props": [ | |
{ | |
"p": "payload" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payload": "1", | |
"payloadType": "str", | |
"x": 270, | |
"y": 120, | |
"wires": [ | |
[ | |
"36b03bff.da39b4" | |
] | |
] | |
}, | |
{ | |
"id": "48c46086.dfed2", | |
"type": "inject", | |
"z": "a35b9d70.ae8be", | |
"name": "RED", | |
"props": [ | |
{ | |
"p": "payload" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payload": "10", | |
"payloadType": "str", | |
"x": 270, | |
"y": 180, | |
"wires": [ | |
[ | |
"36b03bff.da39b4" | |
] | |
] | |
}, | |
{ | |
"id": "1bda6cb2.e4a043", | |
"type": "inject", | |
"z": "a35b9d70.ae8be", | |
"name": "OFF", | |
"props": [ | |
{ | |
"p": "payload" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payload": "0", | |
"payloadType": "str", | |
"x": 270, | |
"y": 240, | |
"wires": [ | |
[ | |
"36b03bff.da39b4" | |
] | |
] | |
}, | |
{ | |
"id": "326a32fb.28aeae", | |
"type": "rpi-gpio out", | |
"z": "a35b9d70.ae8be", | |
"name": "RED LED", | |
"pin": "38", | |
"set": true, | |
"level": "0", | |
"freq": "", | |
"out": "out", | |
"x": 1020, | |
"y": 260, | |
"wires": [] | |
}, | |
{ | |
"id": "f4dc4dba.f5244", | |
"type": "switch", | |
"z": "a35b9d70.ae8be", | |
"name": "", | |
"property": "payload", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "1", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "10", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "0", | |
"vt": "str" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 3, | |
"x": 670, | |
"y": 180, | |
"wires": [ | |
[ | |
"ef262268.43b27" | |
], | |
[ | |
"5502f7b8.b5b5c8" | |
], | |
[ | |
"326a32fb.28aeae", | |
"ef262268.43b27" | |
] | |
] | |
}, | |
{ | |
"id": "5502f7b8.b5b5c8", | |
"type": "change", | |
"z": "a35b9d70.ae8be", | |
"name": "10to1", | |
"rules": [ | |
{ | |
"t": "change", | |
"p": "payload", | |
"pt": "msg", | |
"from": "10", | |
"fromt": "str", | |
"to": "1", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 830, | |
"y": 260, | |
"wires": [ | |
[ | |
"326a32fb.28aeae" | |
] | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment