JohnySeven / TWatchSK

TTGO T-Watch 2020 v1 supporting Signal K features for displaying boat data and controlling devices on board.
MIT License
9 stars 1 forks source link

Short wakeup - SK websocket - post pone switching to active mode #32

Closed JohnySeven closed 3 years ago

JohnySeven commented 3 years ago

Related to #30: When you wake up your watch via double tap or tilt should we restore normal SK data flow or should we do it if user does touch on the screen? One of the pros is saving the power as we don't transfer much data to just look at the time. Cons are if you are on dynamic view it didn't get updated. Let me know what's your approach on this.

ba58smith commented 3 years ago

I think the proper thing to do is to restore normal SK data flow when the watch is awakened by tilt or double-tap, IF the active screen is a Dynamic View, to update the SK data on that screen. If we don't, then the user will probably think that the data they see for 2 seconds is the current data, but it isn't. It will probably take a few seconds to restore the SK data flow, so the temporary_timeout (which is currently only 2 seconds) should probably be made a little longer, to give the watch time to restore SK data flow, and update the dynamic view with the latest data. (But I suggest we make it longer ONLY when showing a dynamic view - it doesn't need to be longer than 2 seconds if you're just getting the time.)

JohnySeven commented 3 years ago

PR #44 is dealing with this enhancement.

JohnySeven commented 3 years ago

Done!