Skip to content

Instantly share code, notes, and snippets.

@aco7342
Created October 20, 2014 17:46
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/acb08a08e4d83f30c910 to your computer and use it in GitHub Desktop.
Save aco7342/acb08a08e4d83f30c910 to your computer and use it in GitHub Desktop.
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:admin@187.75.228.95: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:admin@187.75.228.95: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":[]}]
@thompson-jeff
Copy link

newbie here, how do I launch this? I'm trying http://192.168.2.110:10080 thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment