Niagara-Issues icon indicating copy to clipboard operation
Niagara-Issues copied to clipboard

Weather unreliable / weather without location service

Open maskyad opened this issue 8 years ago • 26 comments

I hope the weather app could work without the location activate. Something like "favourite list is places" and u choose one for show the weather.

maskyad avatar Sep 11 '18 03:09 maskyad

I am using Google's Awareness API and it doesn't let you choose a manual location. I would have to use another weather provider for that, so it's not that easy.

8bitPit avatar Sep 11 '18 10:09 8bitPit

Wouldn't it be possible to somehow trick awareness API into thinking you're here/there? Or would that require mock location access?

jakcharvat avatar Sep 11 '18 10:09 jakcharvat

Dark Sky fornece uma API gratuitamente.

Scorpionk1 avatar Sep 11 '18 12:09 Scorpionk1

@Scorpionk1 Sorry, I am Czech, the developer is German, the common language is English. Please stick to that

jakcharvat avatar Sep 11 '18 12:09 jakcharvat

Dark Sky has free APIs. I do not know if you can disable the location.

Scorpionk1 avatar Sep 11 '18 12:09 Scorpionk1

Is there any way to fix your location to a place, requiring you to only temporarily switch on location when you're going to a different place. It would be a neat fix, as I too don't like leaving my location on.

Shinra04 avatar Sep 13 '18 05:09 Shinra04

@Scorpionk1 it's not completely free: The first 1,000 API requests you make every day are free of charge. Every API request over the free daily limit costs $0.0001.

8bitPit avatar Sep 15 '18 15:09 8bitPit

@Shinra04 that's not possible with Google Awareness, sry

8bitPit avatar Sep 15 '18 15:09 8bitPit

So, I don't really know whether this is helpful or not. My i3bar uses "the" yahoo weather api and this works with no problems and also without any api key; at least as far as I can tell. It just requires a woeid (where on earth identifier) and then calls this url: https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid="26821871" and u="C"&format=json&env=store://datatables.org/alltableswithkeys (here woeid is set to Berlin, Germany). If you want to look further into the code, here is the github link: github:ultrabug/py3status.

However, my problem is that I couldn't quickly find any decent documentation on Yahoos website about this and I am kind of bothered by the env=store://datatables.org/alltableswithkeys thingy at the end of the url as it suggests being a pirated keystore or something?! Just wanted to share this with you, in case this is a good alternative to the google awareness api :)

Nik-Sch avatar Oct 08 '18 19:10 Nik-Sch

Thanks @Nik-Sch. Unfortunately Yahoo will shut down the service, they wrote:

The weather.yahooapis.com and fallback endpoints are being retired. We will no longer be providing free Weather API services for public users. Please contact [email protected] if you have any questions, comments, or interest in supported paid services.

(source)

8bitPit avatar Oct 09 '18 20:10 8bitPit

You can always use OpenWeatherMap, for example.

governos avatar Dec 09 '18 22:12 governos

@deadcombo OpenWeatherMap is not free, unless you have less than 60 calls per minute: https://openweathermap.org/price Unfortunately that's not enough for Niagara, it would cost 40$/month

8bitPit avatar Dec 11 '18 21:12 8bitPit

And when it is not showing whether information on the home screen with telling me the information is "currently unreliable" in the setting, it keep requesting the location information. Sticking to a place is needed, and I want to see the weather information no matter it's reliable or not. Because when it disappears, I feel like I paid for something but didn't get anything back…

ghost avatar Jan 16 '19 14:01 ghost

Is it not possible to fetch the info from a preinstalled weather app? Most phones have some sort of a weather map preinstalled.

DoggoOfSpeed avatar Jan 16 '19 15:01 DoggoOfSpeed

@Vv2233Bb It's not possible by default, those apps would have to provide an API, so Niagara can request/receive data.

8bitPit avatar Jan 16 '19 16:01 8bitPit

@CircleYuanX If the launcher has weather data, it will show it to you, whether it's reliable or not.

8bitPit avatar Jan 16 '19 16:01 8bitPit

@8bitPit what about widgets?

DoggoOfSpeed avatar Jan 16 '19 16:01 DoggoOfSpeed

@Vv2233Bb yeah, that would work. Widget support is planned: https://github.com/8bitPit/Niagara-Issues/issues/117

8bitPit avatar Jan 17 '19 20:01 8bitPit

A suggestion: if you could classify weather apps like you have music players (I think) for the favorites/home screen persistent notification, everyone could just continue using whatever weather app they have, basically all of them have persistent notifications. On-screen location would be virtually the same also.

sauces1313 avatar Apr 18 '19 13:04 sauces1313

Weather works great in my location.

OceTech avatar Apr 20 '19 14:04 OceTech