Giter Site home page Giter Site logo

tides's People

Contributors

arturoabruzzini avatar

Watchers

 avatar

tides's Issues

Make data refetching smarter

Since tides,sea level and astronomical data don't change, they can be fetched in advance only once a week or so, and we can use more of the 10 request quota to get more frequent weather updates

Use available colours

In the ts node script:

  • generate the image with canvas

  • use rgbquant to dither it

    • render to png for debugging
  • save to a custom file format

    • raw binary buffer
    • use similar/same structure to what goes into the buffer
      • maybe same but a single 3b plane instead of 3 1b planes
        • so it can be read bit by bit if needed

In the micropython firmware:

  • load buffer into memory
    • or read bit by bit?
  • set the pixels one by one

Optimize if needed by:

  • defining a background colour
    • set that first to the whole screen
    • then only setting pixels that aren't the background colour
  • setting pixel spans instead of individual pixels

Get data from stormglass API

  • store api key in github secret
  • cache the data in github cache
  • add workflow input to force refresh twice a day, at 7am and 2pm

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.