Last active
December 4, 2015 11:39
-
-
Save nathanchantrell/954ea54f25a43c20858a to your computer and use it in GitHub Desktop.
Radmon Node-RED flow
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":"30c84874.cf37b8","type":"inject","z":"51ed9ab2.ae1264","name":"Every 15 minutes","topic":"","payload":"","payloadType":"date","repeat":"900","crontab":"","once":false,"x":164,"y":2135,"wires":[["c3fd4e8a.3c02b"]]},{"id":"c3fd4e8a.3c02b","type":"function","z":"51ed9ab2.ae1264","name":"Get last CPM","func":"msg.payload = context.global.radiation;\nreturn msg;","outputs":1,"noerr":0,"x":337,"y":2135,"wires":[["461904ee.b9e6fc"]]},{"id":"461904ee.b9e6fc","type":"http request","z":"51ed9ab2.ae1264","name":"Radmon.org","method":"GET","ret":"txt","url":"http://radmon.org/radmon.php?function=submit&user=USER&password=PASS&unit=CPM&value={{{payload}}}","x":508,"y":2135,"wires":[["142475bb.ebdb8a"]]},{"id":"142475bb.ebdb8a","type":"debug","z":"51ed9ab2.ae1264","name":"","active":false,"console":"false","complete":"statusCode","x":685,"y":2135,"wires":[]},{"id":"92c17c7b.6d3e8","type":"comment","z":"51ed9ab2.ae1264","name":"Send radiation CPM to Radmon.org every 15 mins","info":"","x":239,"y":2085,"wires":[]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment