PDA

View Full Version : [Geektool] Your Geektool scripts


Pages : [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

monke
Jan 4, 2009, 09:11 PM
I know we already have monthly desktop threads, but Geektool is becoming more and more popular, and figured it would probably be better and easier for everyone to have a collection of their Geektool layout in one place.

Geektool (http://projects.tynsoe.org/en/geektool/)
Download Here (http://projects.tynsoe.org/en/geektool/download.php)

152607
All using the 'Shell' selection:
Date: date +%d
Month: date +%B
Day: date +%A
Time: date +"%I:%M"
Alternatives:
Without the '0' infront of the hours 1-9, use: date +%l:%M
24 hour clock, with seconds: date '+%H:%M:%S'
24 hour clock, without seconds: date '+%H:%M'
AM/PM: date +"%p"
Font: Helvetica Neue (Regular, Bold, Light)

http://att.macrumors.com/attachment.php?attachmentid=151562&stc=1&d=1231128272
Weather (need Lynx (http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html)) [Shell]:
Temperature: lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'
Conditions: lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

152608
iTunes [Shell]: osascript ~/LocationOfScript.scpt
Using Script Editor:
on run
set info to ""
set info2 to ""
tell application "System Events"
set num to count (every process whose name is "iTunes")
end tell
if num > 0 then
tell application "iTunes"
if player state is playing then
set who to artist of current track
set what to name of current track
set info to what & " by " & who as string
end if
end tell
end if
return info
end run

"Kohbens-esque" background for docks, see Melrose's post here (http://forums.macrumors.com/showpost.php?p=7059257&postcount=186).

Most people are using Bowtie (http://bowtieapp.com/) to display their iTunes info though.

EV0LUTION
Jan 4, 2009, 10:05 PM
Your welcome, this is what the weather scripts output.

max1018
Jan 5, 2009, 01:22 PM
Cheers for the info!

andrewdale
Jan 5, 2009, 01:37 PM
GREAT thread idea! Thanks for posting these. I can now begin to make my desktop this much cooler. :)

monke
Jan 7, 2009, 04:59 PM
GREAT thread idea! Thanks for posting these. I can now begin to make my desktop this much cooler. :)

Thanks. :)


Does anyone know if it's possible to have images displayed instead of text for the weather? Having a cloud for cloudy, sun for sunny, etc.

bc008
Jan 7, 2009, 05:09 PM
is geektool something you have to download? if so where? i would love a large clock and weather displayed on my desktop :)

monke
Jan 7, 2009, 05:41 PM
is geektool something you have to download? if so where? i would love a large clock and weather displayed on my desktop :)

Oh man, I should have put a link up with the main post, I'll do that right away. :o

Download Here (http://projects.tynsoe.org/en/geektool/download.php)

ethical
Jan 11, 2009, 04:09 PM
Oh man, I should have put a link up with the main post, I'll do that right away. :o

Download Here (http://projects.tynsoe.org/en/geektool/download.php)

complete noob here, i've never done programming or coding in my life... but this looks cool :p

How exactly do i use the code posted above?

2Shae posted the following code in the Desktop thread:

Time: date +%l:%M
Date No.: date +%d
Month: date +%B
Day: date +%A

So how do i use this? Do i select "Shell" from the drop down and simply past it in? Does anyone have an idiots guide to pasting in pre-written code? Sorry for the noob-ness!!

Cheers,

Luke

monke
Jan 11, 2009, 04:42 PM
complete noob here, i've never done programming or coding in my life... but this looks cool :p

How exactly do i use the code posted above?

...

So how do i use this? Do i select "Shell" from the drop down and simply past it in? Does anyone have an idiots guide to pasting in pre-written code? Sorry for the noob-ness!!

Cheers,

Luke

Open GeekTool and click 'New Entry' (bottom left) and then select 'Shell' from the drop down like you said, and just paste the code.

You can change the appearance from the Colors and Fonts tab.

Hope that helps. :)

ethical
Jan 11, 2009, 04:48 PM
Open GeekTool and click 'New Entry' (bottom left) and then select 'Shell' from the drop down like you said, and just paste the code.

You can change the appearance from the Colors and Fonts tab.

Hope that helps. :)

yeah thats what i tried, but nothing comes up (except the box it's meant to be displayed in).
it is just simply paste it exactly as it appears in my post yeah? thanks for the help by the way :)

monke
Jan 11, 2009, 04:53 PM
yeah thats what i tried, but nothing comes up (except the box it's meant to be displayed in).
it is just simply paste it exactly as it appears in my post yeah? thanks for the help by the way :)

They should all work, it looks identical to the code I have, except for the time function.

For time, use: date +"%I:%M"

It might have to do with the colour of the text on your background. I think the default colour is black, so if you have a black background it wont show up. I learned it the hard way. ;)

ethical
Jan 11, 2009, 04:59 PM
They should all work, it looks identical to the code I have, except for the time function.

For time, use: date +"%I:%M"

It might have to do with the colour of the text on your background. I think the default colour is black, so if you have a black background it wont show up. I learned it the hard way. ;)

haha, oh dear. i was being a complete muppet. i was pasting in the "Date: code" bit as well, i didnt realise they were just there for reference purposes. Thank you for your help! Is much appreciated!
One other quick think while im here.. how would i get it to say "Time:" before the time? because at the moment it just says 22:59. Thanks!

monke
Jan 11, 2009, 05:09 PM
haha, oh dear. i was being a complete muppet. i was pasting in the "Date: code" bit as well, i didnt realise they were just there for reference purposes. Thank you for your help! Is much appreciated!
One other quick think while im here.. how would i get it to say "Time:" before the time? because at the moment it just says 22:59. Thanks!

It happens to the best of us. :D

I have no idea, hopefully someone else can help.

Ljohnson72
Jan 11, 2009, 05:18 PM
Is there a way to delete one of the scripts? I have something but I want to delete it and the Shell is no longer showing in GeekTool.

monke
Jan 11, 2009, 05:20 PM
Is there a way to delete one of the scripts? I have something but I want to delete it and the Shell is no longer showing in GeekTool.

In the groups panel on the left, select the one you want to delete and click 'Delete Entry' (bottom left).

Ljohnson72
Jan 11, 2009, 05:23 PM
In the groups panel on the left, select the one you want to delete and click 'Delete Entry' (bottom left).

Thanks :D Sorry, one more question... Should I put each script in another command or can I just put them all in one?

monke
Jan 11, 2009, 05:24 PM
Thanks :D Sorry, one more question... Should I put each script in another command or can I just put them all in one?

I have them in separate entries, but I doubt they would work all in one.

Ljohnson72
Jan 11, 2009, 06:11 PM
Thanks again.

http://i40.tinypic.com/2pyqb87.png

velvetelvis
Jan 11, 2009, 10:20 PM
if somebody can help me, i cant get the temp and contitions to show up. i copy and pasted, then change to my zip code, but no text shows up...

here is what i copied...

lynx -dump http://printer.wunderground.com/cgi-...95816|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

monke
Jan 11, 2009, 10:38 PM
if somebody can help me, i cant get the temp and contitions to show up. i copy and pasted, then change to my zip code, but no text shows up...

here is what i copied...

lynx -dump http://printer.wunderground.com/cgi-...95816|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

You have to have the lynx browser installed.

You can download it here (http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html).

I think its Leopard only, but if anyone finds a Tiger version, point me to it. :)

velvetelvis
Jan 11, 2009, 10:41 PM
got it installed allready.

monke
Jan 11, 2009, 10:45 PM
got it installed allready.

The links I gave don't seem to be working right now, I'll try and find a solution.

Ljohnson72
Jan 11, 2009, 10:49 PM
You have to have the lynx browser installed.

You can download it here (http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html).

I think its Leopard only, but if anyone finds a Tiger version, point me to it. :)


I have Lynx installed to and it just shows code.

Make sure when you copy the URL it's not

cgi-...958, but the entire URL - which I'm assuming is

http://printer.wunderground. com/cgi-bin/findweather/getForecast?query=ZIPCODEHERE|AWK


Get rid of the space between wunderground and .com - and insert your own Zipcode. Worth a try?

monke
Jan 11, 2009, 10:51 PM
I figured it out.

When I copied the links from EV0LUTION's post in the January Desktop thread, it copied part of the link.

I updated the top post with a working one, but click the link then copy the full URL and paste it back in with your zip code, otherwise it won't work. :)

http://printer.wunderground. com/cgi-bin/findweather/getForecast?query=ZIPCODEHERE|AWK

Get rid of the space between wunderground and .com - and insert your own URL. Worth a try?

The full URL is:
http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=ZIPCODE

I updated it on the first post, it was my error.

Someone let me know if this works, I can't try it. :o

Ljohnson72
Jan 11, 2009, 10:56 PM
The full URL is:
http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=ZIPCODE

I updated it on the first post, it was my error.

Someone let me know if this works, I can't try it. :o

Yeah when I copied it originally it gave the ... in the middle of the URL. I just googled part of the URL to try to find the full one - but you updated it so I guess I didn't need to bother..

I will try it tomorrow my self, my laptop doesn't have Geektool or Lynx installed on it.

velvetelvis
Jan 11, 2009, 11:07 PM
ok, still not working for me. i have lynx installed, just double checked my app folder and its in there. once again, here is the link.

lynx -dump http://printer.wunderground.com/cgi-...ry=95816|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

thanks for all your help.

Island Roots
Jan 11, 2009, 11:16 PM
ok, still not working for me. i have lynx installed, just double checked my app folder and its in there. once again, here is the link.

lynx -dump http://printer.wunderground.com/cgi-...ry=95816|awk (http://printer.wunderground.com/cgi-...ry=95816%7Cawk) '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

thanks for all your help.

Your link is wrong. Look at it. It's not a complete link. Click on it. It won't work.

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

That will work.

velvetelvis
Jan 11, 2009, 11:22 PM
just to get this straight, i have to enter this into geektool? i ask because i used your script and it still isnt working.

nevermind its working.... only, it says "probabilityof" and then nothing.

Island Roots
Jan 11, 2009, 11:28 PM
just to get this straight, i have to enter this into geektool? i ask because i used your script and it still isnt working.

You may need to change the colors but the code I pasted in my last post, inserted into the Geektool preference pane in the displayed area, works. If you don't have Lynx installed, it won't work.

velvetelvis
Jan 11, 2009, 11:41 PM
sorry, edited my post.

Island Roots
Jan 11, 2009, 11:48 PM
That's odd, it must be how Weather Underground is reporting for that zip code. I entered it into my script and it says the same thing (Temp + Probability of...). Don't know where to go from there.

velvetelvis
Jan 12, 2009, 12:05 AM
well glad to know its not just me. thanks for the help.

Ljohnson72
Jan 12, 2009, 12:44 AM
Weather/conditions worked for me now.. I forgot to drag lynx.command it's self into my Applications...

http://i41.tinypic.com/98vdas.png

ill0gical0ne
Jan 12, 2009, 05:46 AM
Here's a few that I've written, plus other random ones that I've gathered from around the web.

Check out my iTunes script, as it will show non-english characters.

Develogix - Geektool Scripts (http://develogix.com/dev/geektool)

MacHappytjg
Jan 12, 2009, 07:32 PM
Thanks again.

http://i40.tinypic.com/2pyqb87.png

Wow thats the most ugliest thing ive ever seen...... JK!

Ljohnson72
Jan 12, 2009, 07:34 PM
Wow thats the most ugliest thing ive ever seen......
Very funnnyyyy Thomas :D

acee88
Jan 13, 2009, 12:19 PM
wow that date/cal script is very resource hogger... when it was on for me it maxed out my activity monitor but after taking it off i'm back down to minimal use..

i wish i had a C2D macbook now :(

macbwizard
Jan 13, 2009, 12:34 PM
wow that date/cal script is very resource hogger... when it was on for me it maxed out my activity monitor but after taking it off i'm back down to minimal use..

i wish i had a C2D macbook now :(

It really shouldn't take too much processor power even on the slowest machines it should be fine. You should try changing the refresh rate to a higher setting to minimize processor cycles. I believe the default refresh is every 10 seconds. For something like the month, this is way too often.

EV0LUTION
Jan 13, 2009, 01:19 PM
Will show your external IP address

lynx -dump http://checkip.dyndns.org | cut -d : -f 2

acee88
Jan 13, 2009, 01:43 PM
damn i totally forgot about that.. i had it set to 0 haha no wonder why it hogged my resource.. now i set it to 10 and its all good.

Thanks for the tip now i can continue using this..

EV0LUTION
Jan 13, 2009, 01:47 PM
I'm currently looking for a new way to post the weather. if uweather puts out a special alert you get a "willoverspred" error.

damn i totally forgot about that.. i had it set to 0 haha no wonder why it hogged my resource.. now i set it to 10 and its all good.

Thanks for the tip now i can continue using this..

for something like the weather you can set it even higher. it doesn't change too often. unless you are going through a hurricane or something.

salvatore
Jan 13, 2009, 03:15 PM
I totally want to use/customize/love Geektool, but I just don't look at my desktop all that often, except for waking or sleeping.

Let's see those technical Geektool scripts! Give us reason to watch our desktops again!

tonie
Jan 13, 2009, 03:25 PM
will this app work in Vista?

macbwizard
Jan 13, 2009, 04:33 PM
will this app work in Vista?

No, but Windows has lots of alternatives that are just as cool.

Check out these links... some of it is really cool.

http://lifehacker.com/5124643/enigma-desktop-customization-update-now-available

http://lifehacker.com/5084412/configure-your-own-rainmeter-10+foot-hud

VSMacOne
Jan 13, 2009, 08:50 PM
hey I'm new to GeekTool and all this mess, but i LOVE the idea, and was wondering how difficult would it be to get a small script with a monthly calendar, weather, time and date? I might consider installing this stuff if i can get it do display what i want...
How much CPU does it use when running?

EV0LUTION
Jan 13, 2009, 08:55 PM
hey I'm new to GeekTool and all this mess, but i LOVE the idea, and was wondering how difficult would it be to get a small script with a monthly calendar, weather, time and date? I might consider installing this stuff if i can get it do display what i want...
How much CPU does it use when running?

CPU usage is little, unless you set something to 0

The desktop calendar via geektool:
cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /"

http://dl.getdropbox.com/u/255311/Picture%201.png

macbwizard
Jan 13, 2009, 08:59 PM
hey I'm new to GeekTool and all this mess, but i LOVE the idea, and was wondering how difficult would it be to get a small script with a monthly calendar, weather, time and date? I might consider installing this stuff if i can get it do display what i want...
How much CPU does it use when running?


It's actually very easy to do everything that you want (everything with the exception of the calendar has already been laid out in this thread). As for the CPU question, it really is minimal and can be set so that it will run the scripts as often as you'd like. As a test you can always type a command into Terminal and see how fast and how few resources these things actually take up.

As for the calendar command, I know it's in one (or more) of the following links which combined have all of the information that I've ever needed for tinkering with GeekTool. Have fun!


http://forums.mactalk.com.au/20/58453-learning-love-geektool-primer-part-2-a.html

http://www.keynote2keynote.com/2007/04/10/ultimate-geektool-setup-pimp-your-desktop-part-2/

http://lifehacker.com/software/plain-text/geek-to-live--monitor-your-mac-and-more-with-geektool-244026.php#c1097729


And finally, a shameless plug for my blog that shows my friend's geektool set-up with commands (and with calendar I might add)
http://appalooza.wmblogs.net/2008/12/24/geektool-christmas-present/

velvetelvis
Jan 13, 2009, 11:36 PM
That's odd, it must be how Weather Underground is reporting for that zip code. I entered it into my script and it says the same thing (Temp + Probability of...). Don't know where to go from there.

any idea how to get rid of the "probability of..."

Island Roots
Jan 14, 2009, 12:05 AM
any idea how to get rid of the "probability of..."
Not sure - did some research and couldn't find anything.

velvetelvis
Jan 14, 2009, 12:07 AM
Not sure - did some research and couldn't find anything.

i tried another one and it didnt work... so, i just put my cond. to show after "probability of..." so atleast it shows something

mickbab
Jan 14, 2009, 12:13 AM
what exactly is Lynx? I see it is a text only browser, but why not Safari/Firefox etc?

and can you get weather for other countries (eg Australia?)

suimpreza16
Jan 14, 2009, 01:50 AM
thanks so much for the basic codes!!

si77hay
Jan 14, 2009, 02:49 AM
Great idea for a thread. Here's mine:

152899

152900

LiquidStrike
Jan 14, 2009, 12:13 PM
I'm having some trouble getting the weather scripts to work. I'm running OSx 10.4.11, but I'm pretty sure I've properly installed lynx version 2.86 (run the install.command and moved lynx.command to my Applications).

When I post the weather scripts in Geektool, nothing happens. Is there something else I need/could be doing?

si77hay
Jan 14, 2009, 12:18 PM
I'm having some trouble getting the weather scripts to work. I'm running OSx 10.4.11, but I'm pretty sure I've properly installed lynx version 2.86 (run the install.command and moved lynx.command to my Applications).

When I post the weather scripts in Geektool, nothing happens. Is there something else I need/could be doing?

This could be dangerous; a newbie advising a newbie!

What result do you get when you copy and paste the below straight into Terminal:

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

menthol moose
Jan 14, 2009, 12:30 PM
I'm having some trouble getting the weather scripts to work. I'm running OSx 10.4.11, but I'm pretty sure I've properly installed lynx version 2.86 (run the install.command and moved lynx.command to my Applications).

When I post the weather scripts in Geektool, nothing happens. Is there something else I need/could be doing?
You need to rename lynx.command to lynx and move it into /usr/sbin

In Finder, in the Go menu, click on Go to Folder... then type in /usr/sbin and then click Go. Drag lynx into there.

LiquidStrike
Jan 14, 2009, 01:56 PM
@si77hay - When I paste that line into Terminal - nothing happens. All I get is another command prompt.

@menthol moose - I'm being told I can't move lynx because sbin cannot be modified. It offers up a chance to Authenticate, but I'm not sure what that will do.

si77hay
Jan 14, 2009, 02:04 PM
@si77hay - When I paste that line into Terminal - nothing happens. All I get is another command prompt.

And you certainly don't get the temperature at the start of the line?:
7?C Si-Mac-mini:~ Simon$

I did have an issue where is wasn't returning the result, but that was because of a bad install of Lynx. And this was indicated at the command prompt.

LiquidStrike
Jan 14, 2009, 02:10 PM
No - I got no temp report. Maybe I'll try to reinstall Lynx. Maybe I'm not using the right version?

LiquidStrike
Jan 14, 2009, 02:20 PM
yeah, still no luck. When I run that line as a new command in Terminal, I get a "Process was terminated by signal 10" line.

sumskateborder
Jan 14, 2009, 04:07 PM
I cannot get anything on Geektool to work.

I'm going to describe everything I do so someone can help me out.

I first open it up and click new entry, then I go to the shell tab and put in all the codes for the 1st script listed, then I change the font to what it should be.

When Geektool is open it just shows the box of where it should be, and when I close it out nothing is there.

What am I doing wrong?

hatehereyes
Jan 14, 2009, 04:23 PM
I cannot get anything on Geektool to work.

I'm going to describe everything I do so someone can help me out.

I first open it up and click new entry, then I go to the shell tab and put in all the codes for the 1st script listed, then I change the font to what it should be.

When Geektool is open it just shows the box of where it should be, and when I close it out nothing is there.

What am I doing wrong?

that's exactly what happens with me.
i got the temp to show up once but as soon as i tried to change the font it disappeared.

si77hay
Jan 14, 2009, 05:19 PM
@sumskateborder

Are you able to do anything basic in Geektool like show the day:
date +%A

152993

XianPalin
Jan 14, 2009, 05:39 PM
I'm currently looking for a new way to post the weather. if uweather puts out a special alert you get a "willoverspred" error.



for something like the weather you can set it even higher. it doesn't change too often. unless you are going through a hurricane or something.

I noticed a weird line and then realized I was getting extra text in addition to the temperature... a snow advisory alert. I didn't get an error but there was extra text and that was going to mess up alignment and what not. I added |awk '{print $1}' to the end of the temperature line and that seemed to have ripped out just the temperature. Here's the full line:

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

sumskateborder
Jan 14, 2009, 05:47 PM
@sumskateborder

Are you able to do anything basic in Geektool like show the day:
date +%A

152993

I've figured it out. Thanks.

EV0LUTION
Jan 14, 2009, 06:00 PM
I noticed a weird line and then realized I was getting extra text in addition to the temperature... a snow advisory alert. I didn't get an error but there was extra text and that was going to mess up alignment and what not. I added |awk '{print $1}' to the end of the temperature line and that seemed to have ripped out just the temperature. Here's the full line:

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

thanks!

sumskateborder
Jan 14, 2009, 06:03 PM
Will someone explain to me step by step how to set up the iTunes Script in the 1st post?

Thanks.

MacHappytjg
Jan 14, 2009, 06:21 PM
Im having trouble with the temperature, but im assuming its for the us only? Or will canada work aswell.

monke
Jan 14, 2009, 07:13 PM
Will someone explain to me step by step how to set up the iTunes Script in the 1st post?

Thanks.

First open script editor, then paste in the code from the first post. Save it to a location (mine's in a geektool scripts folder in the documents folder).

Then go to Geek Tool and use the shell command to enter in this:

osascript ~/LocationOfScript.scpt

The Location of Script must be changed to suit your the default finder window. If you open finder (unless you've changed the default location) it should open to your users folder.

My location looks like this: ~/Documents/GeektoolScripts/iTunesInfo.scpt

I hope that helps. :)

Im having trouble with the temperature, but im assuming its for the us only? Or will canada work aswell.

I think Canada will work too, postal codes seem to work on this site, and they look like that same pages...

velvetelvis
Jan 14, 2009, 07:25 PM
I noticed a weird line and then realized I was getting extra text in addition to the temperature... a snow advisory alert. I didn't get an error but there was extra text and that was going to mess up alignment and what not. I added |awk '{print $1}' to the end of the temperature line and that seemed to have ripped out just the temperature. Here's the full line:

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

thank you sooooo much.

shawmaan
Jan 14, 2009, 07:39 PM
I noticed a weird line and then realized I was getting extra text in addition to the temperature... a snow advisory alert. I didn't get an error but there was extra text and that was going to mess up alignment and what not. I added |awk '{print $1}' to the end of the temperature line and that seemed to have ripped out just the temperature. Here's the full line:

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

Saved me! I was getting text from a weather advisory further down the page and couldn't get rid of it. Thanks!

wingnut8
Jan 14, 2009, 09:25 PM
My first attempt:

VSMacOne
Jan 14, 2009, 11:29 PM
Yeah, so until somebody puts together comprehensive a step by step guide on how to get things working right, instead of bits and pieces here and there, I'm not getting into this whole mess... I just installed Geektool and attempted a couple of commands, but no luck... I don't know if it's because it's so late, or what, but I'm giving up and saving it for another day... :rolleyes:
so for now, i'll be a spectator haha..

Hurd111
Jan 14, 2009, 11:35 PM
I really like this program. :cool:

Watabou
Jan 14, 2009, 11:46 PM
I really like this program. :cool:

Where did you get the dock and the icons?

They're awesome.

wingnut8
Jan 15, 2009, 01:52 AM
Yeah, so until somebody puts together comprehensive a step by step guide on how to get things working right, instead of bits and pieces here and there, I'm not getting into this whole mess... I just installed Geektool and attempted a couple of commands, but no luck... I don't know if it's because it's so late, or what, but I'm giving up and saving it for another day... :rolleyes:
so for now, i'll be a spectator haha..

Did you change the font size/color?

si77hay
Jan 15, 2009, 02:42 AM
Yeah, so until somebody puts together comprehensive a step by step guide on how to get things working right, instead of bits and pieces here and there, I'm not getting into this whole mess... I just installed Geektool and attempted a couple of commands, but no luck... I don't know if it's because it's so late, or what, but I'm giving up and saving it for another day... :rolleyes:
so for now, i'll be a spectator haha..

Try this guide (http://www.tssoftware.net/?p=55). A 17 year old wrote it ;)

Or this one (http://forums.mactalk.com.au/20/58404-learning-love-geektool-primer-part-1-a.html) is an absolute corker.

And have a look here (http://fiveprime.org/hivemind/Tags/geektool) for some inspiration! Snapshots of what Geektool can do

VSMacOne
Jan 15, 2009, 08:26 AM
Try this guide (http://www.tssoftware.net/?p=55). A 17 year old wrote it ;)

Or this one (http://forums.mactalk.com.au/20/58404-learning-love-geektool-primer-part-1-a.html) is an absolute corker.

And have a look here (http://fiveprime.org/hivemind/Tags/geektool) for some inspiration! Snapshots of what Geektool can do

OK... you made me reconsider :D Oh boy today is going to be fun!!!!! I'll post my results later. Wish me luck! ;)

YMark
Jan 15, 2009, 08:50 AM
Yeah, so until somebody puts together comprehensive a step by step guide on how to get things working right, instead of bits and pieces here and there, I'm not getting into this whole mess... I just installed Geektool and attempted a couple of commands, but no luck... I don't know if it's because it's so late, or what, but I'm giving up and saving it for another day... :rolleyes:
so for now, i'll be a spectator haha..

This "tool" does take some time playing around with it to figure it out. Documentation is nonexistent. Personally, I think it's kind of cool, but isn't worth me spending the time to figure it out.

VSMacOne
Jan 15, 2009, 09:43 AM
Try this guide (http://www.tssoftware.net/?p=55). A 17 year old wrote it ;)

Or this one (http://forums.mactalk.com.au/20/58404-learning-love-geektool-primer-part-1-a.html) is an absolute corker.

And have a look here (http://fiveprime.org/hivemind/Tags/geektool) for some inspiration! Snapshots of what Geektool can do

This "tool" does take some time playing around with it to figure it out. Documentation is nonexistent. Personally, I think it's kind of cool, but isn't worth me spending the time to figure it out.

The links provided just above are looking pretty good. I'm about to start messing with it a little bit... We'll see how it comes out :confused:

sumskateborder
Jan 15, 2009, 06:17 PM
I do not understand how to get the Weather Script working. I installed Lynx and it's in my Applications folder, and I did all the steps but it isn't showing up.

EV0LUTION
Jan 15, 2009, 06:25 PM
I do not understand how to get the Weather Script working. I installed Lynx and it's in my Applications folder, and I did all the steps but it isn't showing up.

try this:

Conditions:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

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

sumskateborder
Jan 15, 2009, 07:21 PM
try this:

Conditions:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

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

Nothing is showing up.

Did I install Lynx wrong? In my applications folder it is still as lynx.command, do I have to do anything else to it?

monke
Jan 15, 2009, 07:39 PM
Nothing is showing up.

Did I install Lynx wrong? In my applications folder it is still as lynx.command, do I have to do anything else to it?

Try launching Lynx and going to that website in the code.
If that doesn't work, its probably a problem with how you installed it.

si77hay
Jan 15, 2009, 10:18 PM
What happens if you launch Terminal and type "Lynx"?

I installed Lynx twice from websites/packages that turned out to be incorrect. I eventually got a good install of Lynx by installing from the Apple (http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html) web site. Contained within the DMG is a 'README' RTF. Follow the instructions exactly.

ill0gical0ne
Jan 15, 2009, 11:25 PM
With Lynx, it must actually be installed, unlike other applications, as it is run by the terminal. Simply launch the install.command (as an administrator, or a user that has sudo properties) that comes with the .dmg, type in your password, and it will install.

Mikey-
Jan 17, 2009, 01:52 PM
Does anyone know where I can find a tutorial on how to put the date and time onto my desktop using GeekTool?

ethical
Jan 17, 2009, 03:00 PM
Does anyone know where I can find a tutorial on how to put the date and time onto my desktop using GeekTool?

Install GeekTool
Open it in the preferences window.
New > Shell
Paste in one of the codes posted on this website for whatever you want.
e.g. for the time paste in "date +%l:%M" minus the quotation marks
Hit enter, you will see it appear on your desktop.
Move the box around to wherever you like.
Go to Colours/Font and tweak the colour of the background/text and the font of the text to what you like best.
Make a new shell entry for each piece you want on your desktop. (date, time, month, day etc)
Hope this helps.

tecknical
Jan 17, 2009, 11:15 PM
nothing special.

EV0LUTION
Jan 18, 2009, 01:02 PM
nothing special.

Very nice! I like the mix of colors.

VSMacOne
Jan 18, 2009, 06:54 PM
nothing special.

This is a little off topic... But 2 questions for you.

What app did you use to take a snapshot of your desktop? It's very clear...

and how were you able to upload such a large picture to the thread? When I try to do it it tells me it has to be under a certain size...

Thanks.

tecknical
Jan 18, 2009, 09:27 PM
Cmd+Shift+3

it usually saves it as a .png which is way too big for this site, so i open it in photoshop and save it as a .jpg :D

hope that helps

VSMacOne
Jan 18, 2009, 10:07 PM
Cmd+Shift+3

it usually saves it as a .png which is way too big for this site, so i open it in photoshop and save it as a .jpg :D

hope that helps

i knew about that command but didn't know ab the .jpg tip.
i'll give it a shot. Thanks dude

jonbravo77
Jan 19, 2009, 06:28 PM
Not extremely exciting, but I like it. :) The wallpaper came with Crystal Clear app.

tecknical
Jan 19, 2009, 08:35 PM
woa that's majorly trippy.

Ljohnson72
Jan 19, 2009, 09:04 PM
Changed color and moved weather to bottom right corner..


cllicky

http://i43.tinypic.com/1zn0co4.png

MSTRKRFT
Jan 19, 2009, 10:43 PM
the apple link won't let me download lynx. Help Please.

eXan
Jan 19, 2009, 10:57 PM
I've figured out how to put temp and conditions, but what is the command for wind and clouds? I'm confused :o

hatehereyes
Jan 19, 2009, 11:55 PM
I've got all my scripts working right and everything. They show up on my desktop fine but whenever i open up geektools again to edit something i press enter and it just disappears.

does this happen to anyone else?

ucsdmac
Jan 20, 2009, 01:39 PM
I really like this program. :cool:
Ditto on the link to the dock. Looks good. Thanks

OverandOut
Jan 20, 2009, 02:24 PM
I've just installed GeekTool and got a question:
How do I make the time a 24hr clock? I prefer 24hr to 12hr but I have no idea what to do :confused:

Done this is a matter of 5 minutes, simple but I like it so far :)

Mal
Jan 20, 2009, 02:29 PM
Here are my GeekTool scripts, just set up. Unfortunately the calendar I had to do manually for now, which means I'll have to update it each month (the current date is being highlighted automatically, but I'll have to swap out the monthly calendar because the cal command doesn't let me do a single line calendar).

jW

si77hay
Jan 20, 2009, 02:34 PM
I've just installed GeekTool and got a question:
How do I make the time a 24hr clock? I prefer 24hr to 12hr but I have no idea what to do :confused:

Try:
date +%H

OverandOut
Jan 20, 2009, 02:36 PM
Try:
date +%H

Nope that's just giving me the date again :( Thanks though.

si77hay
Jan 20, 2009, 02:44 PM
Nope that's just giving me the date again :( Thanks though.

Are you sure?
date '+%H:%M:%S'

I just tested it:
153886

OverandOut
Jan 20, 2009, 02:46 PM
Are you sure?
date '+%H:%M:%S'

I just tested it:
153886

Ah great that's perfect :D Shows the seconds too, thanks! :)

john2006wright
Jan 20, 2009, 04:28 PM
EDIT. Question answered already

dubhe
Jan 21, 2009, 11:59 AM
This is really cool, done the whole date/calendar thing. Now, I am trying to load a picture using the picture window accessed by the drop down menu. I type in the URL as follows: file://user/dubhe/pictures/P0001234.jpg but it doesn't seem to work, any ideas? Is this how I type the URL of a pic in my pictures folder?

Jeffrosproto
Jan 21, 2009, 02:22 PM
Sorry if I missed it, but is there any way to show 21st or 20th (the th, st part) in the date? Thanks.

bentyyc
Jan 21, 2009, 05:02 PM
Hi folks - newbie here...

I got the scripts to work, but how do you add extra words or characters to, say, the conditions line? Like in this example?

http://flickr.com/photos/dommm/3091666143/

So that you get 28 degrees "and" clear?

I'm messing around and seem to be repeating the "and", so I think I'm putting it incorrectly in the forloop some where.

Likewise, how can I add "(" and ")" around the am/pm in the time script?

Thanks!

BenTYYC

TuffLuffJimmy
Jan 21, 2009, 05:35 PM
I have a quick question. I copied the data and stuff from the OP, but for temperature it reads: "41.5F Probabilityof"

How do I get rid of the "probabilityof"?

Island Roots
Jan 21, 2009, 08:17 PM
I have a quick question. I copied the data and stuff from the OP, but for temperature it reads: "41.5F Probabilityof"

How do I get rid of the "probabilityof"?
The solution to that is somewhere earlier in this topic.

6119
Jan 23, 2009, 01:24 AM
Okay, everything is working great, but how do I get the time to display like this:

3:10

and not this:

03:10

I've noticed that some of the examples posted are dropping that zero. Any idea?

si77hay
Jan 23, 2009, 02:00 AM
Okay, everything is working great, but how do I get the time to display like this:

3:10

and not this:

03:10

I've noticed that some of the examples posted are dropping that zero. Any idea?

It's currently '07:56' here:
154239

date +%I:%M

jamin100
Jan 23, 2009, 02:22 AM
Anyone had any luck getting the weather to work for the Uk?

si77hay
Jan 23, 2009, 02:29 AM
Anyone had any luck getting the weather to work for the Uk?

Here's mine for Bournemouth:
154241

You need the Lynx Text Browser (http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html) installed

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

Cond.
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=bournemouth|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

6119
Jan 23, 2009, 06:41 AM
That's exactly the code I'm using, but it displays like '07:56' on my Macbook Pro.

It's currently '07:56' here:
154239

date +%I:%M

john2006wright
Jan 23, 2009, 11:43 AM
yep, working here in oxford, UK (thanks to si77hay). Just change the number to one nearest you. Check the wundergroud website to find the code number. Also made an Itunes thing for my menubar. I prefer it the miniplayer.

Anyone had any luck getting the weather to work for the Uk?[IMG]

dubhe
Jan 23, 2009, 03:36 PM
Ok, I am new to Geektool and Lynx, but have the temp and weather in my taskbar now which I like. Have been trying to get the wind direction and speed too, any ideas how to choose different fields from the page lynx grabs?

jamin100
Jan 24, 2009, 03:45 PM
Cheers for the help guys,
Here's mine so far . . . .

xUKHCx
Jan 24, 2009, 05:43 PM
Found that GeekTool crashes quite easily on my computer if I leave the Font box open and try to change to another shell.

That said, I am loving geektool so far. I just have the standard items listed in this thread so far.

Tried messing around with sorting out a colour scheme but when I was finished I think it is quite ugly so will be changing it around

eXan
Jan 24, 2009, 09:14 PM
Ok, I am new to Geektool and Lynx, but have the temp and weather in my taskbar now which I like. Have been trying to get the wind direction and speed too, any ideas how to choose different fields from the page lynx grabs?

In your where???

costabunny
Jan 24, 2009, 10:11 PM
I can get the output from lynx ok and the placeholder for the box shows on screen, but no text whatsoever - Am I being a muppett (brand new MBP15" fully updated)

weep

redwarrior
Jan 24, 2009, 10:17 PM
I'm new to macs and looking to play with Geektool. Is there a good tutorial out there? (I've searched, and not found anything basic enough.) :o

dubhe
Jan 25, 2009, 06:10 AM
In your where???

Ok, I meant menu bar, I just stick a shell over the top of it so I can always see the weather (big part of my job), but so is the wind and I can't work out how to grab it!

paola105
Jan 25, 2009, 10:41 AM
Mine is rather ugly. Oh well

6119
Jan 25, 2009, 02:50 PM
Okay, I'm still not having any luck removing the unneeded "0" from the time. I've seen examples in this thread where the "0" is omitted. I'm using:

date +%I:%M

Any idea's? Here's what I'm talking about:

xUKHCx
Jan 25, 2009, 03:55 PM
Okay, I'm still not having any luck removing the unneeded "0" from the time. I've seen examples in this thread where the "0" is omitted. I'm using:

date +%I:%M

Any idea's? Here's what I'm talking about:

Try

date +%l:%M

Where that letter is lowercase L. Seems to get it for me.

What font are you using for the time?
Who is that on your background?

6119
Jan 25, 2009, 07:59 PM
Try

date +%l:%M

Where that letter is lowercase L. Seems to get it for me.

What font are you using for the time?
Who is that on your background?

That did it! Thanks!

The font is "Sam's Town." The girl is Tricia Helfer in her role as Cylon model 6 on Battlestar Galactica.

Topher15
Jan 26, 2009, 12:46 AM
Prefer the second - it works with all wallpapers.

http://dl.getdropbox.com/u/111064/GeekTool1.jpg

http://dl.getdropbox.com/u/111064/GeekTool2.jpg

It you be good if you could move it around as a group instead of individually.

ill0gical0ne
Jan 27, 2009, 11:46 AM
With the weather script for temperature, mine was resulting in something like:

50.4*F inthe

So I came up with a better script.

lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|head -n 7|tail -n 1|awk '{print $2 $3}'

The same goes for the conditions script.

lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|head -n 12|tail -n 1|cut -c43-100

If you find your conditions resulting in something with letters cut off, change the 100 to a value higher.

Mal
Jan 27, 2009, 12:26 PM
Prefer the second - it works with all wallpapers.

It you be good if you could move it around as a group instead of individually.

Which font are you using there? It looks really nice.

With the weather script for temperature, mine was resulting in something like:

50.4*F inthe

So I came up with a better script.

lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|head -n 7|tail -n 1|awk '{print $2 $3}'

The same goes for the conditions script.

lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|head -n 12|tail -n 1|cut -c43-100

If you find your conditions resulting in something with letters cut off, change the 100 to a value higher.

Thanks, my weather script hasn't been working very well recently, I'll give these a try.

jW

Supa_Fly
Jan 27, 2009, 12:33 PM
Okay, I'm still not having any luck removing the unneeded "0" from the time. I've seen examples in this thread where the "0" is omitted. I'm using:

date +%I:%M

Any idea's? Here's what I'm talking about:

Dude I LOVE that desktop!

Curious guys, I'm still very new/green to OS X but not these threads. Is this GeekTool somehow using AppleScript? Also is AppleScript still part of OS X or is it now scrapped??

EV0LUTION
Jan 27, 2009, 12:35 PM
With the weather script for temperature, mine was resulting in something like:

50.4*F inthe

So I came up with a better script.

lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|head -n 7|tail -n 1|awk '{print $2 $3}'

The same goes for the conditions script.

lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|head -n 12|tail -n 1|cut -c43-100

If you find your conditions resulting in something with letters cut off, change the 100 to a value higher.

Thanks! I love collaboration!

I'm going to be making a screen cast shortly on how to set this whole thing up for those out there that still can't figure out how to get it going.

ill0gical0ne
Jan 27, 2009, 08:06 PM
Hmm... the webpage seems to differ on which character starts the "conditions." A while ago when it was "Haze" here, it was character 43, now that it's "Partly Cloudy", it's character 46.

I'll try to figure out something else.

Topher15
Jan 27, 2009, 08:14 PM
Which font are you using there? It looks really nice.
Gill Sans Bold

Topher15
Jan 28, 2009, 12:45 AM
http://dl.getdropbox.com/u/111064/GeekTool2.jpg

Made a bigger version for my MacBook:

http://dl.getdropbox.com/u/111064/GeekTool3.jpg

Crookers
Jan 28, 2009, 08:47 PM
This is incredibly confusing. What am I supposed to paste in and where?

Crookers
Jan 28, 2009, 09:18 PM
I got it:cool:
This is my first try, It sucks. I will update it and eventually it will look better.
http://i275.photobucket.com/albums/jj287/nosnil/Picture1-17.png

MattyK
Jan 29, 2009, 03:58 AM
keepin' it colour coded.

boyreinvented
Jan 29, 2009, 06:17 AM
hi, i really want to be able to say 1st, 2nd, 3rd, 4th, etc, on dates, because in the UK that is who we write it. is that possible?

Andrew K.
Jan 30, 2009, 02:55 AM
Okay got lynx running got my weather in the lynx program but where does it show up? I see all the info in the terminal but how do I make it show up on my desktop??? :(

Andrew K.
Jan 30, 2009, 03:47 AM
Never mind , finally figured out all 3! :D these are awesome thanx everyone for the help ( Read previous posts more carefully )


http://i34.photobucket.com/albums/d122/plasticfrog/Picture1-3.jpg

ill0gical0ne
Jan 30, 2009, 03:49 AM
bah...

*delete me*

jamin100
Jan 30, 2009, 05:55 AM
Updated today

Vivid.Inferno
Jan 30, 2009, 08:31 AM
Here's mine for Bournemouth:
154241

You need the Lynx Text Browser (http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html) installed

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

Cond.
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=bournemouth|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

I used these, and they work great (I changed the url to my city). The problem I'm having is that both the temp, and the conditions are ontop of each other.

Update: I played around a figured it out. Thanks!

TuffLuffJimmy
Jan 30, 2009, 08:40 AM
I used these, and they work great (I changed the url to my city). The problem I'm having is that both the temp, and the conditions are ontop of each other.

Then move them...

Vivid.Inferno
Jan 30, 2009, 11:55 AM
Then move them...

You missed where I updated my post.

I hadn't realized that you had to move them on the desktop. Anyway it's all good now. I'm just trying to find a good one for itunes. No luck yet (all the ones I try don't work properly).

VPrime
Jan 30, 2009, 10:18 PM
Just finished mine... Nothing fancy, but gets the job done ;)
http://img511.imageshack.us/img511/3514/picture2qa7.th.png (http://img511.imageshack.us/my.php?image=picture2qa7.png)

Vivid.Inferno
Jan 30, 2009, 11:21 PM
This is what I've managed by playing around this morning. Still no luck getting anything to work on iTunes. I also just downloaded some new fonts. So I'll be playing around some more later.

scotty96LSC
Jan 31, 2009, 10:45 PM
I've been reading the posts and learning how to use this tool. Here is my first attempt.
http://idisk.mac.com/txwhitehouse//Public/geektool.png
Is there a way to just show the temperature without the decimal?

MattyK
Feb 1, 2009, 06:58 AM
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.
http://img244.imageshack.us/img244/2015/picture1zy1.png

GGGUUUYYY
Feb 1, 2009, 05:36 PM
http://i80.photobucket.com/albums/j193/afekt_1/Screenshot-2.jpg
Cool stuff

apsterling
Feb 1, 2009, 05:44 PM
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.
http://img244.imageshack.us/img244/2015/picture1zy1.png

Good song choice, I love Motion City Soundtrack. :p
http://img239.imageshack.us/img239/1879/picture1zg0.png

jdickson10
Feb 1, 2009, 05:55 PM
http://i80.photobucket.com/albums/j193/afekt_1/Screenshot-2.jpg
Cool stuff

Dude! Wakeskater! What bi-level is that?

GGGUUUYYY
Feb 1, 2009, 05:59 PM
Dude! Wakeskater! What bi-level is that?
Haha.. cool


Devotid onward 38

jdickson10
Feb 1, 2009, 06:19 PM
Nice. I ride the Gator Duece Pop

Musicmasta
Feb 1, 2009, 07:31 PM
Here's mine.

Ice-Cube
Feb 1, 2009, 08:16 PM
Here's mine.

Would you pls share your wallpaper?

GGGUUUYYY
Feb 1, 2009, 08:25 PM
Nice. I ride the Gator Duece Pop

Nice. where are you from?


Anyone have trouble installing Lynx?

/Applications/lynx.command; exit
Welcome to Darwin!
--------:~ --------- /Applications/lynx.command; exit
Bus error
logout
[Process completed]

TuffLuffJimmy
Feb 1, 2009, 08:32 PM
Here's mine.

Would you pls share your wallpaper?

I second that, care to share?
Also: what font are you using for the time, date, etc?

Watabou
Feb 1, 2009, 09:02 PM
I second that, care to share?
Also: what font are you using for the time, date, etc?

Would you pls share your wallpaper?

Saw it in interfacelift:
http://interfacelift.com/wallpaper_beta/details/1793/apple_glowstick.html

jdickson10
Feb 1, 2009, 09:08 PM
[QUOTE=GGGUUUYYY;7037646]Nice. where are you from?


East Texas.

Musicmasta
Feb 1, 2009, 09:29 PM
Would you pls share your wallpaper?

Heres wallpaper link:
http://interfacelift.com/wallpaper_beta/details/1793/apple_glowstick.html

The font I used is Futura

Musicmasta
Feb 2, 2009, 03:26 PM
Anyone who needs help getting the weather/date/time displayed should really check out the following. It helped me a lot!
geektool help (http://mattscinto.com/archives/233)

BillyBobBongo
Feb 2, 2009, 03:29 PM
Here's mine.

That's just awesome! Great Wall! :D

huds0n
Feb 2, 2009, 04:10 PM
http://img261.imageshack.us/img261/3971/geektoolgz6.png

bc008
Feb 2, 2009, 04:39 PM
http://img261.imageshack.us/img261/3971/geektoolgz6.png

looks great except for the 02 ;) find a different font and it could be one of the best in this thread

srl7741
Feb 2, 2009, 08:14 PM
I'm still trying to get the Weather to work? I just can't figure out what I have done wrong. Does anyone have any ideas?

For the moment here is my desktop while i work on the weather addition.

Edit* seems the weather script link was just a bit off. I found the correct text for that script and things work great now.

gfish31
Feb 3, 2009, 07:23 AM
cant...keep...just...one...desktop

mikelong622
Feb 3, 2009, 10:54 AM
Got a geektool script that I'm happy with finally.

johnnyrockets
Feb 3, 2009, 11:16 AM
Got a geektool script that I'm happy with finally.

where did u get that mbp icon ?

mikelong622
Feb 3, 2009, 11:22 AM
where did u get that mbp icon ?

I'll be nice to ya, but watch out for some people here...lack of checking Google can really set some users off.

Macbook Pro Icon (http://Flarup.deviantart.com/art/MacBook-Pro-57608634)

johnnyrockets
Feb 3, 2009, 11:27 AM
I'll be nice to ya, but watch out for some people here...lack of checking Google can really set some users off.

Macbook Pro Icon (http://Flarup.deviantart.com/art/MacBook-Pro-57608634)
thanks!

MattyK
Feb 3, 2009, 02:37 PM
Got a geektool script that I'm happy with finally.

very nice.

hatehereyes
Feb 3, 2009, 03:06 PM
Got a geektool script that I'm happy with finally.

Minus the bear..
very niice.

MSD401
Feb 4, 2009, 10:55 AM
just started playing with geek tool yesterday worked great initially now check out my temp...(attached)

here is the script im using

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

tribe92z
Feb 4, 2009, 07:23 PM
http://img261.imageshack.us/img261/3971/geektoolgz6.png

What font are you using for February?

harry454
Feb 4, 2009, 08:38 PM
I really like this program. :cool:

yes please explain how to obtain that setup

scotty96LSC
Feb 4, 2009, 09:02 PM
Ok. Here is what I like after some tweeks.
I finally got the iTunes script to display the art and current info. Weird thing is I have to open script editor and kick off the artwork script to get the album art to show. I shut script editor down and geektool takes over. It runs smooth after that.
Using Modern No. 20 font for date and weather and using Helvetica Neu for the album info.
http://idisk.mac.com/txwhitehouse//Public/Geekupdate.png

TuffLuffJimmy
Feb 4, 2009, 09:20 PM
Ok. Here is what I like after some tweeks.
I finally got the iTunes script to display the art and current info. Weird thing is I have to open script editor and kick off the artwork script to get the album art to show. I shut script editor down and geektool takes over. It runs smooth after that.
Using Modern No. 20 font for date and weather and using Helvetica Neu for the album info.
http://idisk.mac.com/txwhitehouse//Public/Geekupdate.png

Your geek tool stuff looks like a nice Valentine's day card, or a wedding invite.

chuckcalo
Feb 4, 2009, 09:49 PM
Nothing too fancy, i like it a lot. Took me about an hour to get it "just right". You can see a picture of the desktop on the Feb. Desktop thread.

spyd4r
Feb 5, 2009, 08:18 AM
Does anyone have the weather details just dissapearing randomly?

also notice geektooll sometime takes up a lot of cpu resources

scotty96LSC
Feb 5, 2009, 08:38 AM
Your geek tool stuff looks like a nice Valentine's day card, or a wedding invite.
Matches the colors of the wallpaper. Next wallpaper will of course draw new colors.

huds0n
Feb 5, 2009, 09:05 AM
What font are you using for February?

Desdemona

Melrose
Feb 5, 2009, 11:55 AM
I know this isn't really a script, but since there are a few members who have the Mirage dock with the Kobhens icons I thought I'd post this.

I've been using PS to add the bar along the bottom to simulate the dock background going widescreen. However, it occurred to me it can be done with Geektool even easier.

No more modifying every wallpaper to make it fit your dock! And you can very easily adjust the opacity depending on the brightness of the wallpaper in question.

I give you this screenshot to illustrate the simplicity with which you can accomplish this: (depending on your screen size, play around with the measurements in the lower right corner). Leave the "Command", "Test" and "Icon" tabs at the default settings..

ethical
Feb 5, 2009, 02:04 PM
I know this isn't really a script, but since there are a few members who have the Mirage dock with the Kobhens icons I thought I'd post this.

I've been using PS to add the bar along the bottom to simulate the dock background going widescreen. However, it occurred to me it can be done with Geektool even easier. "Geektool bar" ill. No. 1 (http://dl-client.getdropbox.com/u/64005/downloads/screen-capture-8.jpg)

No more modifying every wallpaper to make it fit your dock! And you can very easily adjust the opacity depending on the brightness of the wallpaper in question.

I give you this screenshot to illustrate the simplicity with which you can accomplish this: (depending on your screen size, play around with the measurements in the lower right corner). Leave the "Command", "Test" and "Icon" tabs at the default settings..

yeah this is how i made mine. just an empty shell command with a grey colour.

iBLAKEE
Feb 9, 2009, 09:30 PM
nothing special.

OT:
Someone tell me what kind of messenger he is using, please.

EDIT: I see he is using adium, but can someone point me to that theme?

Watabou
Feb 9, 2009, 10:32 PM
I know this isn't really a script, but since there are a few members who have the Mirage dock with the Kobhens icons I thought I'd post this.

I've been using PS to add the bar along the bottom to simulate the dock background going widescreen. However, it occurred to me it can be done with Geektool even easier. "Geektool bar" ill. No. 1 (http://dl-client.getdropbox.com/u/64005/downloads/screen-capture-8.jpg)

No more modifying every wallpaper to make it fit your dock! And you can very easily adjust the opacity depending on the brightness of the wallpaper in question.

I give you this screenshot to illustrate the simplicity with which you can accomplish this: (depending on your screen size, play around with the measurements in the lower right corner). Leave the "Command", "Test" and "Icon" tabs at the default settings..

Thank you so much for that! That really helped me. I used to take almost 10 minutes fiddling around in PS until I get it right. This is legen--wait for it--and I hope you're not lactose intolerant--cuz the second half of that word is--DARY!. (Sorry, just had to throw in that HIMYM reference. Speaking of which, there is a new episode today :))
EDIT: Damn! Nevermind. The new episode is not today :( Now I have nothing to do...

NT1440
Feb 9, 2009, 10:34 PM
For the scripts that require an internet connection like weather, what displays when no connection is present?

Island Roots
Feb 10, 2009, 12:40 AM
For the scripts that require an internet connection like weather, what displays when no connection is present?

Nothing; it disappears.

Melrose
Feb 10, 2009, 09:28 AM
Thank you so much for that! That really helped me. I used to take almost 10 minutes fiddling around in PS until I get it right. This is legen--wait for it--and I hope you're not lactose intolerant--cuz the second half of that word is--DARY!. (Sorry, just had to throw in that HIMYM reference. Speaking of which, there is a new episode today :))
EDIT: Damn! Nevermind. The new episode is not today :( Now I have nothing to do...

Glad it's useful :) I modded mine a bit more, extending the black bar to the bottom (off the screen) and added a second one to get the white line at the top of the black bar thingie (which is illustrated w my last post (p15) in the Feb Desktops thread).. I like the new look even better!

Geektool-five! :D

bc008
Feb 10, 2009, 10:19 AM
mine is pretty simple ;)

anyone ever though of making a wallpaper based off geektool?
like its a train station with a big working clock or like a shelf full of bomb parts and on the display is a geektool clock? that would be really cool

fetimo
Feb 10, 2009, 12:28 PM
Hi there,
With the weather condition code lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=bristol|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }' I can get it working in Terminal but GeekTool just doesn't display anything.
Anyone get any idea why this might be?
Thanks for the great inspiration and knowhow on this thread =)

tominabox1
Feb 10, 2009, 05:09 PM
I also have a couple things that quit showing up myself. I have no idea why... (one is a date and the other 2 are weather related and were working fine before)

iBLAKEE
Feb 10, 2009, 05:48 PM
http://img.skitch.com/20090210-b2qur4ufnrfy7q6sdqga8mc4w3.jpg

-Blake

tyranna
Feb 10, 2009, 05:49 PM
here's a script for a world clock which i got here (http://walkah.net/node/96). i couldn't get the script to work using the setup as depicted on the webpage link, but after switching to gmt format it seems to work just fine.

(i added in the "-" bit which you can remove or replace with another character.)

TZ=Alaska/GMT9 date +"Anchorage: %I:%M %p - %D"
TZ=NewYork/GMT5 date +"New York: %I:%M %p - %D"
TZ=England/GMT date +"London: %I:%M %p - %D"
TZ=Australia/GMT-10 date +"Sydney: %I:%M %p - %D"


(this is a VERY cool thread! :D)

ucsdmac
Feb 10, 2009, 06:04 PM
http://i4.photobucket.com/albums/y117/kevindoesntexist/Picture1-18.png

JohnDoe8450
Feb 10, 2009, 08:41 PM
Is there a way to do something other than show time, date and weather ?

Watabou
Feb 10, 2009, 08:46 PM
Is there a way to do something other than show time, date and weather ?

Yes. Click here. :) (http://lifehacker.com/software/plain-text/geek-to-live--monitor-your-mac-and-more-with-geektool-244026.php)

john2006wright
Feb 11, 2009, 04:33 PM
Is there anyway I can get geektool to give me a mail alert or unread mail count (OSX Mail.app). I like to have my dock hidden so it would be good to make a small mail alert/counter and put on top of the menu bar at the top.
Any ideas hwo to write that (or non-geek tool alternative).

Thanks

john2006wright
Feb 11, 2009, 04:44 PM
Is there anyway I can get geektool to give me a mail alert or unread mail count (OSX Mail.app). I like to have my dock hidden so it would be good to make a small mail alert/counter and put on top of the menu bar at the top.
Any ideas hwo to write that (or non-geek tool alternative).

Thanks

Ignore my post. If I had done a search first I would have found this
http://www.apple.com/downloads/macosx/email_chat/mailunreadmenu.html

GGGUUUYYY
Feb 12, 2009, 10:08 PM
Nice. where are you from?


Anyone have trouble installing Lynx?

/Applications/lynx.command; exit
Welcome to Darwin!
--------:~ --------- /Applications/lynx.command; exit
Bus error
logout
[Process completed]

Can anyone help?

Nevermind only works on leopard

MattyK
Feb 12, 2009, 10:52 PM
Changed it. Again. Merged together time+am/pm and temperature and conditions.

CrazyScott
Feb 13, 2009, 09:08 PM
heres mine...

http://img523.imageshack.us/img523/8999/picture1gt8.png

this is a pretty cool tool

cheers

Publius
Feb 14, 2009, 03:27 PM
Is it possible to have the output in capital letters? I know some fonts are naturally in the form of capital letters, but I'm thinking of (for example) having the month be in all capital letters in Helvetica. I don't see an option in the font picker, so it must be based on a command?

ill0gical0ne
Feb 14, 2009, 03:32 PM
Is it possible to have the output in capital letters? I know some fonts are naturally in the form of capital letters, but I'm thinking of (for example) having the month be in all capital letters in Helvetica. I don't see an option in the font picker, so it must be based on a command?

You can do it with AWK, but it seems to be a bit complicated (http://www.pement.org/awk/titlecase.awk.txt).

However, if you'd like, you can create a simple perl script that will do this for you;

ucd.pl
#!/usr/bin/perl
use Shell;
my $sh = Shell->new;
print uc $sh->date('+%B');

and then run it using:

perl /path/to/ucd.pl

Note: I only did this with the "Shell" object to demonstrate how it can be used to run any other shell command (even custom ones like Lynx).

rrijkers
Feb 17, 2009, 06:10 PM
I like to have one that reads my unread mails from mail.app next :)

interobang
Feb 17, 2009, 10:17 PM
I'm pretty recent into geektool and LOVE it. It cannot be said enough how beautiful basic text can look. I've got geektool with the date, day, time, temp, current month's calendar, uptime and cpu info, disk info, and reminders using the other great tool REMIND.

The one last thing I would love is to have my chat client piped into geektool and placed on my desktop as well. Right now I use Adium and have a theme that is very ignorable and blends well with my geektool output, but I would love to have it in the same place.

Enter hours spent trying to fiddle with finding, downloading, compiling, etc. a chat client that could possibly(?) be output by geektool. I came across centericq but have had trouble compiling it.

I'm about three paces past n00b and would love to know from you wiser folk whether this is just a pipe dream that makes no real sense. Would it be possible to use geektool to output a terminal-based chat client the way it outputs info from lynx?

Ambarona
Feb 17, 2009, 10:30 PM
Here are my GeekTool scripts, just set up. Unfortunately the calendar I had to do manually for now, which means I'll have to update it each month (the current date is being highlighted automatically, but I'll have to swap out the monthly calendar because the cal command doesn't let me do a single line calendar).

jW

i would love this calender script pretty pleeease

iJimmy
Feb 18, 2009, 10:58 AM
thanks to the OP

rrijkers
Feb 18, 2009, 01:40 PM
I got a problem with my time, time always displays with the US format, I want to have it in 24h format, how can I achieve this?

MattyK
Feb 18, 2009, 02:15 PM
I got a problem with my time, time always displays with the US format, I want to have it in 24h format, how can I achieve this?

Give this a try
date +"%k:%M %p"

rrijkers
Feb 18, 2009, 05:35 PM
Give this a try
date +"%k:%M %p"

You are a true genius :)

The +%k does the trick

ill0gical0ne
Feb 18, 2009, 06:43 PM
i would love this calender script pretty pleeease

A calendar can be achieved by calling the "cal" command.
cal

However, if you'd like for it to surround the current date, you can use this simple script that I just came up with:
cal.pl
#!/usr/bin/perl
use Shell;
my $sh = Shell->new;
my $cal = $sh->cal();

my $date = $sh->date('+%d');
$date =~ s/\n//;

if($sh->date('+%A') =~ m/Saturday/){
if($date < 10){
$cal =~ s/ $date/\[ $date\]/;
}
else {
$cal =~ s/ $date/\[$date\]/;
}
}
else {
if($date < 10){
$cal =~ s/ $date /\[ $date\]/;
}
else {
$cal =~ s/ $date /\[$date\]/;
}
}

print $cal;

Execute using:
perl cal.pl

MattyK
Feb 18, 2009, 11:27 PM
You are a true genius :)

The +%k does the trick

Haha, no problem buddy.

Blindfutur3
Feb 19, 2009, 04:15 AM
Here's mine. Have to thank the first post in this thread. My GeekTool was boring until I came across it.

AppleMatt
Feb 19, 2009, 05:39 AM
I like to have one that reads my unread mails from mail.app next :)

Two questions:
1) How have you got your temperature to display in celsius? Mine is only displaying in farenheight which is irritating me.
2) What font is that?

:)

AppleMatt

Blindfutur3
Feb 19, 2009, 07:45 AM
1) How have you got your temperature to display in celsius? Mine is only displaying in farenheight which is irritating me.

Haha, I'm having the opposite problem. I'd like mine to display in Farenheight, not Celsius. I think it just displays what the website puts out, right?

si77hay
Feb 19, 2009, 07:50 AM
What web site or code are you guys using?

Here's my weather result:
158563

From condition code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=bournemouth|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

From temp. code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=bournemouth|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'

AppleMatt
Feb 19, 2009, 08:24 AM
What web site or code are you guys using?

Here's my result weather result:


I'm using the exact same code as you. In-fact, I made a second one and copied and pasted yours and it still returned as farenheight.

AppleMatt

si77hay
Feb 19, 2009, 08:34 AM
I'm using the exact same code as you. In-fact, I made a second one and copied and pasted yours and it still returned as farenheight.

AppleMatt

Oh! I have no idea then. You copied my line of code exactly, but it returns F???

Go on...show me some hard evidence ;-)

rrijkers
Feb 19, 2009, 09:32 AM
Two questions:
1) How have you got your temperature to display in celsius? Mine is only displaying in farenheight which is irritating me.
2) What font is that?


1) I did not do anything, it shows celcius automatically.
2) Helvetica Neue Ultra Light and some varations of it

Blindfutur3
Feb 19, 2009, 09:55 AM
What web site or code are you guys using?

I'm using the exact same code as you and I see the temperature in Celsius. I'd like to know how some folk are getting Farenheit

rrijkers
Feb 19, 2009, 06:26 PM
Ok, I am having e-mail now with the folowing code:


echo 'tell application "Mail" to return unread count of inbox as string & " new e-mail"' | osascript | grep -v '0 new e-mail'


This returns nothing when there is no mail and x new e-email when there is mail, however it starts mail.app when it is not running, something I don't want it to do.

I had about the same with itunes but it now checks if itunes is running, if its not it won't execute the script. I am not a programmer, but I feel the same is possible for this script. Anyone?

iTunes script:
property go1 : false
-- check to see if iTunes is running
tell application "System Events"
set the process_flag to (exists process "iTunes")
end tell
if the process_flag then
-- check to see if iTunes is playing
tell application "iTunes"
if player state contains playing then set go1 to true
end tell
if go1 then
-- do what you need to do
tell application "iTunes"
set foo1 to name of current track
set foo2 to artist of current track
set foo3 to album of current track
set foo4 to foo1 & " / " & foo2 & " / " & foo3
end tell
end if
end if

I am sure these 2 can sortoff be combined to achieve that same. Even better would be if it would read 1 new email and 2 new emails and so forth.

Thanks

Bariwasmypart
Feb 20, 2009, 12:20 PM
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.
http://img244.imageshack.us/img244/2015/picture1zy1.png

Where did you get your hardrive Icon?

Heres mine so far www.flickr.com/photos/31337373@N02/3294965949/ (http://www.flickr.com/photos/31337373@N02/3294965949/)

MattyK
Feb 20, 2009, 04:23 PM
Where did you get your hardrive Icon?

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

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.

bbotte
Feb 20, 2009, 08:19 PM
Mine, Thanks for the thread guys, helped a lot. MacBook Air Display(laptop mode)

bbotte
Feb 20, 2009, 09:36 PM
Apple LED Cinema Display mode:

Bariwasmypart
Feb 21, 2009, 10:27 AM
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

Kila
Feb 21, 2009, 02:18 PM
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.

http://i41.tinypic.com/sc6n4m.png

MattyK
Feb 21, 2009, 04:41 PM
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. (http://www.macupdate.com/info.php/id/18252)

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.

lynx -dump http://printer.wunderground.com/global/stations/94767.html|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!

Kila
Feb 22, 2009, 12:11 AM
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.

MattyK
Feb 22, 2009, 12:20 AM
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 :)

MSTRKRFT
Feb 22, 2009, 04:39 AM
Here is mine. What do you think?

northy124
Feb 22, 2009, 03:10 PM
Wow great thread, I am going to play around with GeekTool :D

xXriderXx7
Feb 22, 2009, 03:30 PM
Here is mine. What do you think?

Can I have the sunrise/sunset script? :D

dmmcintyre3
Feb 22, 2009, 03:42 PM
Here it is

MSTRKRFT
Feb 22, 2009, 04:39 PM
Can I have the sunrise/sunset script? :D
Sunrise
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
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?

zzzzzzzzz
Feb 22, 2009, 08:08 PM
Sunrise
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
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.

MSTRKRFT
Feb 22, 2009, 08:28 PM
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.

rrijkers
Feb 23, 2009, 07:54 AM
Works great! You think you can write something similar to show temperature so we don't need lynx?

@ MSTRKRFT: browse to you station manually from http://m.wund.com/ :cool:

Génicus
Feb 23, 2009, 02:21 PM
here is mine:
http://att.macrumors.com/attachment.php attachmentid=159275&stc=1&d=1235420382

waffles123
Feb 23, 2009, 04:02 PM
http://farm4.static.flickr.com/3213/3304334000_8cece9435a_b.jpg

MSTRKRFT
Feb 23, 2009, 04:07 PM
Works great! You think you can write something similar to show temperature so we don't need lynx?

@ MSTRKRFT: browse to you station manually from http://m.wund.com/ :cool:

that didn't work It showed the source instead. Like html.

Deomitrus
Feb 23, 2009, 11:29 PM
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):
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.)

scokim
Feb 24, 2009, 12:02 AM
http://farm4.static.flickr.com/3213/3304334000_8cece9435a_b.jpg

hey that's pretty cool. how did you do that?

TuffLuffJimmy
Feb 24, 2009, 12:07 AM
hey that's pretty cool. how did you do that?

It's a wallpaper.

waffles123
Feb 24, 2009, 12:22 AM
hey that's pretty cool. how did you do that?

I used clancemasterj's psd, found here.http://Clancemasterj.deviantart.com/art/Brown-Wall-113347299

Then I played with it a bit, changed the wallpaper to the color of my room, and made one of the picture frames into an atomic clock. Example

Then I used geektool and used this fonthttp://www.dafont.com/ds-digital.font

scokim
Feb 24, 2009, 02:10 AM
I used clancemasterj's psd, found here.http://Clancemasterj.deviantart.com/art/Brown-Wall-113347299

Then I played with it a bit, changed the wallpaper to the color of my room, and made one of the picture frames into an atomic clock. Example

Then I used geektool and used this fonthttp://www.dafont.com/ds-digital.font

thanks!




With the lynx/weather script, how do i display the city which the temp is displaying.