Announcement

Collapse
No announcement yet.

Creating a &hs.URLAction from a CURL command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating a &hs.URLAction from a CURL command

    I am looking to do basic control of a fan I have that is controlled through Bond. I know there is another topic of a possible plugin being developed for Bond but for now, a basic hs.URLAction command is needed or mini script that I can execute that is equivalent to a CURL command.

    I know the following works when I execute this CURL command in linux from my
    HomeTroller Zee S2:

    curl -H "BOND-Token: xxxxxxxxxxxxxxxx" -X PUT -i http://192.168.1.xxx/v2/devices/0000...ns/ToggleLight -d {}

    Can someone convert the above into a URLAction or mini script that I can execute in an event please?

    Thank you.

  • #2
    You can call curl from an event. I do this for wget as shown below

    Click image for larger version

Name:	Screenshot from 2020-01-04 09-10-31.png
Views:	79
Size:	21.5 KB
ID:	1351774

    Comment


    • #3
      works great, simple and exactly what I needed, thank you!!

      Comment


      • #4
        Originally posted by AllHailJ View Post
        You can call curl from an event. I do this for wget as shown below

        Click image for larger version

Name:	Screenshot from 2020-01-04 09-10-31.png
Views:	79
Size:	21.5 KB
ID:	1351774
        Thanks for this.

        Comment


        • #5
          FYI, I have a BETA for testing
          https://forums.homeseer.com/forum/de...rite-one/page5

          Comment


          • #6
            Bond plugin released

            https://forums.homeseer.com/forum/wi...ig-screenshots

            Comment

            Working...
            X