WangDaYeeeeee / GeometricWeather

A Material Design Weather Application
GNU Lesser General Public License v3.0
2.43k stars 186 forks source link

[Feature Request] Gadgetbridge TinyForecastGermany/WeatherNotification receiver support #237

Open 000exploit opened 3 years ago

000exploit commented 3 years ago

I'm a gadgetbridge user and don't want to use another application to get weather forecast on my device, so I think it would be good if there will be support for weather forecast for gadgetbridge. Source code of TinyForecastGermany receiver is located here

papjul commented 3 years ago

Most of us don't have this device so it would be impossible to work on this request. Thankfully, you seem to have programming skills, so it would be the best way to have it included in Geometric Weather.

All existing weather providers are from API. I don't know how this could work with a "gadget", and I wouldn't trust much the quality of the forecast data made by a " gadget". I mean how exactly can a "gadget" predict the weather forecast in 3 days? The rain? The wind? This is not how forecast is made.

Is there at least any documentation on how to get these data that you can share here?

000exploit commented 3 years ago

I don't know how this could work with a "gadget"

It's work for Gadgetbridge, only weather data must be provided for receiver.

Is there at least any documentation on how to get these data that you can share here?

I found only source code of gadgetbridge api implementation in tinyforecastgermany: https://codeberg.org/Starfish/TinyWeatherForecastGermany/src/branch/master/app/src/main/java/de/kaffeemitkoffein/tinyweatherforecastgermany/GadgetbridgeAPI.java There is also a model(???) of forecast data: https://codeberg.org/Starfish/TinyWeatherForecastGermany/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/WeatherSpec.java

Mrnofish commented 3 years ago

Most of us don't have this device so it would be impossible to work on this request

You don't need to have the hardware, GW only needs to talk to the open-source app GadgetBridge which will then take care of the rest.

https://f-droid.org/en/packages/nodomain.freeyourgadget.gadgetbridge/

Commenter25 commented 1 year ago

PR #329 by @NekoGIRLSAIKOU was closed for licensing reasons. However, it seems now Gadgetbridge has a generic receiver (see below links) which would not have any issues like this. Perhaps this should be reinvestigated?

https://github.com/TylerWilliamson/QuickWeather/issues/38 https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2830

papjul commented 1 year ago

Most of us don't have this device so it would be impossible to work on this request

You don't need to have the hardware, GW only needs to talk to the open-source app GadgetBridge which will then take care of the rest.

https://f-droid.org/en/packages/nodomain.freeyourgadget.gadgetbridge/

I installed this app and another weather app that supports Gadgetbridge, I can't find weather data inside Gadgetbridge, could you provide a step by step way to test the data without owning any hardware?

Mrnofish commented 1 year ago

Sorry, can't help: I no longer have any device supported by GadgetBridge, and I've switched to a different weather app, it's been years since I last looked into any of this stuff.

The GadgetBridge crowd should have a Matrix channel, though.

Commenter25 commented 1 year ago

It appears there is an unmerged PR for Gadgetbridge which would make development without a device far easier. It should be easy to just compile this branch and develop with that. https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3077

If for whatever reason you need a physical device, my recommendation would be a PineTime, which is what I use myself. It's cheap and sold brand new, and the most recent update added showing the weather! Which is why I'm personally quite excited that this is getting sudden attention ;D

marbetschar commented 8 months ago

Meanwhile there is 'some' documentation on how to get this done as well as the recommendation to use GenericWeatherReceiver. For more details see https://gadgetbridge.org/internals/development/weather-support/

Commenter25 commented 8 months ago

Geometric Weather is unmaintained at this point. The fork Breezy Weather has implemented Gadgetbridge support already.