Author |
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: November 03 2012 at 09:10 | IP Logged
|
|
|
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 |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 03 2012 at 11:13 | IP Logged
|
|
|
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 |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: November 03 2012 at 12:04 | IP Logged
|
|
|
Awesome, Dave!
__________________ Skip
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 03 2012 at 18:22 | IP Logged
|
|
|
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 |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 04 2012 at 16:00 | IP Logged
|
|
|
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 |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: November 04 2012 at 20:15 | IP Logged
|
|
|
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 |
|
|