Announcement

Collapse
No announcement yet.

How to send http commands from HSTouch?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to send http commands from HSTouch?

    I'm using XBMC on another computer, how to send http commands direct from HSTouch? It's to slow to go from a script on my Homeseer server. Can't browse my media fast enough on XBMC app.
    Example of an command I want to send:
    Code:
    hs.GetURLIE("http://192.168.1.113:8083/xbmcCmds/xbmcHttp?command=SendKey&parameter=271"),FALSE

    #2
    solved but is still way to slow for browse.Use a script in button like this:
    Attached Files

    Comment


      #3
      Originally posted by lunkan View Post
      solved but is still way to slow for browse.Use a script in button like this:
      How does this control anything? That function is supposed to return a page? I am curious as I am trying to accomplish the same thing for SageTv.

      -Skybolt
      -Skybolt

      Comment


        #4
        Originally posted by skybolt View Post
        How does this control anything? That function is supposed to return a page? I am curious as I am trying to accomplish the same thing for SageTv.

        -Skybolt
        It can control devices that are setup to accept the querystring parameters at the end of the URL.
        ie any thing after the ? "?command=SendKey&parameter=271"
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Originally posted by Rupp View Post
          It can control devices that are setup to accept the querystring parameters at the end of the URL.
          ie any thing after the ? "?command=SendKey&parameter=271"
          Is there any reason that this line will work as an action:

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

          but this will not work from a button:

          Play [$SCRIPT=&hs.GetURLIE("http://192.168.2.51:87/sage/SageCommand?RetImage=no&nocache=1234103577546&command=Play&c ontext=000dfe077d44",FALSE)]

          Thanks Rupp
          -Skybolt
          -Skybolt

          Comment


            #6
            There is a difference. If you put the command in the Text property of the button then it will try to assign the return value from the scrip to Text property. So it is a good practice to use action if there is no return value to show in the UI. I know it did not answer your question but thought of sharing my opinion.

            Comment


              #7
              Originally posted by lunkan View Post
              solved but is still way to slow for browse.Use a script in button like this:
              Did you ever come up with a solution for this?

              Comment


                #8
                I use XBMC on the Raspberry pi, and although i don't use the HSTOUCH screen to control it (yet), i do have an event, connected to a remote control which simulates the left button press.

                I used the following code, my version is XBMC V11 (Eden):

                : &hs.GetUrl("http://192.168.45.20/jsonrpc?request={%22jsonrpc%22:%20%222.0%22,%20%22method%22: %20%22Input.Left%22,%20%22id%22:%201}","",True,80)
                My IP address for the device is 192.168.45.20 and I work on port 80, so you would need to change those to your settings. I also use the Input.Left to move the keypress left etc.
                HS3 PRO, Win10, WeatherXML, HSTouch, Pushover, UltraGCIR, Heaps of Jon00 Plugins, Just sold and about to move so very slim system.

                Facebook | Twitter | Flickr | Google+ | Website | YouTube

                Comment

                Working...
                X