Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: CC versus WC Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 19 2009 at 11:03 | IP Logged Quote GadgetGuy

When I tap a button on my CC screen I execute a macro to sense the current state of the switch associated with the button and then toggle the switch state and correct the button's image, as appropriate.

It used to work in real time with both the CC and the WC (Web Center) displays, but recent changes I've made (darned if I can figure out which) seem to have killed the WC update. If I F5 refresh my web screen the display then becomes correct. On the CC page it is instant and automatic.

From my web page, I call the button tap processor with
Code:
<td width="85" height="50"><div align="center"><a href="http://mydomain.com/ph-cgi/controlcenter?TYPE=3">CC </a></div></td>


The TYPE=3 parameter on the call, used to do the trick but no more.

Any ideas, and/or is there a way to force a web screen update from my state-check macro within PH?

As always. . . "THANKS."

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 19 2009 at 13:29 | IP Logged Quote GadgetGuy

I'm suspecting that what is happening here is that my added state check code resulted in enough delay that the auto update that PH issues to a web page is pushed out before the device status has actually been determined.

If this is the case is a javascript solution on my actual web page to refresh the screen automatically in 2 seconds the only way out?

[OR] Dave, if this is the case and you see this, is it possible to delay the refresh of the web page for a TYPE=3 configuration to be a bit more delayed (setup par maybe?)

Edited by GadgetGuy - January 19 2009 at 13:31


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 

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