mate-desktop / mate-applets

Applets for use with the MATE panel
http://www.mate-desktop.org
GNU General Public License v2.0
79 stars 67 forks source link

Weather: radar map not displayed #326

Open lukefromdc opened 6 years ago

lukefromdc commented 6 years ago

Expected behaviour

On selecting the Radar Map tab in the "details" dialog the radar map should be displayed

Actual behaviour

Radar map tab is empty, theme background color displayed across entire tab, nothing else in it but the "visit weather.com" button, which works.

Steps to reproduce the behaviour

Add the weather applet to mate-panel, open the "preferences" dialog and enable radar maps, then click on the applet to invoke the "details" forecast dialog, from there select the "radar map" tab.

MATE general version

1.21 from git master

Package version

Locally compiled

Linux Distribution

Debian Unstable updated 7-9-2018

Link to downstream report of your Distribution

None as these are locally compiled packages

raveit65 commented 6 years ago

I think weather.com doesn't provide a default link any more which can be used by mate-weather-applet. Also finding a link from another side which you can add as custum link is very hard. In the past i found a working link to a german weather site but i forgot where it was. Btw. i forgot which format is needed in the http link.

lukefromdc commented 6 years ago

If the radar map no longer has a usable remote source, should we remove it from the applet? This was why we had to drop the "invest" applet after the remote source for its information was discontinued.

raveit65 commented 6 years ago

I haven't look in code to see what is expected but i agree to drop code which doesn't have a source.

vkareh commented 6 years ago

But the UI provides a way for entering a custom map url, which I actually use. We should probably update the URL to use something like weather underground (that's what I use for my custom radar link) and it works very well

lukefromdc commented 6 years ago

OK, that is enough that we should not delete the code, but either use that URL or prompt for a user selected one

raveit65 commented 6 years ago

Weather underground provides radar maps only for usa, canada or australia. Beside from that which format use your link, gif? I found a local weather site from berlin university which provides working links ended with .gif. http://wind.met.fu-berlin.de/loops/radar_200/R.NEW.gif So the first question is what link format expect our code?

raveit65 commented 6 years ago

I found a site which provides free animated gif images. Sadly only for europe, africa, asia and oceania -_- https://en.sat24.com/en/freeimages

vkareh commented 6 years ago

@raveit65, yes wunderground links are dynamically generated animated gifs

Maybe we could have different providers for the user to choose from? Or automatically using one or another based on the region?