summaryrefslogtreecommitdiff
path: root/harmaccuweather/harmaccuweather.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-10-17 15:33:23 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-10-17 15:33:23 +0200
commite42e7dca8df8d1e4966545894e2dde228f19b6f0 (patch)
tree836234b65256c166079fa414c2b4804a972f06dc /harmaccuweather/harmaccuweather.cpp
parent5f9a4ac6abba07b5074c10038e5b363133ff4ef8 (diff)
downloadsowatch-e42e7dca8df8d1e4966545894e2dde228f19b6f0.tar.gz
sowatch-e42e7dca8df8d1e4966545894e2dde228f19b6f0.zip
Some weather related fixes
Diffstat (limited to 'harmaccuweather/harmaccuweather.cpp')
-rw-r--r--harmaccuweather/harmaccuweather.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/harmaccuweather/harmaccuweather.cpp b/harmaccuweather/harmaccuweather.cpp
index 158c115..99cc31b 100644
--- a/harmaccuweather/harmaccuweather.cpp
+++ b/harmaccuweather/harmaccuweather.cpp
@@ -13,7 +13,7 @@ HarmAccuWeather::HarmAccuWeather(QObject *parent) :
_watcher->addPath("/home/user/.config/AccuWeather, Inc./awxapp.conf");
connect(_watcher, SIGNAL(fileChanged(QString)), SLOT(fileChanged(QString)));
- _timer->setInterval(2000);
+ _timer->setInterval(5000);
_timer->setSingleShot(true);
connect(_timer, SIGNAL(timeout()), SLOT(update()));
@@ -134,11 +134,13 @@ WeatherNotification::WeatherType HarmAccuWeather::forecast()
switch (_lastWxCode) {
case 1:
case 2:
- case 3:
return Sunny;
+ case 3:
case 4:
case 5:
+ return PartlyCloudy;
+
case 6:
case 7:
case 8:
@@ -174,6 +176,7 @@ WeatherNotification::WeatherType HarmAccuWeather::forecast()
case 34:
return Sunny;
case 35:
+ return PartlyCloudy;
case 36:
case 37:
case 38: