Hi,
I want to share my Open Source app - Open Weather Widget:
https://apps.garmin.com/en-US/apps/1f3f2d10-ac05-4a9b-a8fa-bdeac8775793
Here is the complete code for it:
https://github.com/desyat/OpenWeatherMapWidget
Specific things that are used in the code:
- Background web requests (OWM API)
- Online web requests
- Open Weather Map API usage example
- Glance view for widgets
It is challenging to reuse the code for 3 different processes in the app (main app, background, and glance view). I attempted to minimize code repetition, but as a result the code got a bit more complicated. Feel free to ask questions or recommend improvements.
Thanks!