Weather unreliable / weather without location service
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.
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.
Wouldn't it be possible to somehow trick awareness API into thinking you're here/there? Or would that require mock location access?
Dark Sky fornece uma API gratuitamente.
@Scorpionk1 Sorry, I am Czech, the developer is German, the common language is English. Please stick to that
Dark Sky has free APIs. I do not know if you can disable the location.
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.
@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.
@Shinra04 that's not possible with Google Awareness, sry
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 :)
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)
You can always use OpenWeatherMap, for example.
@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
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…
Is it not possible to fetch the info from a preinstalled weather app? Most phones have some sort of a weather map preinstalled.
@Vv2233Bb It's not possible by default, those apps would have to provide an API, so Niagara can request/receive data.
@CircleYuanX If the launcher has weather data, it will show it to you, whether it's reliable or not.
@8bitPit what about widgets?
@Vv2233Bb yeah, that would work. Widget support is planned: https://github.com/8bitPit/Niagara-Issues/issues/117
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.
Weather works great in my location.