Announcement

Collapse
No announcement yet.

Using GetURL

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

    Using GetURL

    I want to trigger an alert in another application using an HTTP request on myHometroller Zee S2. I created and event and "Run Script or command" I put the Following code in a text file. Do I have something wrong? I am trying to run this URL http://192.168.1.160:81/admin?camera...n&pw=iwngfiwgt

    by using the following

    hs.GetURL("192.168.1.160","/admin?camera=Liv&trigger&user=user&pw=password",TRUE,81)

    I also Tried

    &hs.GetURL("192.168.1.160","/admin?camera=Liv&trigger&user=user&pw=password",TRUE,81)

    #2
    These can be a bit of of a nightmare to sort out to be honest, it might be easier trying hs.urlaction instead of this and trying something like, hs.geturl is more if you want to get the contents of a page and do something with it (like get data from it) and hs.urlaction is if you need to do a put/get/post. There may be no underlying difference in the code but just in case I would try;

    hs.URLAction("http://192.168.1.160:81/admin?camera=Liv&trigger&user=admin&pw=iwngfiwgt", "GET", "", "")

    Comment

    Working...
    X