How to use curl in bash with domoticz API to control switch
Posted: Thursday 13 July 2017 15:13
I have setup a switch in domoticz and want to use curl in a bash file with domoticz API to control switch. bash command is this:
curl http://192.168.1.205:8080/json.htm?type=command¶m=switchlight&idx=134&switchcmd=On
the domoticz API: http://192.168.1.205:8080/json.htm?type=command¶m=switchlight&idx=134&switchcmd=On
has been tested successfully in web browser, but once I try just type the curl command as above in terminal, below error appears
Can you help me with it? Thanks!
curl http://192.168.1.205:8080/json.htm?type=command¶m=switchlight&idx=134&switchcmd=On
the domoticz API: http://192.168.1.205:8080/json.htm?type=command¶m=switchlight&idx=134&switchcmd=On
has been tested successfully in web browser, but once I try just type the curl command as above in terminal, below error appears
Can you help me with it? Thanks!