From 5e97411ea82a5a6f574b746de4bb46cbe709e2d7 Mon Sep 17 00:00:00 2001 From: Kunal Kushwaha Date: Fri, 25 Aug 2017 15:04:03 +0900 Subject: [PATCH] Updated with new conditions --- README.md | 23 +++++++++++++++++++++-- install-weather-plugin.sh | 3 --- src/Widgets/DisplayWidget.vala | 6 +++++- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 425e688..34a3d66 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Wingpanel Weather Indicator -## Building and Installation +![Cloudy](data/weather-app-cloudy.jpeg) + +![Sunny](data/weather-app-sunny.jpeg) + +## Building from code It's recommended to create a clean build environment @@ -15,7 +19,22 @@ Run `cmake` to configure the build environment and then `make` to build To install, use `make install` sudo make install - + + +## Installation + +Download prebuild binairy from [Release](https://github.com/kunalkushwaha/wingpanel-indicator-weather/releases) + +Install it by coping file to wingpanel plugin folder as below. + +``` +sudo cp libweather.so /usr/lib/x86_64-linux-gnu/wingpanel/libweather.so + +pkill -9 wingpanel +``` + +### NOTE: + Get secret key from [darksky.net](https://darksky.net/dev/account) and store it in your config file. cat ~/.weather.config diff --git a/install-weather-plugin.sh b/install-weather-plugin.sh index 6e8534f..14388e6 100644 --- a/install-weather-plugin.sh +++ b/install-weather-plugin.sh @@ -3,6 +3,3 @@ sudo cp libweather.so /usr/lib/x86_64-linux-gnu/wingpanel/libweather.so pkill -9 wingpanel - -#crontab -e -#*/30 * * * * pkill -9 wingpanel diff --git a/src/Widgets/DisplayWidget.vala b/src/Widgets/DisplayWidget.vala index 4444cdc..58c971c 100644 --- a/src/Widgets/DisplayWidget.vala +++ b/src/Widgets/DisplayWidget.vala @@ -42,6 +42,7 @@ public class Weather.Widgets.DisplayWidget : Gtk.Box { break; case "Partly Cloudy": case "Cloudy": + case "Humid and Mostly Cloudy": case "Mostly Cloudy": image.icon_name = "weather-few-clouds-symbolic"; break; @@ -51,10 +52,13 @@ public class Weather.Widgets.DisplayWidget : Gtk.Box { case "Breezy": image.icon_name = "weather-windy-symbolic"; break; + case "Breezy and Overcast": + image.icon_name = "weather-windy-symbolic"; + break; default: //TODO: Find better icon (\ over weather icon.') image.icon_name = "weather-clear-symbolic"; - degree.label = "\n000d8"; + degree.label = "(N/A)"; break; } }