benjymous / MWM-for-Android

Meta Watch Manager Android SDK project for watch wrangling, remote protocol handling and notification routing for the Meta Watch wearable development systems. Includes an Intents based API for quick experiments.
www.metawatch.org
Apache License 2.0
59 stars 30 forks source link

DST #77

Open sdemills opened 11 years ago

sdemills commented 11 years ago

Last night the UK came out of DST. This morning the phone (GS2) is displaying the correct time but the MW is still an hour ahead. What is more, the MW time is 4 mins out (to be clearer, it is in total 56 mins ahead of the phone time). Now I have noticed in the past that when the MW is disconnected and left to run on its own then its internal timekeeping is not very accurate. So my conclusion is that MWM is no longer sending the time to the MW. If I stop the service and start it again then the MW time is updated correctly.

benjymous commented 11 years ago

Yup, my watch didn't get the updated time either. This is related to issue #61 - it seems like automatic RTC updates fail when the phone is sleeping, but work fine when the phone is awake.

Possibly just need to obtain a wakelock whilst updating the watch time?

If you manually change the time on your phone, you should see the watch update too.

sdemills commented 11 years ago

OK. How often do RTC updates take place? IOW if I had waited a bit would it have happened anyway?

On 28 October 2012 12:25, Richard Munn notifications@github.com wrote:

Yup, my watch didn't get the updated time either. This is related to issue

61 https://github.com/benjymous/MWM-for-Android/issues/61 - it seems

like automatic RTC updates fail when the phone is sleeping, but work fine when the phone is awake.

Possibly just need to obtain a wakelock whilst updating the watch time?

If you manually change the time on your phone, you should see the watch update too.

— Reply to this email directly or view it on GitHubhttps://github.com/benjymous/MWM-for-Android/issues/77#issuecomment-9845228.

benjymous commented 11 years ago

It doesn't do it on a schedule, just automatically on connection, and if the time on the phone changes (or at least should do) - I have considered adding a daily time sync, just to make sure it stays right.

sdemills commented 11 years ago

Perhaps another option? - how often to send a time sync

On 28 October 2012 15:04, Richard Munn notifications@github.com wrote:

It doesn't do it on a schedule, just automatically on connection, and if the time on the phone changes (or at least should do) - I have considered adding a daily time sync, just to make sure it stays right.

— Reply to this email directly or view it on GitHubhttps://github.com/benjymous/MWM-for-Android/issues/77#issuecomment-9846563.

sdemills commented 11 years ago

I notice after the last update that even on service recycle the time now no longer corrects. I have gotten around this at this point by using Tasker to fire, on a schedule, an Intent: android.intent.action.TIME_SET and that has fixed the problem for me.

Ideally, MWM should have an Option to correct the time on a user-defined schedule. For example: I'm using hourly between 7:00-23:00.