Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
nice

New desktop, thus; new geektool! (the reason the PM is so far away from the time is because it's 11, Usually the time is more spread out.)

Clicky.
picture1zy1.png

Where did you get your hardrive Icon?

Heres mine so far www.flickr.com/photos/31337373@N02/3294965949/
 

Attachments

  • Imac Icon.png
    Imac Icon.png
    17.8 KB · Views: 232
  • Imac Icon.psd
    242.7 KB · Views: 516
Mine, Thanks for the thread guys, helped a lot. MacBook Air Display(laptop mode)
 

Attachments

  • Picture 1.png
    Picture 1.png
    1 MB · Views: 2,254
Haha, I created it in PS.
I'll attach a PS and PNG file for you, to set it as an icon, open it in preview , do cmd+c, right click on your HD icon, get info, click on the small icon in the corner and press ctrl v and there you have it.

Thanks appreciate it
 
Weather/Lynx

Ok I've attached what I have so far.
It looks great, but I wanna add the weather and conditions and I have no idea where to even start.
I tried downloading Lynx from the OP's link, but it doesn't work.

Anyways, I was just needing a complete walkthrough for adding the weather and condtions please, if anyone is willing to do that.

sc6n4m.png
 
Ok I've attached what I have so far.
It looks great, but I wanna add the weather and conditions and I have no idea where to even start.
I tried downloading Lynx from the OP's link, but it doesn't work.

Anyways, I was just needing a complete walkthrough for adding the weather and condtions please, if anyone is willing to do that.

SNIP

Okay, I'll try help as much as I can :p

Alright so you need lynx, a download can be found here.

Once you have downloaded lynx, install it, and move the file lynx.command to your applications folder, and that's all you need to worry about!

Now for the weather and conditions, I have created a conjoined script so they both get updated and move together as one, Here is the code.

Code:
lynx -dump [B]http://printer.wunderground.com/global/stations/94767.html[/B]|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }''/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

The URL I set in bold is the url for my country and city (Sydney, Australia); So you must go to http://www.wunderground.com/ and put in your details of your whereabouts, go to the link with all the weather updates, and replace my url, with your new one. Remember to keep |awk and put http://printer. (enter url here)

Hope I could help!
 
Thanks for your help man, but I'm still a little lost.
When you say 'Find the link with all the weather updates'....what exactly is that?
And also, once I get said link, where do I paste it?
I'm not familiar at all with Lynx.
 
Thanks for your help man, but I'm still a little lost.
When you say 'Find the link with all the weather updates'....what exactly is that?
And also, once I get said link, where do I paste it?
I'm not familiar at all with Lynx.

well, when you go to www.wunderground.com it will ask you for your location, and once you enter your location, it will show you the weather, THAT is the link you need to replace mine with.
You just paste it into a shell command in geektool, and everything else will work itself out :)
 
Can I have the sunrise/sunset script? :D
Sunrise
Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunrise/{printf $1, ": ";  printf $i " " }'
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunrise/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

Sunset
Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunset/{printf $1, ": ";  printf $i " " }'
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunset/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

If someone can come up with a better code and maybe get rid of the zero in from of the time that would be nice if you could post it.

Anyone got new scripts to make this better?
 
Sunrise
Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunrise/{printf $1, ": ";  printf $i " " }'
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunrise/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

Sunset
Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunset/{printf $1, ": ";  printf $i " " }'
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=93012|awk '/Sunset/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

If someone can come up with a better code and maybe get rid of the zero in from of the time that would be nice if you could post it.

Anyone got new scripts to make this better?

Hey guys, here are my Sunrise and Sunset scripts respectively:

curl http://m.wund.com/global/stations/71892.html | grep 'Sunrise' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/Sunrise/Sunrise: /g' | sed -e 's/PST//g'

curl http://m.wund.com/global/stations/71892.html | grep 'Sunset' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/Sunset/Sunset: /g' | sed -e 's/PST//g'

You don't need lynx, but they're written for Vancouver, you need to change the bit after "stations/" to the corresponding one for your city.
 
Hey guys, here are my Sunrise and Sunset scripts respectively:

curl http://m.wund.com/global/stations/71892.html | grep 'Sunrise' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/Sunrise/Sunrise: /g' | sed -e 's/PST//g'

curl http://m.wund.com/global/stations/71892.html | grep 'Sunset' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/Sunset/Sunset: /g' | sed -e 's/PST//g'

You don't need lynx, but they're written for Vancouver, you need to change the bit after "stations/" to the corresponding one for your city.

Doesn't work for me when i put in my zip code.
 
Is there a way to just show the temperature without the decimal?

Yeah... the decimal makes it look all ugly. I think I figured it out, so try it and see if it works.

Display temperature without decimal (rounded):
Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|awk '/Temp/{printf int($2+0.5); printf $3}'

(Replace the YOURZIPCODE part as usual and such.)
 

Attachments

  • wallpaper.jpg
    wallpaper.jpg
    466.3 KB · Views: 215
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.