Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applet no longer connecting to yr.no #89

Open
gbcox opened this issue Dec 7, 2020 · 45 comments
Open

Applet no longer connecting to yr.no #89

gbcox opened this issue Dec 7, 2020 · 45 comments

Comments

@gbcox
Copy link

gbcox commented Dec 7, 2020

Within the last week, applet stopped updating. I'm thinking it may be due to recent Qt / Plasma updates, but I suppose there is also the possibility that yr.no has changed something on their end. In any event, I thought I'd let you know so you could check it out.

Thanks!

@gbcox
Copy link
Author

gbcox commented Dec 12, 2020

Figured it out. yr.no has changed their website, so the code no longer works. It needs to be be modified to match the new layout. OWM works fine.

@sergiodurand
Copy link

sergiodurand commented Dec 19, 2020

@gbcox You can use the yr.no old website layout to copy the working URL.
https://retro.yr.no/

Before confirm the URL in widget window, remember to replace retro by www

(not sure for how long yr.no will keep the old URL working)

@sspanak
Copy link

sspanak commented Jan 4, 2021

This doesn't help. The widget does not accept URLs that begin with retro.yr.no.

Obviously, the code should be updated to parse the new website layout, but sadly, this would probably never happen. The project seems to be abandoned since 2017...

@sergiodurand
Copy link

This doesn't help. The widget does not accept URLs that begin with retro.yr.no.

Before confirm the URL in widget window, remember to replace retro by www
Try again, it works that way.

@fkru
Copy link

fkru commented Jan 6, 2021

This doesn't help. The widget does not accept URLs that begin with retro.yr.no.

Before confirm the URL in widget window, remember to replace retro by www
Try again, it works that way.

Confirmed. However, the question remains whether the code will be adjusted to the new website.

@epassaro
Copy link

Probably adjusting this line will make it work.

@sspanak
Copy link

sspanak commented Jan 19, 2021

Probably adjusting this line will make it work.

As @sergiodurand pointed out, there is no need to change anything in the code. Just taking away "retro" from the URL is fine. However, this would work only until yr.no shut down the retro site.

@fkru
Copy link

fkru commented Jan 19, 2021

Probably adjusting this line will make it work.

As @sergiodurand pointed out, there is no need to change anything in the code. Just taking away "retro" from the URL is fine. However, this would work only until yr.no shut down the retro site.

That's exactly the point, the retro.site will be removed sooner or later.

@epassaro
Copy link

Retro site should be online for a couple of years, otherwise does not have sense to make a legacy url. But this repo hasn't been updated in three years. Probably it's time to make a fork.

@fkru
Copy link

fkru commented Jan 20, 2021

Retro site should be online for a couple of years, otherwise does not have sense to make a legacy url. But this repo hasn't been updated in three years. Probably it's time to make a fork.

I inquired at yr.no on the availabilty of the retro site, and I have just got this answer:

"Meteorologisk institutt (Yr)
Jan 20, 2021, 9:11 GMT+1
We dont have any exact time.
Maybe april 2021.
Yr/ Elisabeth"

@JulienDlq
Copy link

I am interested too, I really like yr.no informations + meteogram!

@akontsevich
Copy link

akontsevich commented Apr 1, 2021

Workaround:

  1. Take URL from https://retro.yr.no/place/...
  2. Copy paste to the widget
  3. Replace retro prefix with wwwand voila - it works: https://www.yr.no/place/...

@akontsevich
Copy link

This doesn't help. The widget does not accept URLs that begin with retro.yr.no.

Before confirm the URL in widget window, remember to replace retro by www
Try again, it works that way.

Yep, that works!!! Thanks!

@JulienDlq
Copy link

Meteogram still not work with the workaround on my side. 😢

@fkru
Copy link

fkru commented Apr 1, 2021

Workaround:

1. Take URL from `https://retro.yr.no/place/...`

2. Copy paste to the widget

3. Replace `retro` prefix with `www`and voila - it works: `https://www.yr.no/place/...`

As I have already mentioned above, the retro.yr site will be removed soon, maybe this month.

@akontsevich
Copy link

As I have already mentioned above, the retro.yr site will be removed soon, maybe this month.

Lucky people who'll keep old links 😉

@alfaflo
Copy link

alfaflo commented May 20, 2021

Now it seems the retro site has been shut down...
Anybody here who can modify "YrNo.qml" to be able to fetch the weather data from new web site? 🤔🙂

@gbcox
Copy link
Author

gbcox commented May 20, 2021

I just switched over to using Open Weather Map. Seems to work fine.

@alfaflo
Copy link

alfaflo commented May 20, 2021

I just switched over to using Open Weather Map. Seems to work fine.

Yes, OW works, but yr.no was very accurate in terms of weather forecast... I've loved it but I do not have the programming skills to "repair" yr.no data fetching... 🙁

@fkru
Copy link

fkru commented May 20, 2021

I just switched over to using Open Weather Map. Seems to work fine.

Probably the only solution, since the applet is not maintained anymore (tried to contact the maintainer some time ago without success). With yr.no the applet is dead.

@fkru
Copy link

fkru commented May 20, 2021

The retro site is back! The applet is working as expected again.

@alfaflo
Copy link

alfaflo commented May 20, 2021

The retro site is back! The applet is working as expected again.

Very strange... couple of minutes ago it was "broken" 😁
Let's see how long it will work 🤔

@gbcox
Copy link
Author

gbcox commented May 20, 2021

I just switched over to using Open Weather Map. Seems to work fine.

Probably the only solution, since the applet is not maintained anymore (tried to contact the maintainer some time ago without success). With yr.no the applet is dead.

The meteogram on the new yr site appears to be more like what is used on the OWM site - and says "under construction". Not sure if that means they are working on making it look the same as the retro site or keep the "new" look. If they keep the "new" look, I don't see any advantage of yr.no over OWM. The retro meteogram on yr.no is very nice, but the new one isn't anything special.

@akontsevich
Copy link

I just switched over to using Open Weather Map. Seems to work fine.

Probably the only solution, since the applet is not maintained anymore

The only solution is to fork this. 😉

@arehtykitna
Copy link

yr.no data has stopped working as of this morning so in effect the app is now specifically for OWM only. They scheduled this at yr.no some time ago and it has come to fruition for the app now, Wednesday onwards is showing N/A for the meteogram already. I will switch the the nearest OWM station too which isn't quite as accurate as the Norwegian Weather Service prediction but still better than BBC's.

@akontsevich
Copy link

Strange, still works for me!

@gbcox
Copy link
Author

gbcox commented Oct 4, 2021

Strange, still works for me!

Works for me also. No issues.

@gbcox
Copy link
Author

gbcox commented Oct 4, 2021

As I have already mentioned above, the retro.yr site will be removed soon, maybe this month.

Lucky people who'll keep old links wink

As you previously mentioned, you need to keep the old links and replace retro.yr.no with www.yr.no.

@arehtykitna
Copy link

Screenshot_20211004_221403

@arehtykitna
Copy link

arehtykitna commented Oct 4, 2021

[Containments][2][Applets][22][Configuration][General] lastReloadedMsJson={"cache_5a5440a6c6026f3e61c6aee598cae8dc":1632806959604,"cache_63c4e139462a566e9c6718f387340bc7":1633381963936,"cache_d4e95df75abf69c7ea5dafc8415e1369":1633382019741} placeIndex=1 places=[{"providerId":"owm","placeIdentifier":"7294618","placeAlias":"Betws yn Rhos, GB"},{"providerId":"yrno","placeIdentifier":"United_Kingdom/Wales/Betws_yn_Rhos","placeAlias":"Betws yn Rhos"}]

@gbcox
Copy link
Author

gbcox commented Oct 4, 2021

[Containments][2][Applets][22][Configuration][General] lastReloadedMsJson={"cache_5a5440a6c6026f3e61c6aee598cae8dc":1632806959604,"cache_63c4e139462a566e9c6718f387340bc7":1633381963936,"cache_d4e95df75abf69c7ea5dafc8415e1369":1633382019741} placeIndex=1 places=[{"providerId":"owm","placeIdentifier":"7294618","placeAlias":"Betws yn Rhos, GB"},{"providerId":"yrno","placeIdentifier":"United_Kingdom/Wales/Betws_yn_Rhos","placeAlias":"Betws yn Rhos"}]

Are you asking a question? You can't use retro.yr.no. You have to use www.yr.no.

For example: https://www.yr.no/place/United_Kingdom/Wales/Betws_yn_Rhos/

@arehtykitna
Copy link

arehtykitna commented Oct 4, 2021

For example: https://www.yr.no/place/United_Kingdom/Wales/Betws_yn_Rhos/

No, I'm well aware of the need to do that. I'm just providing proof of that exact url not working any longer in the app. Look at the meteogram for Wednesday in the screenshot, the predictive table below it was generated with the last dataset available on the website but there is no detailed weather table for Wednesday onwards that the meteogram would be generated from.

The new site has them but the app cannot read them because it doesn't know where to load it from, they are using not only a new site but also a new server and backend.

@gbcox
Copy link
Author

gbcox commented Oct 5, 2021

For example: https://www.yr.no/place/United_Kingdom/Wales/Betws_yn_Rhos/

No, I'm well aware of the need to do that. I'm just providing proof of that exact url not working any longer in the app. Look at the meteogram for Wednesday in the screenshot, the predictive table below it was generated with the last dataset available on the website but there is no detailed weather table for Wednesday onwards that the meteogram would be generated from.

The new site has them but the app cannot read them because it doesn't know where to load it from, they are using not only a new site but also a new server and backend.

I don't know what you're doing, but the URL that I provided: https://www.yr.no/place/United_Kingdom/Wales/Betws_yn_Rhos/
works just fine.
Screenshot_20211004_172141

@akontsevich
Copy link

Today yr.no stopped working for me.

@arehtykitna
Copy link

I let KDE render the meteogram rather than using the yr.no one in your screenshot because I find the yr.no meteogram too low contrast to see properly and jarring on the black UI background.

It's in the app settings to do so, however it cannot render off data it cannot find. But anyway, seeing as it has begun failing for other people it clearly cannot be attributed to 'what I'm doing' now can it.

@Sadi58
Copy link

Sadi58 commented Oct 5, 2021

It seems the good old http://www.yr.no website has finally gone for good now, and it's time to switch to somewhat less accurate OWP data - at least until someone forks this applet.

@fkru
Copy link

fkru commented Oct 5, 2021

Yes, https://retro.yr.no/ does not exist anymore, but after some recent hiccup the weather widget just works fine. However, it is unclear to me how to add new links that provide the information delivered so far.

@gbcox
Copy link
Author

gbcox commented Oct 5, 2021

Yes, https://retro.yr.no/ does not exist anymore, but after some recent hiccup the weather widget just works fine. However, it is unclear to me how to add new links that provide the information delivered so far.

As mentioned previously, you have to rebuild the URL in this format:

https://www.yr.no/place/United_Kingdom/Wales/Betws_yn_Rhos/

If you saved your previous places, you should be fine. All of my links are working.
Screenshot_20211005_105359

@akontsevich
Copy link

Yes, https://retro.yr.no/ does not exist anymore, but after some recent hiccup the weather widget just works fine. However, it is unclear to me how to add new links that provide the information delivered so far.

As mentioned previously, you have to rebuild the URL in this format:

https://www.yr.no/place/United_Kingdom/Wales/Betws_yn_Rhos/

Ha, yep, it works again, and previous links still work.

@Sadi58
Copy link

Sadi58 commented Oct 5, 2021

Weird. https://www.yr.no/place/United_Kingdom/Wales/Betws_yn_Rhos/ works while the new website displays it in this format: https://www.yr.no/en/forecast/daily-table/2-7299981/Great%20Britain/Wales/Conwy/Betws%20Yn%20Rhos
Luckily, I've figured out the correct URL format for my two locations now. ☺

@arehtykitna
Copy link

Just over a week on and it's now stopped working permanently for the plasmoid for every location (with a message instead of a meteogram now) and for the last time I had used the right url format since it was posted about last December.

Since this is really abandonware anyway it's pointless even discussing this further or as someone else has done opening a new issue.

Stick with OWM or move to one of the standard KDE Weather plasmoid data source based Plasmoids.

I wish you all well in future endeavours!

@gbcox
Copy link
Author

gbcox commented Oct 13, 2021

Current status as of October 13, 2021: TLDR: It works if you follow directions mentioned above.

Screenshot_20211013_113926

@fkru
Copy link

fkru commented Oct 13, 2021

Just over a week on and it's now stopped working permanently for the plasmoid for every location (with a message instead of a meteogram now) and for the last time I had used the right url format since it was posted about last December.

Since this is really abandonware anyway it's pointless even discussing this further or as someone else has done opening a new issue.

Stick with OWM or move to one of the standard KDE Weather plasmoid data source based Plasmoids.

I wish you all well in future endeavours!

It seems to be a seesaw situation. In fact, for me it's working again after a couple of hours. According to https://developer.yr.no/doc/guides/deprecating-old-widgets/, there is an alternative, which, however, does not work for me.

@gbcox
Copy link
Author

gbcox commented Oct 13, 2021

It seems to be a seesaw situation. In fact, for me it's working again after a couple of hours. According to https://developer.yr.no/doc/guides/deprecating-old-widgets/, there is an alternative, which, however, does not work for me.

It's either their site (they are making ongoing changes), their internet provider, DNS or a mix and/or match of a multitude of factors. I'm the OP and the fix listed in this thread has been working for me since December 2020. Yes, occasionally I notice things aren't updating, but I just leave it alone and the next time I check it's back.

I did read your post about the old widgets (thank you for the heads-up, BTW). IMHO, the meteogram was the differentiator for the yr.no service. If they are indeed going to deprecate it, I see no reason for me to continue to use their service.

For those of you who might be interested in trying another KDE desktop widget, I would recommend:
https://github.com/Zren/plasma-applet-eventcalendar

It also will integrate your google calendar, etc. if you use that service.

@frankenfruity
Copy link

frankenfruity commented Oct 15, 2021

Throttling could explain why it periodically stops working for some. As far I as understand the TOS, this API shouldn't be used directly by clients. So this applet is kind of unsanctioned use of their service.
https://api.met.no/doc/TermsOfService

The API used by this applet is being phased out but for those of whom it's still working it's probably not great to use a short update interval. Their data only updates 4 times a day anyways for every where outside of Scandinavia.
https://hjelp.yr.no/hc/en-us/articles/360014549074-Updating-frequency-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests