GithubHelp home page GithubHelp logo

dextrack's People

Contributors

osa1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dextrack's Issues

Optimize session renewals

I think sessions get invalid after 24 hours. We should add a debug log (it should print the time) when we got an invalid session. After a few days we should be able to look at the logs and figure out the exact lifetime of a session.

Once we know the session lifetime for sure, we can store the last login time, and when the time between the next request and the last session renewal is more than the lifetime we login again instead of trying to read the bg data.

Show remaining temporal event time in seconds, using partial updates

We should show time left for the next temporal event in seconds when it's less than 60 seconds, otherwise we show it as minutes as we do now.

I think we should be able to use partial updates for this.

If we start using partial updates, maybe we can also show the second component of current time. We probably want to move the battery indicator to the left and use the space on the right for the second component.

Missing temporal events after a disconnect

When phone and watch go out of range, after connecting again, it seems like the next temporal event is not getting fired, and the app also doesn't schedule new temporal events.

As a result, we see "next event time" shown as negative number (i.e. we should've done a request but didn't) and we never update the bg levels again.

The workaround is to switch to a widget and then back to the watch face, which schedules a temporal event again.

We should find out which callbacks are called after a re-connection and schedule a temporal event there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.