Change weather provider to yr.no for the default weather app

Open-Meteo is an open-source weather API and offers free access for non-commercial use

Openweather faq:

1,000 API calls per day are included for free.

Yr.no does not offer commercial service, but jolla would need to get a special agreement, from link you posted:

Bandwidth
Anything over 20 requests/second per application (total, not per client) requires special agreement.

with them to avoid getting their user-agent banned like default android:
https://api.met.no/weatherapi/locationforecast/2.0/documentation#AUTHENTICATION

Examples of banned User-Agents include:
okhttp
Dalvik
fhttp
Java

Or you would spend dev resources only to have the weather fixed only to get broken again

Take a look at my post here: Change weather provider to yr.no for the default weather app - #3 by emva

My GNOME Weather App uses data from https://www.met.no/en which is the institute that provides yr.no services:
Weather – Apps for GNOME
GNOME / Weather · GitLab
How do they solve these limitations?

Probably through the special agreement they mention is needed for higher bandwidth usage, no idea how easy it is to get it or how willing they are to give it (or what it includes), also no idea how often their api changes, how reliable the service is etc

F-Droid’s Weather Forecast app also uses yr.no / api.met.no :

Take a look at my post here: Weather-App and Widget Connection Problem - #58 by jrg

1 Like

Yeah, open sourcing would be the best, otherwise ppl can try the patchmanager approach, but that is likely to get the default QML UA banned by yr.no (if it isn’t already, those were just examples after all and iirc jolla still did not stop blacklisting useragent headers in qml xhr, so patches will get you only so far), not sure yr would get into agreement with a patch author, maybe worth bringing up at a community meeting, if opensourcing is problematic maybe NDA for community volunteers willing to address this would be possible (it really should be pretty simple switching few urls/parameters, getting it done properly to avoid banning etc is the tricky part)

What is situation with jolla weather?Anything new after this february conversation

No. In the C2 5.0.0.21 changelog i saw that weather packages are removed.

So Meecast is an only working alternative.

3 Likes

We also have a few other weather apps in Jolla store.

Mine (mostly my students’) is called France Meteo and works worldwide (it uses Meteo Frances API).

1 Like

That is true, but as i know, only Jolla Weather and Meecast utilize SailfishOS’s Events view, what is very handy.

6 Likes

Agreed, in particular this, in post #13, looks really good.
The original weather widget, with an alternative backend if I understand it correctly.

Thoroughly hoping that makes it to the public, because as good as Meecast is, I loved the original event widget :blush:

6 Likes

Sadly it looks out hero is being blocked by jolla devs unwilling to let qml calls set their own user-agent (and yr.no blocking default qt/qml xhr ua): Remove user-agent filter by szopin · Pull Request #9 · sailfishos/qtdeclarative · GitHub

2 Likes

Does it mean we can no longer see weather info in eventview or lock screen ? Meecast does not work on my C2(it can’t keep the setting)

Meecast should work if you install all the parts in correct order, the PR was accepted so there is a chance the old weather widget will get fixed in 5.0.0.7x or something like that

I’m not sure what exaclty you meant by ‘correct order’. Isn’t there only one app to install?

Install in this order: Meecast App, Meecast Daemon, Meecast Eventview. Maybe a reboot is required.

If I recall correctly, you have to install meecast, meecast-daemon and meecast-event and at least in the past people had problems getting the event view widget working if they installed them in wrong order. I would assume it should work if you install all three of them at once from command line. There is at least one quite a long topic about this around and after the time the official Jolla one stopped working.

2 Likes

Meecast works great on te C2. And you can see weather on the events screen, when the right packages are installed.

While I wait on Jolla to fix the weather app, I just ask my family with i-devices what the weather will be.

2 Likes