Smart Home Automation Forum
HTTP GET api control - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=60)
+--- Forum: B16M (https://www.kincony.com/forum/forumdisplay.php?fid=61)
+--- Thread: HTTP GET api control (/showthread.php?tid=8460)



HTTP GET api control - jc10000rpm - 08-21-2025

after i turn on a output, then turn it back off, it wont turn on again, unless i wait for several minutes.

here is the commands i use:

ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=1
ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=0

the browser gives a message saying success, but the output does not come on.

here is example of output (but does not turn on)

{ "id": 1, "value": 1, "status": "success", "code": 0 }

i have program that runs that needs to be able to execute these commands very often and close together


RE: HTTP GET api control - admin - 08-21-2025

take a photo , how you wire with your board. maybe you have not connect the B16M's "DC" terminal with power supply.


RE: HTTP GET api control - jc10000rpm - 08-21-2025

Please see below


it is correct and works first time i send command

here is the commands i use: 
ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=1 
ipaddress/ctrl.cgi?secret=mysecret&cmd=set_output&id=1&value=0 

when i send command to turn on second time,
the browser gives a message saying success, but the output does not come on. 
here is example of output (but does not turn on) { "id": 1, "value": 1, "status": "success", "code": 0 }


RE: HTTP GET api control - jc10000rpm - 08-21-2025

RESOLVED,

sorry for the post, i wrote a sample html page
that turns on and off the output-1,

Runs fine from html script, but would not repeat when i manually ran the commands from browser address bar.....

STRANGE


RE: HTTP GET api control - admin - 08-21-2025

ok