Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Translate curl command for Flic

    General Discussion
    2
    4
    724
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robert.j.erickson
      robert.j.erickson last edited by

      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 Internet Request function.

      1 Reply Last reply Reply Quote 0
      • robert.j.erickson
        robert.j.erickson last edited by

        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.

        https://bayimg.com/paNadaAgO
        http://bayimg.com/PaNaeAagO

        Are there any logs to debug or troubleshoot, what else can I try?

        1 Reply Last reply Reply Quote 0
        • Emil
          Emil FlicTeam last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • robert.j.erickson
            robert.j.erickson last edited by

            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?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post