Using this script with GeekTool, you can put your original weather forecast icons on your desktop. Yahoo! Weather API is used as the forecast service.
-
Install some Perl modules. execute following commands on Terminal.app.
$ sudo cpan -i XML::Simple $ sudo cpan -i LWP::Simple
-
Save the folder that you downloaded to somewhere you like. For example
/Users/_YOUR_ACCOUNT_/Library/Application Support/GeekTool/
. -
Set the locations by WOEID. Open weather.pl on your favorite text editor and modify values about at line 17 to the location where you want to get the forecast.
-
Make a new shell geeklet on GeekTool. Input following command in the Command field
perl <PATH TO SCRIPT>/weather.pl
and also input your refresh span time in the Refresh every field. 'Course this geeklet is only for executing Perl script, itself displays nothing.
-
After the first execute of weather.pl, forecasted weather icons will be created in results/ folder. Make a new image geeklet on Geektool and chose the created icon file. Don't forget to set its refresh span.
Put the icons you made into icons/ folder. To relate icon images to the Yahoo's weather codes (condition codes), modify weather.pl at about line 24. The left values are icon's file names and the right values are Yahoo's condition codes for them.
about condition code see web page Yahoo! Weather API.
1024jp
Icon Weather Forecast for Geektool by 1024jp is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.