! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
met.no-sunrise told this kind of network support is out of date and needs to ...
Status:
RESOLVED: FIXED
Product:
Xfce4-weather-plugin
Component:
General

Comments

Description siegmund.schlechter 2015-11-28 09:01:54 CET
Die met.no-sunrise-Schnittstelle hat mitgeteilt, dass diese Version des Netzdienstes veraltet ist. Wenn die Erweiterung nicht an die neue Version angepasst wird, wird sie in einigen Monaten nicht mehr funktionieren. Bitte erstellen Sie eine Fehlermeldung auf https://bugzilla.xfce.org, wenn das noch niemand getan hat.

I'm not sure what's really behind this. It shows up in the xfce4-weather-plugin details pop up menu. However it looks like this nice feature needs support, otherwise it had its best days.

Thanks a lot for taking care about!
Comment 1 Harald Judt editbugs 2015-11-28 20:26:26 CET
Thanks for the notice.

According to http://api.yr.no/weatherapi/sunrise/1.1/documentation, the sunrise API version 1.0 will expire on 2016-04-04, so there will be enough time to fix this.

version 1.1: 2015-11-01
- version 1.0 expires 2016-04-04 =item - bugfix: publish 0, 1, or 2 moon rise / moon sets per date.

Let's see what to do about this...
Comment 2 Tim 2016-02-16 01:12:36 CET
weather applet is reporting

Met.no sunrise API states that this version of the webservice
	is deprecated, and the plugin needs to be adapted to use
	a newer version, or it will stop working within a few months.
	Please file a bug on https://bugzilla.xfce.org if no one
	else has done so yet.

looks like the api just needs to be updated. not sure on the previous method but they have the updated info at http://api.met.no/weatherapi/documentation
Comment 3 ToZ editbugs 2016-04-08 04:54:55 CEST
Created attachment 6645 
Sunrise 1.1 api patch
Comment 4 ToZ editbugs 2016-04-08 04:55:15 CEST
If my understanding of the api change is correct, they've added a new field to the moon parameter (set_next):

<moon phase="First quarter" rise="2011-06-07T07:29:57Z" set="2011-06-06T23:11:45Z" set_next="2011-06-07T22:56:17Z"/>

This is to account for situations where there may be more than on moon set in a given 24 hour period. In reviewing the code, this shouldn't have too much of an effect. We need to:

1. Update the code to use the new sunrise api call
2. Account for the set_next variable in the code
3. Display it in the details section.

The above attached is a patch that does this.
Comment 5 ToZ editbugs 2016-04-18 04:29:51 CEST
Created attachment 6648 
Sunrise api 1.1 -atch

Updated to include the possibility of more than one moonrise (moonrisenext) and more than one moonset (moonsetnext).
Comment 6 Pjotr 2016-04-19 11:13:17 CEST
Unfortunately we only have a few days until the release of Xubuntu 16.04 LTS.

If there's no new release for xfce4-weather-plugin today or tomorrow, xfce4-weather-plugin will be unusable in Xubuntu 16.04 LTS and Linux Mint 18 Xfce (which will be built on Ubuntu 16.04).

On the other hand: if you would be able to do a new release today or tomorrow, I'll try my very best to convince the Xubuntu devs to include it for 16.04....
Comment 7 Harald Judt editbugs 2016-04-20 09:16:11 CEST
*** Bug 12507 has been marked as a duplicate of this bug. ***
Comment 8 Harald Judt editbugs 2016-04-20 09:16:34 CEST
*** Bug 12510 has been marked as a duplicate of this bug. ***
Comment 9 Harald Judt editbugs 2016-04-20 09:17:08 CEST
*** Bug 12421 has been marked as a duplicate of this bug. ***
Comment 10 Harald Judt editbugs 2016-04-20 09:17:51 CEST
*** Bug 12457 has been marked as a duplicate of this bug. ***
Comment 11 Harald Judt editbugs 2016-04-20 09:24:47 CEST
ToZ, thanks for the complete patch, this looks very good.

I will apply only one small part of this patch, that is the URL change, first and then release a new version soon (probably today). This should be safe and translators do not need to update. I will apply the rest of the patch later, so translators can catch up then.
Comment 12 Harald Judt editbugs 2016-04-20 09:50:32 CEST
From the changelog at http://api.met.no/weatherapi/sunrise/1.1/documentation:

- version 1.0 expires 2016-06-06
- bugfix: publish 0, 1, or 2 moon rise / moon sets per date.

@1) It seems they have changed the expiration date (that was 2016-04-04 before).

@2) ToZ, could you maybe provide sample data too (a link would be sufficient)? The schema at http://api.met.no/weatherapi/sunrise/1.1/schema does not show any of the additional xml attributes you use in the patch, though I do not doubt that it is correct.

Also, the plugin will not simply stop working. The error message is a bit misleading because I copied it from the message for the weather data. The plugin will simply not show any sunrise/sunset data when the sunrise service expires.
Comment 13 ToZ editbugs 2016-04-20 12:08:59 CEST
Harald,
At their documentation website, http://api.met.no/weatherapi/sunrise/1.1/documentation, in the usage section, they have 3 examples. The the xml output from the third one used to show two moon sets (see comment #4 where I copied and pasted the output). Strangely, this has changed an the output from that example no longer shows this, even though the description states that it does. I have emailed the met.no developers numerous times asking for sample output but have not received a reply.
Comment 14 Harald Judt editbugs 2016-04-20 14:12:11 CEST
I noticed this too. Unfortunately, the docs are often wrong or incomplete. Now I have looked at it again, they are not using the 1.1 version in that sample request. Here is the right one:

http://api.met.no/weatherapi/sunrise/1.1/?lat=70;lon=19;date=2011-06-07

It gives:
...
<moon phase="First quarter" rise="2011-06-07T07:29:57Z" set="2011-06-06T23:11:45Z" set_next="2011-06-07T22:56:17Z"/>
...

Maybe there is a better way to present this in the plugin than how we do it now, e.g. only show future moonrise/-sets and/or reorder the times. The plugin seems to work fine with the URL change alone, so there is still time to consider this.
Comment 15 ToZ editbugs 2016-04-20 14:34:23 CEST
Yes. That is what I based the patch on. I do agree that the api change only will be fine for now - everything will continue to work. We just won't see information about 2 moonrise, moonsets a day, which is a very rare occurence anyways.
Comment 16 Harald Judt editbugs 2016-04-21 18:41:13 CEST
I have released 0.8.7 which contains the URL change. This bug will stay open until I find more time to spend on investigating and deciding what to do with the rest of your patch.
Comment 17 ToZ editbugs 2016-04-23 03:27:31 CEST
I received a reply from met.no. As follows:

------------------------
Hello!

We're sorry for the delayed answer and for the unclarity about the change, we
have had some internal discussions.

It seems that the xsd is invalid after the upgrade, we will fix this in the
next update. Regarding the changes, you have found the example showing how this
looks like in the new version.

This time span shows both a rise_next and a set_next
http://api.met.no/weatherapi/sunrise/1.1/?lat=70;lon=19;from=2011-06-07;to=2011-06-18

If you compare this with the 1.0-version of sunrise, the old version actually
skipped one set (or rise), which clearly is wrong. Unfortunately we didn't get
the message from the developer about introducing a new attribute name.

I hope this answer your question, if not, feel free to ask again!


Mvh.
Siri Spjelkavik
-----------------------

Viewing the information at that link shows the two new variables (rise_next and set_next). My patch accounts for those two new variables.
Comment 18 Ken Bouchard 2016-04-29 02:14:17 CEST
It appears to be resolved, so admin you can close this. No longer an issue, last updates resolved it.

Thanks.
Comment 19 Landry Breuil editbugs 2016-06-14 22:06:41 CEST
*** Bug 12651 has been marked as a duplicate of this bug. ***
Comment 20 Ken Bouchard 2016-06-15 04:01:13 CEST
It seems to have been fixed, as it no longer shows up as of 2 months ago.
So moderator you can close this thread, and for now consider it resolved.

If it shows up in the next release of Ubuntu then a new thread and fix will be needed but since Mint 18 is not out yet, I guess were all set.

As for Ubuntu I have not chosen that Distro, So I am still using Mint and Ultimate Linux. Latest updates seemed to have resolved it.
Comment 21 Landry Breuil editbugs 2016-06-18 16:34:39 CEST
*** Bug 12536 has been marked as a duplicate of this bug. ***
Comment 22 Harald Judt editbugs 2016-06-18 19:39:42 CEST
*** Bug 12573 has been marked as a duplicate of this bug. ***
Comment 23 Landry Breuil editbugs 2016-08-11 10:35:36 CEST
*** Bug 12665 has been marked as a duplicate of this bug. ***
Comment 24 Harald Judt editbugs 2016-08-31 22:04:07 CEST
*** Bug 12804 has been marked as a duplicate of this bug. ***
Comment 25 Harald Judt editbugs 2016-08-31 22:04:41 CEST
*** Bug 12795 has been marked as a duplicate of this bug. ***
Comment 26 kostas.mitropoulos 2016-09-12 16:52:08 CEST
	Met.no sunrise API states that this version of the webservice
	is deprecated, and the plugin needs to be adapted to use
	a newer version, or it will stop working within a few months.
	Please file a bug on https://bugzilla.xfce.org if no one
	else has done so yet.

In case this is different to the earlier report.
Comment 27 Ken Bouchard 2016-09-12 22:44:30 CEST
I have not had any problems with it, so I am assuming this problem is resolved.
I haven't moved (I use Linux Mint) up to 18 *Sarah* yet. I am sure you would have heard by now if it has problems or not.
Comment 28 Harald Judt editbugs 2017-02-16 21:13:39 CET
Closing resolved fixed.
Comment 29 Landry Breuil editbugs 2017-03-02 18:22:48 CET
*** Bug 13372 has been marked as a duplicate of this bug. ***
Comment 30 Landry Breuil editbugs 2017-03-02 18:23:22 CET
*** Bug 13401 has been marked as a duplicate of this bug. ***
Comment 31 ron.l.johnson 2017-03-09 19:59:52 CET
What version was this fixed in?  The "Weather Update" from xfce4-panel 4.12.0 still shows the error.

	"Met.no LocationforecastLTS API states that this version
	of the webservice is deprecated, and the plugin needs to be
	adapted to use a newer version, or it will stop working within
	a few months.
	Please file a bug on https://bugzilla.xfce.org if no one
	else has done so yet.

	Astronomical data:
	Last:	2016-11-21 03:33:19
	Next:	2017-03-09 12:58:22
	Current failed attempts: 10905"

Thanks
Comment 32 ToZ editbugs 2017-03-09 20:16:13 CET
It was fixed in version 0.8.9: https://git.xfce.org/panel-plugins/xfce4-weather-plugin/commit/?id=a0fa6ea2e4c3e8e8b67ff518f5ed36ca7911e6fc

Check to see if you and/or your distro are using this version.
Comment 33 ron.l.johnson 2017-03-09 21:22:45 CET
ToZ,

Thanks.  I'm at Weather Plugin 0.8.6 (Xubuntu 16.04).
Comment 34 Landry Breuil editbugs 2017-03-23 13:36:36 CET
*** Bug 13427 has been marked as a duplicate of this bug. ***
Comment 35 Landry Breuil editbugs 2017-03-23 13:44:29 CET
*** Bug 13434 has been marked as a duplicate of this bug. ***
Comment 36 Landry Breuil editbugs 2017-04-26 18:33:01 CEST
*** Bug 13524 has been marked as a duplicate of this bug. ***
Comment 37 Dimitris T. 2018-12-07 22:56:49 CET
( maybe this should be a new bug, if so(?), please let me know...

having the same error, with xfce4-weather-plugin 0.8.9 and xfce4-panel 4.12.1 from devuan repos.. 
---
Downloads
	Weather data:
	Last:	2018-12-07 23:30:26
	Next:	2018-12-08 00:30:26
	Current failed attempts: 0

	Astronomical data:
	Last:	2018-12-07 23:30:26
	Next:	2018-12-08 23:30:26
	Current failed attempts: 0

	Met.no sunrise API states that this version of the webservice
	is deprecated, and the plugin needs to be adapted to use
	a newer version, or it will stop working within a few months.
	Please file a bug on https://bugzilla.xfce.org if no one
	else has done so yet.
---

thanks,
Comment 38 ron.l.johnson 2018-12-08 00:08:12 CET
The Weather app stopped working for a while, but then it started working.  The error message still appears though.  This is 0.8.9.
Comment 39 Dimitris T. 2018-12-12 16:52:26 CET
just a note : there is no such message in xfce4-weather-plugin 0.8.10 from mx linux repos.
Comment 40 MARTINEZ 2019-01-31 15:15:39 CET
L’API Met.no sunrise indique que cette version du service web
	est obsolète et le greffon doit être mis à jour pour utiliser une version
	plus récente, ou bien il cessera de fonctionner d’ici quelques mois.
	Veuillez signaler un bogue sur https://bugzilla.xfce.org si personne
	ne l’a encore fait.
Comment 41 Aschlla 2020-05-12 14:22:42 CEST
The Met.no LocationforecastLTS API reports that this
version of the web service is obsolete and that the plugin needs
be adapted to use a newer version, otherwise
it will stop working in a few months.
Version: 0.10.0
in 2020-09-22
Comment 42 Aschlla 2020-05-12 14:26:58 CEST
(In reply to Aschlla from comment #41)
> The Met.no LocationforecastLTS API reports that this
> version of the web service is obsolete and that the plugin needs
> be adapted to use a newer version, otherwise
> it will stop working in a few months.
> Version: 0.10.0
> (sorry, i wrote it wrong, that was the time uh)

Bug #12333

Reported by:
siegmund.schlechter
Reported on: 2015-11-28
Last modified on: 2020-05-12
Duplicates (15):
  • 12421 uses a deprecated API from met.no
  • 12457 вот как-то так
  • 12507 Met.no sunrise API states that this version of the web-service is deprecated
  • 12510 Weather plugin uses outdated API. Weather report displays the following: "Met.no sunrise API states that this version of the webservice is deprecated, and the plugin needs to be adapted to use a newer version, or it will stop working within a few months
  • 12536 Weather indicator shows it will be deprecated in a few months
  • 12573 web-interface of Sunrise Met.no is out of date
  • 12651 This version of the webservice is deprecated
  • 12665 Message from author or something?
  • 12795 xfce-wetter
  • 12804 MET Norway Norwegian Meteorological Institute
  • 13372 Web service for weather plugin is deprecated
  • 13401 plugin needs to be adapted to use a newer version,
  • 13427 met.no-LocationforecastLTS-interface
  • 13434 Weather to stop working soon
  • 13524 Checking to see if had been addressed

People

Assignee:
Harald Judt
CC List:
26 users

Version

Attachments

Additional information