Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

MacOS X Show Off Your Desktop - MacOS X only, Wallpaper , icons , themes , etc

views
     
jonrwg
post Apr 26 2010, 12:38 AM

Regular
******
Senior Member
1,353 posts

Joined: Nov 2007
From: Brum, United Kingdom



any pro here with geektool 3? how to do the weather script?


Added on April 26, 2010, 12:59 am
QUOTE(joker_invisible87 @ Feb 19 2010, 02:19 PM)
Here you go =)

Hours: date +"%H"
Minutes: date +"%M"
Dates: date +%d
Days: date +%A

Weather Condition, °C: curl --silent "http://xml.weather.yahoo.com/forecastrss?p=MYXX0006&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>//' | tail -n1

Weather Picture (shell): curl --silent "http://weather.yahoo.com/malaysia/selangor/klang-1154726/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png\

Weather Picture (image): file:///tmp/weather.png

ps: replace MYXX0006 and weather address with your own city code and address...

That's all i guess, have fun with geektool!

Cheers!
*
the weather condition paste it at shell command there? and how do i get the city code?

This post has been edited by jonrwg: Apr 26 2010, 12:59 AM
jonrwg
post Apr 26 2010, 06:26 PM

Regular
******
Senior Member
1,353 posts

Joined: Nov 2007
From: Brum, United Kingdom



gt tat edi..another thing my geektool always jam and need to force quit everytime i open it.. can anybody knwo why?
jonrwg
post Apr 28 2010, 03:25 AM

Regular
******
Senior Member
1,353 posts

Joined: Nov 2007
From: Brum, United Kingdom



here is mine.. LOL.. nt a creative person.. blush.gif

user posted image
jonrwg
post Apr 28 2010, 11:07 AM

Regular
******
Senior Member
1,353 posts

Joined: Nov 2007
From: Brum, United Kingdom



HAHAHHAHA... been a long time with that team.. still vy frust... waiting for next season nw.. LOL
jonrwg
post May 13 2010, 09:28 PM

Regular
******
Senior Member
1,353 posts

Joined: Nov 2007
From: Brum, United Kingdom



May Desktop

user posted image
jonrwg
post May 22 2010, 06:25 PM

Regular
******
Senior Member
1,353 posts

Joined: Nov 2007
From: Brum, United Kingdom



oppps.. wrong section.. LOL..

This post has been edited by jonrwg: May 22 2010, 06:36 PM
jonrwg
post May 22 2010, 06:36 PM

Regular
******
Senior Member
1,353 posts

Joined: Nov 2007
From: Brum, United Kingdom



QUOTE(tarvalslain87 @ May 22 2010, 06:28 PM)
Go try garage sales, there are many ppl selling games... I think you are posting in the wrong thread.. This thread is for showing off your MacOSX desktop only...
*
ya.. i just realize.. LOL.. i thought i was in macbook pro thread.. haha..

 

Change to:
| Lo-Fi Version
0.0354sec    0.76    7 queries    GZIP Disabled
Time is now: 30th November 2025 - 03:43 PM