Jump to content

Question about Subscribing from Web Project


imxuf92

Recommended Posts

Hello!

 

I'm creating an intranet web portal whereby users can control the ISY from a remote location via SOAP requests. In general, I have things working (DON, DOFF, etc.)

 

I'm trying to obtain device status via the ISY subscription mechanism. How does this work within a web page framework since the webpage is stateless?

 

Does the "reportUrl" value simply contain the url of the main page, which then gets called when status messages are sent?

 

I have code working using sockets in a windows/forms app, but now I'm stuck when it comes to doing this from a webpage.

 

Does anyone have sample code that shows how a webpage/site would set up and handle/process subscribed messages?

 

Thanks everyone!

Link to comment

Hi imxuf92,

 

Until such time that we implement websockets, there's really no easy way for static HTML pages (without the help of dynamic cgi/script backend) be able to provide real time information. So, unfortunately so, at the moment you have to:

1. Have your server subscribe to ISY

2. Have your server read/parse events coming from ISY

3. Somehow update your page using either websockets OR some other more dynamic UI framework

 

With kind regards,

Michel

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...