Image 01
profile-image

parcox

Fitri Wibowo , Indonesia
test
yaWP (Yet Another Weather Plasmoid)

Plasma 4 Widgets 1198 comments

Score 85.8%
Mar 23 2013
Finally.. I test with my wife modem that supported by NetworkManager and the auto refresh is working fine :^) So, how can I remove this Solid/Networking dependencies and use a traditional way instead. Maybe something like ping instead to check whether my machine is connected to the internet or not. Once again, thanks for this great plasmoid. - Feb 20 2013
Hi,
I've noticed that too. I've tested the default KDE weather service and the auto refresh seems didn't work. One question. I see there is a dependency to Solid/Networking in weatherservice.cpp. My current KDE solid networking backend is NetworkManager but I've connected to internet with kppp since I used CDMA modem and NetworkManager+modemmanager won't setup it properly. Do you think that this is the source of my problem? I have no Ethernet/WiFi connections for now. I also check out CWP sources and found it uses Solid Networking. Thanks. - Feb 20 2013
Hi,
Thanks for the reply. Because I waited for a couple hour and the weather data didn't get changed. And the last update label always shows the last time I ran manual refresh. Besides, I open the url of wunderground (I use this provider) separately to see if the actual weather info.

I debug the program based on this tutorial http://kde-apps.org/content/show.php?action=knowledgebase&content=94106
and found that <em>WeatherServiceModel::dataUpdated</em> is called only when I trigger manual refresh. Is it normal?
<strong><em>
bowo@pcxthinkslack:~/Build/yawp-0.4.3$ tail -f /tmp/yawp.log -n2000 | grep -ni WeatherServiceModel::dataUpdated
1192:20:27:45.754 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 482): [function starts] "accuweather|weather|Pontianak, Indonesia(Kalimantan Barat)|ASI.ID.ID006.PONTIANAK" data received: QHash(("Condition Icon", QVariant(QString, "weather-many-clouds") ) ,
1323:20:27:45.819 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 526): [function ends]
1819:09:14:22.727 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 482): [function starts] "wunderground|weather|Pontianak / Supadio, Indonesia|airport:WIOO" data received: QHash(("Condition Icon", QVariant(QString, "weather-clouds") ) ,
1894:09:14:22.780 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 526): [function ends]
2408:09:43:13.329 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 482): [function starts] "wunderground|weather|Pontianak / Supadio, Indonesia|airport:WIOO" data received: QHash(("Condition Icon", QVariant(QString, "weather-many-clouds") ) ,
2483:09:43:13.381 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 526): [function ends]
</em></strong>

note: I set the update interval to 2 minutes.
- Feb 17 2013
Hi,
Thanks for this great weather plasmoid. I have a problem with the auto refresh. The symptom is that auto refresh seems called once after the config is saved/changed. After that, I see no weather update.

I even tried change the combobox update interval source code to get a shorter update interval:
//--- INIT COMBOBOX UPDATE INTERVAL ---
//~ for(int i = 0; i < 4; ++i)
for(int i = 1; i <= 60; i++)
{
//~ int iValue = (4-i)*15;
int iValue = i;
comboInterval->insertItem(i, i18n("%1 minutes",iValue), QVariant(iValue));
}

And then I set update interval to 1 minute. The plasmoid will reload the weather data only in the 1st minute. I also tried to debug it, but didn't found anything useful.

Environment:
OS: Slackware64 + KDE 4.8.5
Yawp: stable v.0.4.3, development revision 562
- Feb 17 2013
Score 85.8%
Feb 20 2013
Score 53.8%
Feb 17 2013
Change konsole session name

Various KDE 1.-4. Improvements
by mrthc

Score 48.0%
Feb 17 2013
kchmviewer

Utilities
by gyunaev

Score 67.1%
Feb 17 2013