gazoodle / geckolib

Library to interface with Gecko Alliance spa pack systems via in.touch2 module
GNU General Public License v3.0
62 stars 24 forks source link

Set/synchronize the spa clock? #43

Open rct opened 1 year ago

rct commented 1 year ago

Is there a way using Geckolib to set the clock on the spa to the correct time?

If not, is this something that could be possible with geckolib?

FWIW, I noticed my spa didn't adjust for the end of daylight savings time. Additionally the spa's clock seemed to be fast by about 9 minutes. I probably noticed this because my in.touch2 unit wasn't communicating with the gecko servers. (It was trying to connect to intouch.geckoal.com and getting bad a misformatted ICMP port unreachable that never got back to the intouch.2. I was able to work around that by adding a host entry to my router that pointed intouch.geckoal.com to intouch2.geckoal.com.)


In case it helps, though the debugging process I did see at least the time synchronization request that my steamlinx unit sends to the gecko server: <SYNCH>ATIME</SYNCH>

The response from the Gecko server appears to be <SYNCH>TIMEAymd?hms</SYNCH> The ymd,hms values are in binary not ascii, so 0x170b12 for 23-11-18 (today). The ? for me was an 0x06 between the ymd and hms. Not sure of the significance of that 0x06, a fixed separated or some timezone indicator?