Search This Blog

Saturday, July 30, 2011

HowTo: Add Gnome Weather Shell Extension

Weather extension - Autoplus
Gnome Shell Weather Extension ~ Web Upd8: Ubuntu / Linux blog


GNOME 3 Weather Extension
In GNOME 2, the weather extension helped me remember when I was running a VM in Mobile, AL, from my machine in Austin, TX...You could also tell it was raining without looking out the window, but that would be insane...

When GNOME 3 came out Weather went away, so many have contributed to restore our collective sanity...

Execute this set of commands from a terminal to build and install the extension.

su -
yum -y install gnome-common gtk3-devel glib2-devel intltool automake autoconf vala wget gnome-tweak-tool
# You may have to copy and paste these commands...
wget  https://github.com/simon04/gnome-shell-extension-weather/zipball/gnome3.2
unzip gnome3.2
mv simon04-gnome-shell-extension-weather-* weather
cd weather
./autogen.sh --prefix=/usr 
make
make install

Restart GNOME Shell ([Alt]+[F2], r)

# start tweak tool gui from terminal (you installed this earlier)
gnome-tweak-tool

gnome-tweak-tool
Enable Weather Indicator Extension

# get your WOEID, Use your search key, and pick from the list.
wget http://xoap.weather.com/search/search?where=Austin -O - | grep Austin

# List weather extension settings
gsettings list-recursively $(gsettings list-schemas | grep weather)

# Set defaults for your account.
gsettings set org.gnome.shell.extensions.weather woeid your_WOEID
gsettings set org.gnome.shell.extensions.weather unit fahrenheit
gsettings set org.gnome.shell.extensions.weather show-comment-in-panel true

At this point, you should have the weather in the top bar of your screen.