Skip to content

Commit

Permalink
Updated with new conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalkushwaha committed Aug 25, 2017
1 parent 4d56dc3 commit 5e97411
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions install-weather-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion src/Widgets/DisplayWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 5e97411

Please sign in to comment.