![]() The main part of the weather code uses Yahoo's XML feed, and as such should work for everyone. There was some interest when I posted my desktop, so I figure I'll post the code for anyone to be able to take advantage of. You will need to modify the script to point to your weather icons folder.I wrote what is mostly my own weather code for geektool, cause I wasn't satisfied with any of the existing ones. Then create 3 shell geeklets named w_temps0 (current temp) and w_temps1(today's high low) and w_temps2 (tomorrow's temps). I can break it down further, but if you want to use this as is, create two image geeklets named w_icon0 (for current conditions) and w_icon1 for tomorrow's conditions. At the end of the script, I tell Applescript to reset the icons and temperature fields inside GeekTool. Then I assemble the output for the details of the current conditions, including humidity, visibility, wind, pressure, and sunrise/set. To break it down, I first have the script gather info from Yahoo Weather APIs. Return "H: "
0 Comments
Leave a Reply. |