Announcement

Collapse
No announcement yet.

Web control of devices

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

    Web control of devices

    I have finnaly found a way around the password issue with my custom homepage only it comes with a few issues.

    I am using IIS to control my Homepage on port 80, using the following link. http://theneuerts.no-ip.com.

    The I use Homeseer web on port 93 using the following link. http://nikkineuert.no-ip.com.

    The problem is on my home page (port80) I have a button on my view camera page that turns my room light on and off so I can see the room. It does not work now that the two servers are on differnet ports. I was using the following:

    <input type="hidden" name="control_device" value="Den Light=off">
    <input type="submit" value="Room Lights OFF" name="control_device">.

    Is there a way to point this script to the right port. Or some different way of doing this?
    Kirk

    http://cleverhouseautomation.ca
    http://southcoastwebsitedesign.ca

    #2
    Kirk,
    You simply need to instantiate the HomeSeer object in your IIS asp page. Try adding this to your IIS asp page as a test:

    set hs = CreateObject("HomeSeer.Application")

    and then use asp to control the device by using hs.execX10 instead of using the input types.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Rupp.

      My page is not an ASP it is just HTML. Is there no way to do this using HTML?
      I hope you are not telling me that I have to go spend a small fortune on .ASP book to learn that. I really do not know anything about it
      Kirk

      http://cleverhouseautomation.ca
      http://southcoastwebsitedesign.ca

      Comment


        #4
        Ok so I take it by the lack of responses that using an asp page is the only way to do this. Am I correct in this?

        If so, can someone point me to a good reference web page for starting .asp scripting.
        Kirk

        http://cleverhouseautomation.ca
        http://southcoastwebsitedesign.ca

        Comment


          #5
          If you are going to just use html, then you probably need to make links with the IP address and port in them for the other server just like most any other html page.
          Why I like my 2005 rio yellow Honda S2000 with the top down, and more!

          Comment


            #6
            I was wondering if I could do that. However I was not sure where the I.P address or URL would go in the script.

            What part should I edit?
            Kirk

            http://cleverhouseautomation.ca
            http://southcoastwebsitedesign.ca

            Comment


              #7
              See if the below setup is what you need. The action line should have the IP address and such for the server where the action is to take place (the IP address line below is just one I used for test purposes).

              <FORM ACTION="http://127.0.0.1:88/cgi/ringin.bat">
              <input type="hidden" name="control_device" value="Den Light=off">
              <input type="submit" value="Room Lights OFF" name="control_device">
              </FORM>
              Why I like my 2005 rio yellow Honda S2000 with the top down, and more!

              Comment


                #8
                Zoomkat,

                When I use the snippet that you sent I get the Homeseer password protection box. When I eneter my pass I get page cannot be found error.

                What folder on my HS server should I be looking for? I tries both my IP address:Port as well as My NO-Ip address.

                I feel close. What script is used to sontrol devices. Where do I access my events from the web
                Kirk

                http://cleverhouseautomation.ca
                http://southcoastwebsitedesign.ca

                Comment


                  #9
                  You will need to get help from others on setting up the homeseer web server and its directories, permissions, etc. If you can't get the job done with homeseer (not sure of just what you are trying to do), then there are probably alternative ways.
                  Why I like my 2005 rio yellow Honda S2000 with the top down, and more!

                  Comment


                    #10
                    My homeseer directory is set up. The script above was working when my Faimly website and Hs were all hosted from hs. Now that I have seperated the two web pages, this script does not work.

                    What I am Trying to do is simple. (I think) I have a web page on my Faimly web server that displays a camera in my den. I added the above script to my page so that if I log on to my page and the lights in my den are off I just click the button on the page and my den lights come on.

                    Also I have faimly all over the place so I created a chat room so we can chat without long distance charges. I have been playing with the idea of adding a button ion the bottome of my HTML chat page that when pressed would trigger an event on my homeseer computer to announce to the house that someone in in our chat room.

                    I am getting extremly frustrated because I know it should work, and it would if all pages were hosted from the same computer, on the same port, however since I changes to seperat computers (All connected on a LAN) I cannot get this to function.

                    What I need is if I use the script snippet that zoom suggested, I get my computer to talk to HS. I know this because I get the hs login box. However once I have scripted to hs web page, what folder or page do I need to access to be able to control an event on it. ( The event in this case is "Den Lights on"
                    Kirk

                    http://cleverhouseautomation.ca
                    http://southcoastwebsitedesign.ca

                    Comment


                      #11
                      Well, not having an immediate homeseer solution, you may want to get one of the below free firecracker setups (they are apparently back in stock) and put it on the apache machine to control the lights. Very simple setup to do that. If you want to tinker with a simple notifiation setup, copy the below rinin.bat file, paste in notepad and save in the apache cgi-bin folder. As a test, when you double click on the ringin.bat file, the ringin.wav file should play. Then on another computer, use the ringin.bat link (change to the appropriate IP addrtess and port) in the brouser URL box, click go, and the ringin.wav file should play on the apache machine (you should also be able to put the link in the button setup).

                      http://www.x10.com/products/firecrac...irecracker.htm

                      ===rinngin.bat link=======

                      http://127.0.0.1:88/cgi-bin/ringin.bat

                      ========ringin.bat========

                      @echo off
                      echo status: 204
                      echo.
                      echo.
                      sndrec32.exe /play /close %windir%\media\ringin.wav
                      cls
                      Why I like my 2005 rio yellow Honda S2000 with the top down, and more!

                      Comment


                        #12
                        Ok I will give that a try
                        Kirk

                        http://cleverhouseautomation.ca
                        http://southcoastwebsitedesign.ca

                        Comment

                        Working...
                        X