Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Very simple python script - intended to be used in your favorite prompt - that checks the weather in wunderground and returns a string with an unicode icon and the temperature

branch: master
README.md

A Short Story

My zsh prompt starts with a cute cloud. I have nothing against clouds. I like clouds... But this one was a little bit useless. So I said to myself: Myself, Why don't you put the current weather condition in your prompt? And that's how this happened.

Notes

Go to http://www.wunderground.com/weather/api/ to get your API key (Its free for <=500 queries in a day) Set APIKEY env varible to the API Key you've obtained.

export APIKEY="myapikey"

The script connects to wunderground and asks for the weather for a particular zipcode.

Personaly I have cron job running every 1/2 h storing the weather into my $WEATHER env var... But you could do something useful in many other ways.

The code is the documentation ;)

Something went wrong with that request. Please try again.