Announcement

Collapse
No announcement yet.

Trigger an event from an external webpage

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

    Trigger an event from an external webpage

    Hi can anyone tell me of a simple way to trigger an event from a web page.

    I want to be able to trigger my webcam from my own website ie start and stop streaming i have no experience with asp but would like to try in small stages if possible.

    thanks

    #2
    supergee try this:

    Put this code in an asp file named pushbutton.asp and change the event tot run from Speak Time to your events ...

    PHP Code:
    <%@ Language=VBScript %>
    <
    HTML>
    <
    HEAD>
    </
    HEAD>
    <
    BODY>
    <%
    Response.Write (request.form ("button1"))
    if  
    request.form ("button1") = "start" then
        hs
    .TriggerEvent "Speak Time"
    end if
    if  
    request.form ("button1") = "stop" then
        hs
    .TriggerEvent "Speak Time"
    end if
    %>

    <
    form action="pushbutton.asp" method="post">
        <
    input type=submit name="button1" value=start>
        <
    input type=submit name="button1" value=stop>
    </
    form>
    </
    BODY>
    </
    HTML
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Trigger an event from an external webpage

      Thanks rupp can see how that works but were do i place the pushbutton.asp file is it in my homeseer html file.i have tried this and its coming up cannot serve file on my hs log.

      Comment


        #4
        Yes it goes in your html folder. Can you serve any pages from your html folder? Have you activated the web server in the HS options?
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Hi rupp

          yes web server has been running a long time its only now im trying new things.
          can you just check that ive linked to the page correctly:
          <form action="http://192.168.1.4/pushbutton.asp" method="post">
          ive saved the pushbutton script in html in homeseer.

          cheers


          cheers

          Comment


            #6
            I could but I do not know your web sites url. Your public profile only has http://tba listed.

            What version of HS are you running?
            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

            Comment


              #7
              my mistake

              Sorry rupp i had saved the asp in the wrong file i have it working now just one more point and i will leave you alone how do i get the page to automatically go back to the button page from the asp

              cheers supergee

              Comment


                #8
                It should go back to the button page if you keep the name pushbutton.asp if you change it then you need to change the action of the html form.
                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                Comment


                  #9
                  is link correct

                  is this the correct link for the asp

                  <form action="http://192.168.1.4/pushbutton.asp" method="post">


                  Cheers supergee

                  Comment


                    #10
                    I don't see a link.
                    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                    Comment


                      #11
                      is link correct

                      i see i cant send html on this board sorry this is the link
                      http://192.168.1.4/pushbutton.asp

                      cheers supergee

                      Comment


                        #12
                        supergee,
                        If you pc's ipaddress is 192.168.1.4 and it's running on port 80 then yes the link is correct.
                        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                        Comment


                          #13
                          asp to return

                          cheers rupp just need to know how to get the asp page to go back to control page any ideas

                          cheers supergee

                          Comment


                            #14
                            You could always add a link back to the stat page by adding this line:

                            PHP Code:
                            <a href=stat>Return to Staus Page</a
                            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                            Comment

                            Working...
                            X