Author |
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: January 03 2014 at 21:13 | IP Logged
|
|
|
Hi - I have successfully created a CC page and made it visible on my local network using the internal web server. The problem is that there is no visual feedback when someone presses a button.
I have tried writing code that changes object color, and using the method in the code generated by the wizard. Both look great locally, but from a remote machine the color changes don't show up.
Essentially, I want to write some code that "flashes an LED" on the CC page in a way that is visible on a remote web browser.
Any ideas?
Thanks!
/j
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: January 05 2014 at 10:43 | IP Logged
|
|
|
no one?
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: January 05 2014 at 11:23 | IP Logged
|
|
|
If I understand your issue correctly.....
I believe if you were to do a "refresh" on the remote machine's PH served web page, you would see that the button color will change (to test this - add another separate button to your webpage that does nothing but asks for a web refresh).
The issue of "status change confirmation" on a remotely served page without a refresh has been discussed on a couple of occasions before. To my knowledge, there has not been any "tidy" solution other than doing that extra "refresh" on the remote machine.
Edited by smarty - January 05 2014 at 11:25
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: January 05 2014 at 11:36 | IP Logged
|
|
|
yeah - actually - that makes sense - unless you put some sort of active X component or some such into the page.
OK - thanks!
/j
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 06 2014 at 17:19 | IP Logged
|
|
|
Jeff,
This is on the to-do list but won't make it in 2.1.5. What I will be adding is support for the "Button" type where the up/down color differs or the up/down graphics differ. Via javascript, I'll have the button transition just as they do in the desktop version of the CC.
Getting updates (done in code) to the CC would be a bit trickier since HTTP is a stateless protocol. Like you say, I'd need an activeX or I'd need to have background JS running checking for changes. I'll still take a look though to see what is possible but currently it doesnt exist.
One thing you may want to play with is the Remote CC client. This is a desktop (Windows app) that can be run on a remote machine that displays the CC. This app is capable of getting real time updates and gives the proper visual feedback.
Dave.
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: January 06 2014 at 17:29 | IP Logged
|
|
|
Thanks Dave - no problem. The more I thought about it the more I realize how difficult this is. Also, it sounds like the "Remote CC client" provides the desired functionality, so no need to replicate it a different way.
Looking at the homepage it looks like there's a download that has the client and (hopefully 8-}) documentation. I'll dig into it.
Thanks!
/j
|
Back to Top |
|
|