07-12-2022, 05:13 PM
Hi,
I Try to use KC868-H32B relay controller with Virtuino IOT by http command. I think using Widget with Script and Tool but I don't know how to do.
The extract doc says:
1/ Turn ON/OFF every relay:
http://192.168.1.10/sw_ctl.cgi?Relay01=O...d=admin123 // Relay1 ON
http://192.168.1.10/sw_ctl.cgi?Relay01=O...d=admin123 // Relay1 OFF
http://192.168.1.10/sw_ctl.cgi?Relay30=O...d=admin123 // Relay30 ON
http://192.168.1.10/sw_ctl.cgi?Relay30=O...d=admin123 // Relay30 OFF
http://192.168.1.10/sw_ctl.cgi?RelayFF=O...d=admin123 //Relay ALL ON
http://192.168.1.10/sw_ctl.cgi?RelayFF=O...d=admin123 //Relay ALL OFF
if successful will feedback:
buttonCallback({"btn1":"OFF","btn2":"OFF","btn3":"ON","btn4":"ON","btn5":"OFF","btn6":"ON","btn7":"ON","btn8":"ON","btn9":"ON","btn10":"ON","btn11":"OFF","btn12":"ON","btn13":"ON","btn14":"ON","btn15":"ON","btn16":"ON","btn17":"ON","btn18":"ON","btn19":"ON","btn20":"ON","btn21":"ON","btn22":"ON","btn23":"ON","btn24":"ON","btn25":"ON","btn26":"ON","btn27":"ON","btn28":"ON","btn29":"ON","btn30":"OFF","btn31":"ON","btn32":"ON","post_pwd":"admin123",});
if failed will feedback: Error parameter or password!
2/ Read input port state
http://192.168.1.10/input_ctl.cgi?inputF...d=admin123
if successful will feedback:
inputCallback({"input1":"1","input2":"1","input3":"1","input4":"1","input5":"1","input6":"1"});
1 means: ON 0 means:OFF
if failed will feedback: Error parameter or password!
Thanks for your help,
I Try to use KC868-H32B relay controller with Virtuino IOT by http command. I think using Widget with Script and Tool but I don't know how to do.
The extract doc says:
1/ Turn ON/OFF every relay:
http://192.168.1.10/sw_ctl.cgi?Relay01=O...d=admin123 // Relay1 ON
http://192.168.1.10/sw_ctl.cgi?Relay01=O...d=admin123 // Relay1 OFF
http://192.168.1.10/sw_ctl.cgi?Relay30=O...d=admin123 // Relay30 ON
http://192.168.1.10/sw_ctl.cgi?Relay30=O...d=admin123 // Relay30 OFF
http://192.168.1.10/sw_ctl.cgi?RelayFF=O...d=admin123 //Relay ALL ON
http://192.168.1.10/sw_ctl.cgi?RelayFF=O...d=admin123 //Relay ALL OFF
if successful will feedback:
buttonCallback({"btn1":"OFF","btn2":"OFF","btn3":"ON","btn4":"ON","btn5":"OFF","btn6":"ON","btn7":"ON","btn8":"ON","btn9":"ON","btn10":"ON","btn11":"OFF","btn12":"ON","btn13":"ON","btn14":"ON","btn15":"ON","btn16":"ON","btn17":"ON","btn18":"ON","btn19":"ON","btn20":"ON","btn21":"ON","btn22":"ON","btn23":"ON","btn24":"ON","btn25":"ON","btn26":"ON","btn27":"ON","btn28":"ON","btn29":"ON","btn30":"OFF","btn31":"ON","btn32":"ON","post_pwd":"admin123",});
if failed will feedback: Error parameter or password!
2/ Read input port state
http://192.168.1.10/input_ctl.cgi?inputF...d=admin123
if successful will feedback:
inputCallback({"input1":"1","input2":"1","input3":"1","input4":"1","input5":"1","input6":"1"});
1 means: ON 0 means:OFF
if failed will feedback: Error parameter or password!
Thanks for your help,