SetAction - Denkovi - Web SNMP controlled 8 Relay Board v2

this flow set action into relay board

[{"id":"35478000.cab88","type":"http in","name":"ReleAct","url":"/iochange","method":"get","x":73,"y":183.09091186523438,"z":"9084dc85.6f7b2","wires":[["efcdad26.10325"]]},{"id":"efcdad26.10325","type":"function","name":"prepara params rl","func":"//http://admin:[email protected]:10080/iochange.cgi?ref=re-io&01=00&02=08\nvar ref = msg.payload.ref;\nvar r01 = msg.payload[\"01\"];\nvar r02 = msg.payload[\"02\"];\nmsg.url = 'http://admin:[email protected]:10080/iochange.cgi?ref='+ref+'&01='+r01+'&02='+r02;\nconsole.log('req.url:' + msg.url );\nreturn msg;","outputs":1,"x":238,"y":183.09091186523438,"z":"9084dc85.6f7b2","wires":[["c687acca.39785","da7dd86e.258228"]]},{"id":"c687acca.39785","type":"http request","name":"","method":"GET","url":"","x":422,"y":185.09091186523438,"z":"9084dc85.6f7b2","wires":[["da7dd86e.258228","b67223c5.498de"]]},{"id":"da7dd86e.258228","type":"debug","name":"","active":true,"console":"false","complete":"false","x":613.0000305175781,"y":260.0909080505371,"z":"9084dc85.6f7b2","wires":[]},{"id":"b67223c5.498de","type":"function","name":"prepara sensorState","func":"msg.url = 'http://localhost:1880/ioreq';\nconsole.log('req.url:' + msg.url );\nreturn msg;","outputs":1,"x":603.0909729003906,"y":179.0909080505371,"z":"9084dc85.6f7b2","wires":[["fc1df5e4.03e208","da7dd86e.258228"]]},{"id":"fc1df5e4.03e208","type":"http request","name":"","method":"GET","url":"","x":715.0909729003906,"y":184.0909080505371,"z":"9084dc85.6f7b2","wires":[["c4db2eb1.3b24d","da7dd86e.258228"]]},{"id":"c4db2eb1.3b24d","type":"http response","name":"","x":772.0909118652344,"y":240.09091186523438,"z":"9084dc85.6f7b2","wires":[]}]

Flow Info

Created 10 years, 3 months ago
Updated 9 years, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x1)
  • function (x2)
  • http in (x1)
  • http request (x2)
  • 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