Announcement

Collapse
No announcement yet.

Event that runs a web call

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

    Event that runs a web call

    I want to create an event that when a virtual device is triggered, it runs a web call like the following:

    http://xxx.xxx.x.xxx:xx/admin?profile=1&user=xxx=xxx

    this actually changes the profile on my blue iris server.

    If I run it from a browser, it works perfectly. I'm not even sure how to search the forums to learn how to do this :-)

    #2
    Try this as an immediate script command:

    Code:
    &hs.GetURL("http://xxx.xxx.x.xxx/","admin?profile=1&user=xxx=xxx",False,80)
    replace the 80 with whatever port number you use.

    Cheers
    Al

    PS If that doesn't work there's also the hs.URLAction command. See http://homeseer.com/support/homeseer...elp/geturl.htm.
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      #3
      Originally posted by sparkman View Post
      Try this as an immediate script command:

      Code:
      &hs.GetURL("http://xxx.xxx.x.xxx/","admin?profile=1&user=xxx=xxx",False,80)
      replace the 80 with whatever port number you use.

      Cheers
      Al

      PS If that doesn't work there's also the hs.URLAction command. See http://homeseer.com/support/homeseer...elp/geturl.htm.
      No errors in log.


      as always... thanks for helping Al!

      that didn't seem to work, but I may have done the original cut/paste wrong.

      &hs.GetURL("http://192.168.1.155/","admin?profile=1&user=xxx&pw=xxx",False,xx)

      does this look right, with the final two xx's being my port?

      Comment


        #4
        Originally posted by Tomgru View Post
        No errors in log.


        as always... thanks for helping Al!

        that didn't seem to work, but I may have done the original cut/paste wrong.

        &hs.GetURL("http://192.168.1.155","admin?profile=1&user=xxx&pw=xxx",False,xx)

        does this look right, with the final two xx's being my port?
        No problem. This command doesn't really provide an error even if it can't connect to the remote server.

        I may have messed up the format. Try:

        &hs.GetURL("192.168.1.155","/admin?profile=1&user=xxx&pw=xxx",False,xx)

        Cheers
        Al
        HS 4.2.8.0: 2134 Devices 1252 Events
        Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

        Comment


          #5
          Originally posted by sparkman View Post
          No problem. This command doesn't really provide an error even if it can't connect to the remote server.

          I may have messed up the format. Try:

          &hs.GetURL("192.168.1.155","/admin?profile=1&user=xxx&pw=xxx",False,xx)

          Cheers
          Al
          sadly,.... nada. any other ideas?

          Comment


            #6
            Originally posted by Tomgru View Post
            sadly,.... nada. any other ideas?
            Try the URLAction ones (POST or GET). You may need to put them in a script file and call the script.

            Cheers
            Al
            HS 4.2.8.0: 2134 Devices 1252 Events
            Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

            Comment


              #7
              Originally posted by sparkman View Post
              Try the URLAction ones (POST or GET). You may need to put them in a script file and call the script.

              Cheers
              Al
              I was afraid you'd say that. look at that... just a tad lost :-)

              could I entice you for just a bit more support? :-)

              Comment


                #8
                Try

                &hs.urlaction("http://192.168.1.155:xx/admin?profile=1&user=xxx&pw=xxx", "GET", "", "")
                HS 4.2.8.0: 2134 Devices 1252 Events
                Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                Comment


                  #9
                  Originally posted by sparkman View Post
                  Try

                  &hs.urlaction("http://192.168.1.155:xx/admin?profile=1&user=xxx&pw=xxx", "GET", "", "")
                  you da man! works great. thanks so much.

                  Comment

                  Working...
                  X