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.
Finally got mine setup. I got the weather and satellite image to display (hopefully they update properly!) after trying so many times.
desktoponl.jpg
 
Here is my current desktop:
Desktop-April09.jpg


... and here is the GeekTool script which displays the information on the right side of the screen:

date +"%a %b %d, %Y"; curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USTX0775&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/ F<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'; echo "\nEvents"; /usr/local/bin/icalBuddy -nc -po datetime, title -eep notes,location -tf "%1I:%M" -ps "|: |" eventsToday; echo "\nTasks"; /usr/local/bin/icalBuddy -nc -itp title uncompletedTasks

This script is actually a combination of several scripts, separated by semicolons, which I will break down and describe below. Each can be used independently as well.

Get the current date in the format Thu Apr 23, 2009:

date +"%a %b %d, %Y"

Get the current weather from Yahoo (for location USTX0775 in Farenheit - go to Yahoo, set your location, and adjust as needed). I grabbed this code from somewhere - not my own.

curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USTX0775&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/ F<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'

Just print "Events" on a new line:

echo "\nEvents"

The following uses the utility called icalBuddy (Google it, then install it) to access your iCal database and display calendar events and tasks. Run icalBuddy to show today's events, without calendar names, change the print order to the time then title, don't print notes or location, adjust the time format to X:XX, and set the separating character to a colon. All of these icalBuddy options are described on its help page.

/usr/local/bin/icalBuddy -nc -po datetime, title -eep notes,location -tf "%1I:%M" -ps "|: |" eventsToday

Just print "Tasks" on a new line:

echo "\nTasks"

Run icalBuddy again to display uncompleted tasks (IMO this is a much better solution than displaying a text file as I have seen others do), don't print calendar names, and print only the title.

/usr/local/bin/icalBuddy -nc -itp title uncompletedTasks

As you can see, icalBuddy is highly configurable and is a terrific way to include calendar events and/or tasks from iCal on your desktop.

Why did I link these together in one GeekTool entry? Because I want them to float up and down with each other depending on how many lines are displayed above. For example, if I am offline, the weather info will not display, and all other content will move up so as not to leave a blank line.

Tim
 
CPU use script

This is my first post so please let me know if I'm not following any etiquette here.
I've been playing with Geektool for a few days and have been enjoying messing around with it. I've just been cutting and pasting in the scripts, no programming knowledge. This is the script I'm using for cpu usage: top -l 2 | awk '/CPU usage/ && NR > 5 {print"CPU: " $12, $13}'
Does anybody have a script or can tell me what to modify in this one to show the percentage being used rather than what's idle?
Thanks in advance
 
MBP CPU monitor

I put a MacBook Pro in my picture then I put top -l 2 as the command and put it on top of the MBP.
 

Attachments

  • Picture 1.png
    Picture 1.png
    687.3 KB · Views: 1,745
Here is my current desktop:
Desktop-April09.jpg


... and here is the GeekTool script which displays the information on the right side of the screen:

date +"%a %b %d, %Y"; curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USTX0775&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/ F<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'; echo "\nEvents"; /usr/local/bin/icalBuddy -nc -po datetime, title -eep notes,location -tf "%1I:%M" -ps "|: |" eventsToday; echo "\nTasks"; /usr/local/bin/icalBuddy -nc -itp title uncompletedTasks

This script is actually a combination of several scripts, separated by semicolons, which I will break down and describe below. Each can be used independently as well.

Get the current date in the format Thu Apr 23, 2009:

date +"%a %b %d, %Y"

Get the current weather from Yahoo (for location USTX0775 in Farenheit - go to Yahoo, set your location, and adjust as needed). I grabbed this code from somewhere - not my own.

curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USTX0775&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/ F<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'

Just print "Events" on a new line:

echo "\nEvents"

The following uses the utility called icalBuddy (Google it, then install it) to access your iCal database and display calendar events and tasks. Run icalBuddy to show today's events, without calendar names, change the print order to the time then title, don't print notes or location, adjust the time format to X:XX, and set the separating character to a colon. All of these icalBuddy options are described on its help page.

/usr/local/bin/icalBuddy -nc -po datetime, title -eep notes,location -tf "%1I:%M" -ps "|: |" eventsToday

Just print "Tasks" on a new line:

echo "\nTasks"

Run icalBuddy again to display uncompleted tasks (IMO this is a much better solution than displaying a text file as I have seen others do), don't print calendar names, and print only the title.

/usr/local/bin/icalBuddy -nc -itp title uncompletedTasks

As you can see, icalBuddy is highly configurable and is a terrific way to include calendar events and/or tasks from iCal on your desktop.

Why did I link these together in one GeekTool entry? Because I want them to float up and down with each other depending on how many lines are displayed above. For example, if I am offline, the weather info will not display, and all other content will move up so as not to leave a blank line.

Tim

Lovely scripting but since I can not get the silly thing to work... could I have a link to the photo instead? Thanks...
 
Hello,

i am looking for a geektools script to monitor my server on the same network as my mac, i want to see cpu and memory info along with disk space is this possible or does geektools only report on the local machine?

Rich
 
Hello,

i am looking for a geektools script to monitor my server on the same network as my mac, i want to see cpu and memory info along with disk space is this possible or does geektools only report on the local machine?

Rich

You might be able to do this with SSH but I am not sure.

SSH would allow you to do this but geektool might not support SSH with the way it handles commands. I will have to try it

I could not get geektool to do ssh.

You could try setting up a text web page and accessing it from lynx with the CPU/RAM Free/HD Space
 
You might be able to do this with SSH but I am not sure.

SSH would allow you to do this but geektool might not support SSH with the way it handles commands. I will have to try it

Interesting my server has SSH but i have no experiance with Geektools to even start to try this idea. If you could have a go that would be great :apple:
 
Lynx

Please Help...I have had Geektool working for a few days now, but I want to use the temperature and forecast commands as well. My problem is, I don't know what do do with the Lynx folder I've downloaded before I can enter the commands. I have "lynx2-8-7" and within the folder are a ton of different folders and documents. I have to get the file off of softpedia because the osxgnu link is down.
 
Lynx Update

So what I did what download that Lynx package I told you about, then downloaded Fink, and installed. In Terminal I then used "Fink install Lynx" and everything seemed to work, near the end it said "unpacking contents" which is what I'm pretty sure I wanted to happen. I tried the weather Geektool script again and still nothing happens. What else do I need to do, is Lynx installed all the way? Quick response greatly appreciated!
Thanks in advance,
IRM


EDIT:::: I'm going to delete all my LYNX files and FINK files and follow your exact instruction on how to install Lynx on 10.5 and then use it in Geektool. I know I'm new here but please respond!
 
I've been trying since yesterday to download Lynx Text Browser from Apple's download site http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html but I just can't seem to connect. I can't find a compiled/binary version elsewhere as well (yes i've searched on google).

Does anyone that still have the installation copy upload please?


Yes please!!! ANYONE!!! What exactly is a compiled/binary version? I found a good download but it just had a bunch of files in it.
 
I've been trying since yesterday to download Lynx Text Browser from Apple's download site http://www.apple.com/downloads/macosx/unix_open_source/lynxtextwebbrowser.html but I just can't seem to connect. I can't find a compiled/binary version elsewhere as well (yes i've searched on google).

Does anyone that still have the installation copy upload please?
It's not an application like iTunes or whatever, it's a couple of files that you have to manually install (yep, you need to read the documentation). Then Lynx "lives" inside of terminal.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.