{"id":4728,"date":"2010-07-07T17:28:15","date_gmt":"2010-07-07T15:28:15","guid":{"rendered":"http:\/\/www.wjst.de\/blog\/?p=4728"},"modified":"2010-07-17T21:11:19","modified_gmt":"2010-07-17T19:11:19","slug":"a-living-desktop-for-snow-leopard","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2010\/07\/a-living-desktop-for-snow-leopard\/","title":{"rendered":"A living desktop for Snow Leopard"},"content":{"rendered":"<p>There are certainly a zillion ways how to do create a nice background for your Mac. Here is my favorite method of a weather forecast, an individual calendar and the most recent emails. I created just three geeklets and loaded them in <a href=\"http:\/\/projects.tynsoe.org\/en\/geektool\/\">Geektool<\/a>.<!--more--><\/p>\n<p><a href=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2010\/07\/Bildschirmfoto-2010-07-07-um-21.57.40.png\" data-rel=\"key-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2010\/07\/Bildschirmfoto-2010-07-07-um-21.57.40.png\" alt=\"\" title=\"\" width=\"450\" height=\"433\" class=\"alignleft size-full wp-image-4729\" \/><\/a><br \/>\nThe most difficult part<!--more--> turned out to get the weather icon from Yahoo! With a little help form several sites I ended up with the following code for Munich<\/p>\n<blockquote><p>\ncurl &#8211;silent &#8220;http:\/\/weather.yahoo.com\/germany\/bavaria\/munich-676757\/&#8221; | grep &#8220;forecast-icon&#8221;| sed &#8220;s\/.*background\\:url(\\&#8217;\\(.*\\)\\&#8217;)\\;\\ _background.*\/\\1\/&#8221; | xargs curl &#8211;silent &#8211;output &#8220;\/Users\/wjst\/Documents\/Daten\/System\/yweather.png&#8221;<br \/>\ncurl &#8211;silent &#8220;http:\/\/xml.weather.yahoo.com\/forecastrss?p=GMXX0087&#038;u=c&#8221; | grep -E &#8216;<yweather:condition' | sed -e 's\/\\<yweather:condition \/\/' -e s'\/\\\"\/\/g' -e s'\/  \/ \/g' -e s'\/ text=\/\/' -e 's\/ code=..\/\/' -e 's\/temp=\/\/' -e 's\/date=.*\/\/'\ncurl --silent \"http:\/\/xml.weather.yahoo.com\/forecastrss?p=GMXX0087&#038;u=c\" | grep -E '<yweather:wind' | sed -e 's\/\\<yweather:wind \/\/' -e 's\/ \\\/>\/\/&#8217; -e s&#8217;\/\\&#8221;\/\/g&#8217; -e s&#8217;\/   \/ \/g&#8217;<br \/>\ncurl &#8211;silent &#8220;http:\/\/xml.weather.yahoo.com\/forecastrss?p=GMXX0087&#038;u=c&#8221; | grep -E &#8216;<yweather:forecast' | sed -e 's\/\\<yweather:forecast day=\/\/' -e 's\/ \\\/>\/\/&#8217; -e s&#8217;\/\\&#8221;\/\/g&#8217; -e s&#8217;\/   \/ \/g&#8217; -e &#8216;s\/date=\/\/&#8217; -e &#8216;s\/text=\/\/g&#8217; -e &#8216;s\/ code=3.\/\/g&#8217;\n<\/p><\/blockquote>\n<p>while the picture is simply loaded from \/Users\/wjst\/Documents\/Daten\/System\/yweather.png.<br \/>\nFor the ical bridge I installed <a href=\"http:\/\/hasseg.org\/icalBuddy\/\">icalbuddy<\/a><\/p>\n<blockquote><p>\n\/usr\/local\/bin\/icalBuddy -nc -sd -ic Todo -b &#8220;&#8221; -li 3 -stda uncompletedTasks | sed -e &#8220;s\/!\/\/&#8221; -e &#8216;s\/^ \/\/g&#8217;<br \/>\necho &#8221; &#8221;<br \/>\n\/usr\/local\/bin\/icalBuddy -nc -sd -ic Out,Base -df %a&#8221; &#8220;%d.%m.%Y -nrd -b &#8220;&#8221; -iep datetime,title -eed -po datetime,title -ps &#8220;| | &#8211; |&#8221; eventsToday+6 | sed -e &#8220;s\/*\/Geburtstag *\/&#8221; | sed -e &#8220;s\/!\/!!\/&#8221;\n<\/p><\/blockquote>\n<p>while emails are pulled by a short appescript that I found at <a href=\"http:\/\/www.macosxhints.com\/article.php?story=20090327162020498\">macosxhints.com<\/a><\/p>\n<blockquote><p>\nosascript \/Users\/wjst\/Documents\/Daten\/System\/NoNewMail.scpt| sed -e &#8220;s\/\\\/\/\/&#8221; | sed -e &#8220;s\/\\&#8221;\/\/&#8221;\n<\/p><\/blockquote>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 08.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>There are certainly a zillion ways how to do create a nice background for your Mac. Here is my favorite method of a weather forecast, an individual calendar and the most recent emails. I created just three geeklets and loaded them in Geektool. &nbsp; CC-BY-NC Science Surf , accessed 08.04.2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,9],"tags":[2568,2653],"class_list":["post-4728","post","type-post","status-publish","format-standard","hentry","category-joke-fun","category-computer-software","tag-desktop","tag-organization"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/4728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=4728"}],"version-history":[{"count":6,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/4728\/revisions"}],"predecessor-version":[{"id":4763,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/4728\/revisions\/4763"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=4728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=4728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=4728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}