Announcement

Collapse
No announcement yet.

Remote event execution problem (from another PC on the local network)

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

  • Remote event execution problem (from another PC on the local network)

    I'm sure that I am doing something quite stupid here. I want to be able to remotely trigger an event from the desktop of a computer on my local network that is not the HS3 controller.

    From a browser window, http://192.168.1.2/JSON?request=rune...Bunkhouse%20Up works perfectly.

    Calling RunJSON.exe with "C:\Program Files (x86)\HomeSeer\RunJSON.exe" http://192.168.1.2/JSON?request=rune...Bunkhouse%20Up fails with
    'group' is not recognized as an internal or external command,
    operable program or batch file.
    'name' is not recognized as an internal or external command,
    operable program or batch file.

    Calling RunJSON.exe with "C:\Program Files (x86)\HomeSeer\RunJSON.exe" "http://192.168.1.2/JSON?request=runevent&group=Blinds&name=Bunkhouse%20Up" fails with no error message.

    Calling HS3EventRun.exe with "C:\Program Files (x86)\HomeSeer\HS3EventRun.exe" server="192.168.1.2" eventname="Bunkhouse Up" fails with
    Connecting to server at 192.168.1.2...
    You want me to run event name: Bunkhouse Up
    Cannot connect attempt 1: The host failed to connect. Timeout occured. 15000

    I've verified that I am using the same .dll files as on my HS3 controller (copied them directly over)

    So what am I doing wrong? At first I thought that there was some sort of a permission issue accessing my HS3 server, but it works from the browser so I am just very confused.

    Many thanks!

  • #2
    With web technologies including spaces in things can always be an issue. Try running a event that does not include a space or special character.
    HomeSeer 2, HomeSeer 3, Allonis myServer, Amazon Alexa Dots, ELK M1G, ISY 994i, HomeKit, BlueIris, and 6 "4k" Cameras using NVR, and integration between all of these systems. Home Automation since 1980.

    Comment


    • #3
      The URL statement cannot contain spaces, and certain other characters. When you need to send them, you substitute the hexadecimal value for those forbidden characters. %20 is the hex value for a blank or space. Which is why the statement with the %20 works, but the one with a space does not.

      A lot of languages have routines that will make the substitution for you. If not, you have to do it yourself.

      Comment


      • #4
        Thanks for the help!

        I removed spaces for simplicity. Here is what I have finally been able to get to work -

        "C:\Program Files (x86)\HomeSeer\RunJSON.exe" "http://192.168.1.2/JSON?request=runevent&group=Blinds&name=BunkhouseUp"

        HS3EventRun still fails to connect, for reasons that I don't understand. Since the other method (RunJSON) is functioning I'm good to go, but still would be interested in figuring out why this way is not working for me if there are any additional insights.

        Click image for larger version

Name:	HS3EventRun.png
Views:	20
Size:	20.2 KB
ID:	1271271

        Comment

        Working...
        X