Summary: | LCD Weather Station shows no values using wetter.com | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | foobar22 |
Component: | widget-weather | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andresbajotierra, aseigo, asraniel, ewoerner, KaiUweBroulik2, scp.stjohn, shawn.starr, thilo |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.5.2 | |
Sentry Crash Report: | |||
Attachments: |
Screenshot of both weather applets that use same city's information from wetter.com
Screenshot of the layout problem XML data returned from the API call Patch |
Description
foobar22
2010-05-04 13:24:40 UTC
This bug has also been reported as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580518 Created attachment 48171 [details]
Screenshot of both weather applets that use same city's information from wetter.com
Created attachment 50018 [details]
Screenshot of the layout problem
Does this issue still occur with more recent KDE releases (such as 4.4.5)? It still states 0 K and no values in KDE 4.5.1 .. Created attachment 51439 [details]
XML data returned from the API call
It seems that wetter.com returns a decimal fraction for the temperatures when requesting the forecast data for a Turkish city. I assume that this is not correctly handled by the xml.readElementText().toInt() call in the XML parser.
Right now, my KDE development environment is somewhat non-functional, so if someone can commit a quick fix that would be great. Otherwise, I'll have a look as soon as my dev environment is back. ;-)
Created attachment 51506 [details]
Patch
The attached patch should solve the issue. I will commit it to SVN once I have done some more testing.
SVN commit 1173938 by ginkel: wetter.com Ion: fix forecast retrieval for some geographic regions CCBUG: 236309 M +2 -2 ion_wettercom.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1173938 SVN commit 1173946 by ginkel: wetter.com Ion: fix forecast retrieval for some geographic regions BUG: 236309 FIXED-IN: 4.5.2 M +2 -2 ion_wettercom.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1173946 [Comment from a bug triager] There are new cases described on bug 259471, even on KDE SC 4.6beta2 . Should this be reopened ? Regards bug exists in KDE 4.93. should be reopened. |