Skip to content

Instantly share code, notes, and snippets.

@aco7342
Created October 20, 2014 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aco7342/071ec99f89a19b63ac07 to your computer and use it in GitHub Desktop.
Save aco7342/071ec99f89a19b63ac07 to your computer and use it in GitHub Desktop.
GetStatus - Denkovi - Web SNMP controlled 8 Relay Board v2

this flows can get status from board via api http request

[{"id":"8021a855.7fde58","type":"http in","name":"SensorState","url":"/ioreq","method":"get","x":76,"y":37,"z":"9084dc85.6f7b2","wires":[["dbcc5742.2433a8"]]},{"id":"dbcc5742.2433a8","type":"function","name":"prepara params","func":"//http://admin:admin@172.16.100.2/ioreg.js\nmsg.url = 'http://admin:admin@187.75.228.95:10080/ioreg.js';\nconsole.log('req.url:' + msg.url );\nreturn msg;","outputs":1,"x":241,"y":37,"z":"9084dc85.6f7b2","wires":[["54907.fffab6f9","356f500a.ca90b"]]},{"id":"54907.fffab6f9","type":"http request","name":"","method":"GET","url":"","x":425,"y":39,"z":"9084dc85.6f7b2","wires":[["a22e1518.5dd1e8","356f500a.ca90b"]]},{"id":"a22e1518.5dd1e8","type":"http response","name":"","x":596,"y":43,"z":"9084dc85.6f7b2","wires":[]},{"id":"356f500a.ca90b","type":"debug","name":"","active":true,"console":"false","complete":"false","x":585,"y":92,"z":"9084dc85.6f7b2","wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment