Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome and Elk
 PowerHome Messageboard : PowerHome and Elk
Subject Topic: Set Elk Time? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: November 03 2012 at 09:10 | IP Logged Quote MrGibbage

Every year for the last five years, my Elk time gets out of sync right around the
Daylight Savings Time crossovers. True to form, my Elk clock is off right now by 23
hours. In a couple of weeks it will mysteriously fix itself. No amount to
synchronizing with different time servers makes any difference. Over in CT there is a
thread five pages long with people complaining about this bug that Elk somehow just
can't seem to fix. Ok, enough ranting. All I want to know now is there a way for me
to use PH to "manually" set the clock in my Elk? Since my computer doesn't have
problem keeping track of time, I could just push the time to my Elk once a day to
keep it in sync.

__________________
Skip
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 03 2012 at 11:13 | IP Logged Quote dhoward

Skip,

I had to check the sourcecode and the Elk docs. Long story short, you cant set it in the current version of PowerHome. However, it is a new command (available with Elk version 4.3.2) so I'll add support for it in the next beta.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: November 03 2012 at 12:04 | IP Logged Quote MrGibbage

Awesome, Dave!

__________________
Skip
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 03 2012 at 18:22 | IP Logged Quote dhoward

Skip,

I was mistaken. While working on the code to add this functionality, I find that I had already added it and just not documented it.

To set the time to the current time, you can use this formula:

ph_ctlrcmd("YOURELKID",7,0,0,string(today()),"")

It will return the time that you set in a string that would need to be parsed. If you'd rather not parse, then use the ph_ctlrcmd1 function.

To retrieve the date/time from the Elk, use this formula:

ph_ctlrcmd("YOURELKID",6,0,0,"","")

Hope this helps,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: November 04 2012 at 16:00 | IP Logged Quote smarty

Very nice....


Elk has been struggling with this for too long!!!

PH to the rescue.


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: November 04 2012 at 20:15 | IP Logged Quote MrGibbage

Worked perfectly for me. Yes, Elk really needs to crack the code on
this. Maybe they should ask Dave how he does it :)

__________________
Skip
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 

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