Announcement

Collapse
No announcement yet.

Web page builder for Homeseer 3 & Homeseer 4

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

    JSONRefresh3=/JSON?request=controldevicebyvalue&ref=1040&value=255 refresh&host=*:*

    Attached Files

    Comment


      So...It will run an event, just no JSON commands.

      Comment


        Originally posted by mattdb View Post
        JSONRefresh3=/JSON?request=controldevicebyvalue&ref=1040&value=255 refresh&host=*:*
        Sorry for the delay, I've been away for a few days.

        You have not provided a valid JSON string for Homeseer. Not sure what the refresh/host part is doing there. Try:

        Code:
        JSONRefresh3=/JSON?request=controldevicebyvalue&ref=1040&value=255
        Jon

        Comment


          That was me doing trial and error seeing if I can get it to work.

          This url works: http://192.168.1.6:82/JSON?request=controldevicebyvalue&ref=1040&value=255 in chrome browser, but doesnt work in the buildpage.asp nor aspx.

          Running an event does work.


          Comment


            I really don't know. I have the exact same JSON calls (with different refs) on mine and they work fine.

            Open up settings.ini in a text editor and search for:

            gAllowJSONRequests=True

            If it is not there or the value is set to false then your JSON is not setup correctly.
            Jon

            Comment


              It is there. Could this be some sort of .net permissions?

              Comment


                Originally posted by mattdb View Post
                It is there. Could this be some sort of .net permissions?
                Unlikely. The page relies on Javascript working on your browser and JSON being enabled in HS.

                Have you tried a different browser?

                Does any other JSON command work such as speech (example below)

                JSON1=/JSON?request=speak&phrase=Hello&host=*:*
                Jon

                Comment


                  Nope. this doesnt JSONRefresh5=/JSON?request=speak&phrase=hello world&host=*:*

                  But from chrome browser this works http://192.168.1.6:82/JSON?request=s...world&host=*:*

                  thx for the help btw.

                  I will add, that when I hit the button it does something because the page refreshes.

                  Comment


                    Please post/email your actual ini file so I can try it here. Do not copy the contents to post.
                    Jon

                    Comment


                      renamed to .txt so it would upload.

                      Is there any kind of logging to turn on?
                      Attached Files

                      Comment


                        Nothing to log. It just posts the JSON command.

                        Works fine here. Are you using .asp or aspx?
                        Jon

                        Comment


                          I tried both. Neither will send the command. argh. Is it some kind of permissions issue maybe?

                          When I click the button on the buildpage, I see this in the log:
                          Mar-16 11:53:35 AM Web Server Web Server authorized login successful from: 70.60.100.226 User: mattdb
                          When I excute the command from the url I see:
                          Mar-16 11:52:13 AM TTS Speak (*:*):The hello is now world

                          Comment


                            Sorry, I'm running out of ideas. You did not respond about trying another web browser such as firefox.
                            Jon

                            Comment


                              tried edge and it works form the url bar.

                              Comment


                                I do have user name and password enabled for homeseer. I editted the post above with some other info. Repeating here.


                                When I click the button on the buildpage, I see this in the log:
                                Mar-16 11:53:35 AM Web Server Web Server authorized login successful from: 70.60.100.226 User: mattdb
                                When I excute the command from the url I see:
                                Mar-16 11:52:13 AM TTS Speak (*:*):The hello is now world

                                Comment

                                Working...
                                X