Sharing of weather data to Kvaesitso launcher
Problem Statement
Hello
I wanted a feature that Breezy Weather and Kvaesitso currently have.
What basically happens is that Breezy Weather can share the weather data to Kvaesitso using a plugin. In this way the Launcher's Widget and the Temperature in the App is the same.
Breezy Weather Kvaesitso Launcher Kvaesitso Breezy Weather Plugin
Proposed Solution
Implement and functionality similar to Breezy Weather and Kvaesitso Launcher
Alternatives Considered
No response
Additional Context
No response
It would also great if it would integrate into Lawnchair or other launchers.
And into Gadgetbridge (probably)
I have to read their documentation because I have no idea how to do it. lol, I'll include it in a future release or maybe the next one if it's easy
And into Gadgetbridge (probably)
This is a neat idea! It would be awesome to integrate it into Gadgetbridge and have it on my watch as well!
I would also like to see Gadgetbridge support here. As I looked into how one could do it, I will link what I found here, so maybe it get's easier for you to later implement it.
Gadgetbridge expects the app to let the app send data via an intent to them. They will not request the data themselves so it would make sense to send those data to Gadgedbridge on each update (or when the widgets are refeshed).
Gadgetbridge has some short documentation on this here: https://gadgetbridge.org/internals/development/weather-support/#weathergz
They expect a gzip compressed json array of weather data in the extra WeatherGz.
The json consists of a map of locations that each provide current weather data and forecast data.
- Here is the json parsing implementation of quickweather: https://github.com/TylerWilliamson/QuickWeather/blob/537dc08085cac91e68969a2b98fc5f4492098bcd/app/src/main/java/com/ominous/quickweather/api/Gadgetbridge.java#L53C1-L98
- And here you can find the implementation of BreezyWeather (Note they have very clean classes for how the json should be structured under the json folder): https://github.com/breezy-weather/breezy-weather/tree/main/app/src/main/java/org/breezyweather/sources/gadgetbridge
I hope this helps. I would also make a PullRequest with the changes, but unfortunally I was not able to set the project up first try and simply have not the time for longer debugging, so I thought it would be good to provide this information to you first and maybe at a later time (in a couple weeks) try again, if you did not implement it by then yourself. (PS: Do you allow Pull Request on this repo?)