Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: "flash an LED" on a web-exported CC page? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 03 2014 at 21:13 | IP Logged Quote jeffw_00

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 View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 05 2014 at 10:43 | IP Logged Quote jeffw_00

no one?
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: January 05 2014 at 11:23 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 05 2014 at 11:36 | IP Logged Quote jeffw_00

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 View jeffw_00's Profile Search for other posts by jeffw_00
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 06 2014 at 17:19 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 06 2014 at 17:29 | IP Logged Quote jeffw_00

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 View jeffw_00's Profile Search for other posts by jeffw_00
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum