You are browsing as a guest. Sign up (or log in) to start making projects!

4h 37m 55s logged

Updated clock faces, alarms, and added provider API

  • Added a clock face and updated the more colorful one to look better when the digits overlap each other.
  • Added a new sensor bridge method getNextAlarm(), to get the phone’s next alarm
  • Added the foundations for provider APIs and an example implementation using weather

The provider API handles more complex and repetitive tasks for the plugins. For instance, instead of having 2 plugins both having to send out API requests to get data, the app gets the weather data itself and distributes it to the plugins in a similar way to the SensorBridge JS interface.

The weather provider refreshes every hour and caches the response from open meteo and provides some basic helper methods. For instance getCurrentWeather() gives the current weather information in a JSON which is easily used by other plugins. It also manages weather icon loading and caching from OpenWeather and passes it to the plugin in base64.

0
2

Comments 0

No comments yet. Be the first!