Put Current Weather Conditions on Your Desktop with GeekTool - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Apple and Mac
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 03-13-2009, 07:46 AM   #1 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default Put Current Weather Conditions on Your Desktop with GeekTool

Mac OS X only: Reader Rodolfo Novak posts a useful script to add the current weather conditions to your Mac desktop using the GeekTool desktop overlay.
The script is nothing more than a bunch of *nix commands chained together to pull down the weather from Yahoo and output only the current conditions to the consoleómeaning that you can run this script anywhere with access to the Bash shell and common tools, including previously mentioned Cygwin on Windows.

To make this really useful and display it on your desktop, you can add the following as a shell script in GeekTool, replacing the YOURCITYCODE text with the actual code from Yahoo's weather feed.
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=YOURCITYCODE&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'

Hit the link for the example of how to get the code from the Yahoo URL. Be sure to also check out how to using GeekTool embed a desktop calendar, or see our feature on monitoring your Mac and more with GeekTool.


GeekTool: Put Current Weather Conditions on Your Desktop with GeekTool
__________________
Osiris is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i put 5.1sound card in this desktop ? sumik System Upgrades 1 12-16-2008 11:50 AM
Get To Know Linux: Desktop Environment vs. Window Manager Osiris Linux Tips and Tricks 0 12-11-2008 05:14 PM
Help needed prasmat System Upgrades 1 06-29-2008 10:05 AM
HELP! Desktop turns on and restarts repeatedly, other turns on to black screen cvocvo Hardware Repairs and Troubleshooting 1 12-31-2007 12:21 AM
friends really bad log..needs some major help here. Static_11 HijackThis Logs (finished) 17 12-07-2007 08:44 AM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.