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!
How to use curl in bash with domoticz API to control switch Topic is solved
Moderator: leecollings
Re: How to use curl in bash with domoticz API to control switch
Have you put the command between single quotes already?
Re: How to use curl in bash with domoticz API to control switch
No I didn't. That is it! A tiny thing took me hours yet to figure out, Thanks!
Re: How to use curl in bash with domoticz API to control switch
Can you mark this solved?tonywk wrote:No I didn't. That is it! A tiny thing took me hours yet to figure out, Thanks!
Re: How to use curl in bash with domoticz API to control switch
yes, it is working now.
Who is online
Users browsing this forum: No registered users and 1 guest