Announcement

Collapse
No announcement yet.

Send HTTP or IP command

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

    Send HTTP or IP command

    Im trying to send an IP command to my DirecTv Receiver. I searched the forum and have seen that there are some plugins others have tried. Im actually hoping to send 1 simple command which works if I paste it in a browser. The command bellow works from IE or Chrome fine. How can I get this done with HomeSeer? I tried some GetURL but I have Zero knowledge of scripts...

    Thank you...

    http://192.168.1.81:8080/tv/tune?major=301&minor=65535

    #2
    What does happen if you run the command hs.geturl("192.168.1.81", "/tv/tune?major=301&minor=65535", False, 8080)?

    Comment


      #3
      I get the following error in the log...
      Running script, script run or compile error in file: DTV Control1044:Cannot use parentheses when calling a Sub in line 2 More info: Cannot use parentheses when calling a Sub

      Comment


        #4
        I use the following in hstouch all of the time to control SageTv

        hs.GetURLIE("http://192.168.2.51:87/sage/SageCommand?RetImage=no&nocache=1234103577546&command=Back&c ontext=00085c53c777",FALSE)

        So yours would be this:

        hs.GetURLIE("http://192.168.1.81:8080/tv/tune?major=301&minor=65535",False)

        This should not return the page, but execute the command.
        -Skybolt

        Comment


          #5
          are you using a VBScript (.txt extension) or VB.NET (.vb extension)? Try those commands also in the immediate script command box first on the control page and see if you get any error

          Comment


            #6
            if you are running:
            hs.geturl("192.168.1.81", "/tv/tune?major=301&minor=65535", False, 8080)

            in the quick command box, you need to remove the parans:

            hs.geturl "192.168.1.81", "/tv/tune?major=301&minor=65535", False, 8080

            --Dan
            Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

            Comment


              #7
              in a .txt script I use the "Call hs.xxx(expression)". the "Call" allows the line to be formated and more readable.


              This line should work just fine from the text entry of a button in HSTouch.

              Text Name [$SCRIPT=&hs.GetURLIE("hs.GetURLIE("http://192.168.1.81:8080/tv/tune?major=301&minor=65535",False)]

              This will Work from a script named "DTvTune.txt" called from an event, if your original line runs from IE.

              Sub Main

              Call hs.GetURLIE("http://192.168.1.81:8080/tv/tune?major=301&minor=65535",False)

              End Sub
              -Skybolt

              Comment


                #8
                IT Works...

                Thank you all for your quick tips and direction...
                I created the event and under the action/script statement I placed the following line, this works great

                hs.geturl "192.168.1.81", "/tv/tune?major=301&minor=65535", False, 8080

                I now have that event triggered daily @ 6AM so when my kids wake up they dont need to fiddle with the remote just turn the TV on and watch.....Thank you all again.

                Comment

                Working...
                X