Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Apps and Games (http://www.mac-forums.com/forums/os-x-apps-games/)
-   -   Geektool Weather scripts (http://www.mac-forums.com/forums/os-x-apps-games/248542-geektool-weather-scripts.html)

yngplya19 08-23-2011 09:41 PM

Geektool Weather scripts
 
Hey guys can someone help me with geek tool weather scripts. Im new to mac and i was told about geektool and that i could have weather displayed on desktop. I have no idea how to go about starting a script so could someone post some scripts with directions on how to customize them for my area. I would like to use yahoo weather with images and forecast. Thanks and i would greatly appreciate some help.

goatboy 02-03-2012 04:40 AM

Hello I'm having the same problem

I followed the instructions on Life hacker - here: Put Current Weather Conditions on Your Desktop with GeekTool

I am in Leeds, UK and this is the Yahoo weather link for Leeds: Leeds - West Yorkshire Weather Forecasts | Maps - Yahoo! Weather UK

So I replaced the YOURCITYCODE with the code from the Yahoo url leeds-26348957
but just get nothing in the shell tried refreshing but still nothing



my full code is
Code:

curl --silent "http://xml.weather.yahoo.com/forecastrss?p=leeds-26348957&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>//'
I have also tried just using the 8 digit no. 26348957 (without the leeds-) but get same result. Anyone know what I'm doing wrong?

Thanks

McYukon 02-04-2012 12:53 AM

The weather URL has changed, try this.
Code:

curl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0078&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>//'

goatboy 02-04-2012 04:41 AM

Thanks McYukon working now :)


All times are GMT -4. The time now is 01:10 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.