New Yahoo! Weather Geeklet

Posted in Weather by brian 2739 days ago

When I noticed that my geeklets used to retrieve and parse the weather icon images from Yahoo! weather were no longer working due to recent changes at yahoo.com, I had to update them which is what you'll find here. These are formatted for Washington DC so obviously you'll have to update the scripts with your country, state, city and numerical city code accordingly.


User Avatar
doanhp 2738 days ago
Thanks for the help. It looks the image path is different.
User Avatar
Black_Simorgh 2737 days ago
Thank you very much. I was looking a long time for a solution.
User Avatar
richb1910 2736 days ago
Thanks for this I got back from China on saturday night to find this not working on Sunday and just found time to look at it when I found your fix.

Much Appreciated

User Avatar
andy9999 2735 days ago
Weather Script1.glet can plugin Use in Snow Leopard 10.6.8

Not supper Lion 10.7.2~ 10.7.4

@@ Why...


Try Again

10.7.3 updata to 10.7.4 System privilege Change

"Weather Script1.glet" Weather1.png not Cache to /tmp or /ver/tmp

So not Can Show Image Weather




fix System privilege

User Avatar
jynxx 2734 days ago
can't get the description to werk. no link here for an updated ver. so i'm using the last version, but yahoo weather no longer has rss feeds to link to?!!?

Any ideas?
User Avatar
Normand 2734 days ago
Interesting but Yahoo weather isn't as good as Environment Canada website, for Canadian cities. See the following site, anyone could help with a script to grab the 7 days forecast picture, just under "Prévisions" on this webpage? This would be really great!

User Avatar
Normand 2734 days ago
Ooops! Forgot to submit the site link: http://www.meteo.gc.ca/city/pages/qc-126_metric_f.html
User Avatar
v11kal 2733 days ago
jyaxx - i had a problem with the location code but try this site to help obtain the code: http://edg3.co.uk/snippets/weather-location-codes/
User Avatar
wootz 2727 days ago
erm... how bout making step by step guide. installation, where and how to edit the location information etc;) Thanks in advance.
User Avatar
Sentenial 2717 days ago
Here is a step-by-step guide including custom location..

User Avatar
kidpixo 2708 days ago

on my Lion 10.7.4 it stopped working. It seems to me they changed a little the weather.yahoo.com/ page structure, and my sed also work differently...

Anyway, with the that code to retrieve the actual weather image:

curl --silent "http://weather.yahoo.com/germany/brandenburg/berlin-schonefeld-international-airport-22276234/" | grep "current-weather" | sed "s/.*background:url(\('.*'\)) no-repeat scroll.*/\1/" | xargs curl --silent -o /tmp/weather.png

work perfectly on my machine.

Happy geekDay!
User Avatar
MichaelaRR 2692 days ago
None of the weather geeklet's work for me. All that ever works on them is the picture....never the actual weather. Any help?
User Avatar
LightsAurora 2639 days ago
I'm having the same problem as MichaelaRR. The weather icon changes just fine, but I've never been able to get the degrees or conditions to change, for this or any other weather app.

I looked on weather.yahoo looking for the RSS feed to see if that changes anything, and they no longer support RSS.
User Avatar
Alienraygun 2544 days ago
The SED process for this shell script is a bit too processor intensive for my taste. Of course I have an old MacBook core 2 duo with four gigs of ram that is feeling its age.
User Avatar
michaelwan 2438 days ago
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=95014&u=f" | grep -E '(Current Conditions:|F
User Avatar
michaelwan 2438 days ago
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=95014&u=f" | grep -E '(Current Conditions:|F

Log in to comment or register here.