Created
October 22, 2018 07:13
-
-
Save hubmartin/9adf981645ae29f6a399149a50f432b2 to your computer and use it in GitHub Desktop.
This file contains 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":"c1e2ed40.9265b","type":"tab","label":"Pumpkin","disabled":false,"info":""},{"id":"f8d7eb59.811408","type":"mqtt out","z":"c1e2ed40.9265b","name":"","topic":"node/scary-pumpkin:0/led-strip/-/effect/set","qos":"","retain":"","broker":"29fba84a.b2af58","x":1080,"y":260,"wires":[]},{"id":"5b67219b.4874","type":"inject","z":"c1e2ed40.9265b","name":"red pulse-color","topic":"","payload":"{\"type\":\"pulse-color\", \"wait\":50, \"color\":\"#ff0000\"}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":780,"y":80,"wires":[["f8d7eb59.811408"]]},{"id":"14a99c41.62f154","type":"mqtt out","z":"c1e2ed40.9265b","name":"","topic":"node/scary-pumpkin:0/led-strip/-/color/set","qos":"","retain":"","broker":"29fba84a.b2af58","x":1080,"y":480,"wires":[]},{"id":"e7d03b0.8b7d5c8","type":"mqtt in","z":"c1e2ed40.9265b","name":"","topic":"node/scary-pumpkin:0/pir/-/event-count","qos":"2","broker":"29fba84a.b2af58","x":230,"y":360,"wires":[["d7dd4974.f995d8"]]},{"id":"486eb6a9.99abb8","type":"delay","z":"c1e2ed40.9265b","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":660,"y":420,"wires":[["9b2b5640.7b2658","122f5f82.22182","88f57806.b69cb8"]]},{"id":"4805211b.be2d8","type":"change","z":"c1e2ed40.9265b","name":"green pulsing","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"type\":\"pulse-color\", \"wait\":10, \"color\":\"#003000(20)\"}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":260,"wires":[["f8d7eb59.811408"]]},{"id":"9b2b5640.7b2658","type":"change","z":"c1e2ed40.9265b","name":"still color","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"#200000(10)\"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":840,"y":480,"wires":[["14a99c41.62f154"]]},{"id":"d4c1ed0c.44844","type":"inject","z":"c1e2ed40.9265b","name":"icicle","topic":"","payload":"{\"type\":\"icicle\", \"wait\":50, \"color\":\"#ff0000\"}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":770,"y":200,"wires":[["f8d7eb59.811408"]]},{"id":"679a3a6c.2b1214","type":"inject","z":"c1e2ed40.9265b","name":"color wipe","topic":"","payload":"{\"type\":\"color-wipe\", \"wait\":50, \"color\":\"#800000\"}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":780,"y":160,"wires":[["f8d7eb59.811408"]]},{"id":"680d6b7.b249294","type":"inject","z":"c1e2ed40.9265b","name":"stroboscope","topic":"","payload":"{\"type\":\"stroboscope\", \"wait\":50, \"color\":\"#0000ff\"}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":770,"y":120,"wires":[["f8d7eb59.811408"]]},{"id":"a364380a.daecc8","type":"mqtt out","z":"c1e2ed40.9265b","name":"","topic":"node/scary-pumpkin:0/servo/p14/angle/set","qos":"","retain":"","broker":"29fba84a.b2af58","x":1090,"y":360,"wires":[]},{"id":"79cf4db2.62c624","type":"change","z":"c1e2ed40.9265b","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":300,"wires":[["a364380a.daecc8"]]},{"id":"122f5f82.22182","type":"change","z":"c1e2ed40.9265b","name":"180","rules":[{"t":"set","p":"payload","pt":"msg","to":"180","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":360,"wires":[["a364380a.daecc8"]]},{"id":"1ed2d913.b10d67","type":"ubidots_in","z":"c1e2ed40.9265b","tier":"educational","name":"","token":"A1E-VQcRU5rQFRaEUQimi6ev1tnIaEiBbl","device_label":"scary-pumpkin","label_device":"","label_variable":"pir","x":150,"y":480,"wires":[["a4b37906.c091f8"]]},{"id":"d7dd4974.f995d8","type":"function","z":"c1e2ed40.9265b","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":360,"wires":[["4805211b.be2d8","486eb6a9.99abb8","73331245.b36bec"]]},{"id":"a4b37906.c091f8","type":"switch","z":"c1e2ed40.9265b","name":"","property":"payload.value","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":330,"y":480,"wires":[["d7dd4974.f995d8"]]},{"id":"264eec65.fcc1b4","type":"ubidots_out","z":"c1e2ed40.9265b","name":"","token":"A1E-VQcRU5rQFRaEUQimi6ev1tnIaEiBbl","label_device":"","device_label":"scary-pumpkin","tier":"educational","x":1030,"y":420,"wires":[]},{"id":"88f57806.b69cb8","type":"change","z":"c1e2ed40.9265b","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"pir\":0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":420,"wires":[["264eec65.fcc1b4"]]},{"id":"73331245.b36bec","type":"delay","z":"c1e2ed40.9265b","name":"","pauseType":"delay","timeout":"1200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":680,"y":300,"wires":[["79cf4db2.62c624"]]},{"id":"29fba84a.b2af58","type":"mqtt-broker","z":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flow for node-red and scary-pumpkin project.