Seit dem update auf 10.3 scheint mein Geektool keine Probleme mehr zu haben, wenn ich meinen Mac aufwecke
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: this_feature_currently_requires_accessing_site_using_safari
curl http://m.wund.com/global/stations/11001.html | grep 'Sunset' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/Sunset/Sonnenuntergang: /;s/PST//;s/ PM CET//;s/ 5:/ 17:/;s/ 6:/ 18:/;s/ 7:/ 19:/;s/ 8:/ 20:/;s/ 9:/ 21:/;s/10:/22:/;s/11:/23:/' | cut -c 1-22
You need to download 3 programs: GeekTool 3, LiteIcon & BowTie.
You can get Icons & BowTie Themes i.e. at deviantART: where ART meets application!
You can get fonts for the GeekTool scripts i.e. at 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
/usr/local/bin/icalBuddy -sc -f -b "* " -eep "notes,location,url" eventsToday+2 | sed -e "s/today/Heute/" | sed -e "s/tomorrow/Morgen/" | sed -e "s/day after/Tag nach/" | iconv -f UTF-8 -t LATIN1
... schon jemand was von der Wetterdatenfront in Erfahrung bringen können zwecks neuer Codes?