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":[]}]
aco7342

Flow Info

created 3 years, 1 month ago

Node Types

Core
  • debug (x1)
  • function (x1)
  • http in (x1)
  • http request (x1)
  • http response (x1)

Tags

  • iot
  • /m2m
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option