This is actually pretty straight forward.
You need to download 3 programs: GeekTool 3, LiteIcon & BowTie.
You can get Icons & BowTie Themes i.e. at
www.deviantart.com
You can get fonts for the GeekTool scripts i.e. at
www.dafont.com
(Click on the picture for original size)
Code 1: This is for german Weekdays. I suppose you could just replace them with any other language.
Code:
date "+%A" | sed -e 's/Monday/Montag/g' -e 's/Tuesday/Dienstag/g' -e 's/Wednesday/Mittwoch/g' -e 's/Thursday/Donnerstag/g' -e 's/Friday/Freitag/g' -e 's/Saturday/Samstag/g' -e 's/Sunday/Sonntag/g'
Code 2: You'll need find your own WOEID (search for your location & look at the end of the RSS Feed address on that page) on the yahoo weather page to get the temperature of your own location. Copy it and replace my WOEID (GMXX0064&u=c) for fahrenheit replace the c in the end with an f.
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=GMXX0064&u=c" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/[A-Z a-z]*, //' -e 's/\(.*\) F/\1 °F/' -e 's/\(.*\) C/\1 °C/' | sed 's/ //' | tail -n1
Code 3: see above
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=GMXX0064&u=c" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' -e 's/, [0-9]* [A-Z]//' | tail -n1
Code 4
Part 1 Shell Script
Code:
curl --silent "http://de.weather.yahoo.com/deutschland/schleswig-holstein/kiel-665684/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /var/tmp/weather_image.png\
Part 2 Image Script
Code:
file://localhost/var/tmp/weather_image.png