January 23, 2011

weather: simple command line weather script

Filed under: Linux,Open Source,Projects — Tags: , , , , , , , — xiwen @ 2:55 pm

In my quest to make my systems more useful I created a command line weather script. There are similar programs made already like weathercli, weather-util. But the first didn’t work at all. The second only supports USA states/cities. Not quite useful in my situation where I want weather conditions of The Hague in The Netherlands.

The result is a simple bash script that fetches xml data from Google Weather API using curl. This data is then parsed using xmlscarlet and awk.

View the final script

No related posts.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment


− eight = 0

23 queries. 0.149 seconds. Powered by WordPress. CopyLeft CINAQ v9.
Best served with Firefox and/or Safari!