Translate curl command for Flic
I'm hoping this thread can act as a blueprint for others in translating cURL commands (or python urllib, python requests, wget, etc) into a format that can be used in Flic with the HTTP
That is the command I was using. I just tried it again (both by hitting 'execute' and by pressing the button). Neither worked. Here's a screenshot of the flic app (second picture shows the rest of the command used). I can confirm that cURL with this command does turn my receiver OFF.
Are there any logs to debug or troubleshoot, what else can I try?
Just select "GET" as method and write "http://192.168.1.32/MainZone/index.put.asp?cmd0=PutZone_OnOff%2FON" as URL. The other headers you have added must not be entered since these values are inserted automatically by the implementation.
The following curl command currently works when executing from a Linux/GNU terminal:
curl -X GET -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'User-Agent: python-requests/2.21.0' 'http://192.168.1.32/MainZone/index.put.asp?cmd0=PutZone_OnOff%2FON'
It sends a command to turn on my Marantz AV Receiver.
How would I go about translating this for use with Flic?