Announcement

Collapse
No announcement yet.

HS3 Running event from Command Line

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

    #31
    Originally posted by mrhappy View Post
    I have written an app that might be of use to some, it will accept an event name by command line and then try and trigger the event. So you would run it with

    C:\Path\Path\HS3EventRun.exe eventname="Test Event"
    Hi MrHappy.

    Is this utility still available for download? Does it works with HS4? Does it support authentication?

    Thank you! :-)

    Comment


      #32
      Originally posted by Mario from Spain View Post

      Hi MrHappy.

      Is this utility still available for download? Does it works with HS4? Does it support authentication?

      Thank you! :-)
      MrHappy is MIA (last on November 2020)

      What are you trying to do?
      Jon

      Comment


        #33
        Originally posted by jon00 View Post

        MrHappy is MIA (last on November 2020)

        What are you trying to do?
        Thank you! I had no idea.

        I want to send some notifications from HS. For example when the 3D printer finish a job I can execute something at the command line.

        Click image for larger version  Name:	image.png Views:	0 Size:	51.9 KB ID:	1569266

        Probably I can do it with Curl but I'm unable to find the correct syntax.

        Thank you!

        Comment


          #34
          Curl should work using the Homeseer JSON interface.

          It could also be done with my HS3/HS4 Tray Control using its Windows shortcuts method or wait to see if someone has the MrHappy file.
          Jon

          Comment


            #35
            If someone comes with a working curl example in Windows (something simple as "http://192.168.1.57/JSON?request=getstatus&ref=550") it could be a good starting point.

            Comment


              #36
              Take a look here: https://forums.homeseer.com/forum/de...call-from-curl
              Jon

              Comment


                #37
                Originally posted by jon00 View Post
                Great! It's working! Thank you very much for the link. :-)

                I left it here as an example for others looking into this:

                Code:
                curl -G -v -d "request=controldevicebyvalue&ref=822&value=100" http://192.168.1.57/JSON -u "username:password"
                I tested putting this line in a BAT file and running the BAT and it's working fine (-v parameter is optional, just to have verbose output from curl).

                Comment

                Working...
                X