Jump to content

Question about Subscribing from Web Project


imxuf92

Recommended Posts

Posted

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!

Posted

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

Posted

I read something about Opera browser and firefox supporting some two-way communications extensions from a Tivo pre-release for a new developer interface.. might be worth checking out.

Guest
This topic is now closed to further replies.

×
×
  • Create New...