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.
I am a NOOB so its not very clean. It is a patch job from many scripts found here.

Date:
cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./*/g') /"

Network Info: (For this I used 3 different scripts)
(For the left side)
echo External :; echo Internal :; echo Wireless :; echo "SSID :";
(ipaddresses)
echo `curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'`;/Users/USERNAME/bin/ipaddress;
(for SSID)
airport -I | grep -e '[^[:alnum:]_]SSID[^[:alnum:]_]' | awk '{print $2}'

Drives: ( I know each of my primary network drives I am connecting to)
df -h | grep Filesystem | awk '{print "Drive " , $4," " $6}'

df -h | grep disk0s2 | awk '{print "Mac HD:", " "$4, " " $6}'
df -h | grep Source | awk '{print "Source:", " "$4, " " $6}'
df -h | grep MyData| awk '{print "MyData:", " "$4, " " $6}'
df -h | grep Movies| awk '{print "Movies:", " "$4, " " $6}'
df -h | grep DVD| awk '{print "DVD:", " "$4, " " $6}'
df -h | grep disk1s* | awk '{print $1" ", $4," " $6}'; df -h | grep disk2s* | awk '{print $1" ", $4," " $6}'; df -h | grep disk3s* | awk '{print $1" ", $4," " $6}'; df -h | grep disk4s* | awk '{print $1" ", $4," " $6}'; df -h | grep disk5s* | awk '{print $1" ", $4," " $6}'


iTunes
echo iTunes:
osascript ~/GeekTool/iTunes.scpt

Weather:
echo Your City
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=YOURZIPCODE&u=f" | grep -e "Current Conditions" -A 1 | tail -n 1 | sed -e 's/<BR \/>//' && echo && curl --silent "http://xml.weather.yahoo.com/forecastrss?p=YOURZIPCODE&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/High\:\ \(.*\)\ Low\:\ \(.*\)/\?H\: \1\ L\:\ \2/" | sed "s/\?\(.*\)/\\1/"

Alot of this is pretty ugly. I am a noob to this so I just manipulated what i found mostly in this thread.

Background: (Came from the Bikini Atoll Nuclear Test: 1946 Operation Crossroads on Wikipedia)
http://upload.wikimedia.org/wikipedia/commons/0/09/Operation_Crossroads_Baker_Edit.jpg

As for the Border. I am using GeekTool 3 and I just dragged a blank shell on the desktop and adjusted the height and width. Then I choose a background color of black and set it to 50% opacity. It had to be the first shell dragged on to the desktop though since each script represents a different layer. In Geektool 3 I can't figure out how to move each one up or down in the list like ver 2.

Great and thank you very much for all the info!
 
hey

(for SSID)
airport -I | grep -e '[^[:alnum:]_]SSID[^[:alnum:]_]' | awk '{print $2}'

hey thanks for all your help so far.

i can't seem to get the SSID script to work on geektool 3.0 (i'm also running SL). nothing shows up for either the SSID or "wireless" labels.

also, would anyone know how to get an hour-by-hour weather update? from a website like this?
 
also, would anyone know how to get an hour-by-hour weather update? from a website like this?

i take my weather informations by yahoo weather web page, then i take the image link rapresentative of current weather and download it to /tmp/weather.png then i use gerktool to load the downloaded image.
all the scripts are available on this table and the result is the same i posted here some days ago.

 
hey thanks for all your help so far.

i can't seem to get the SSID script to work on geektool 3.0 (i'm also running SL). nothing shows up for either the SSID or "wireless" labels.

also, would anyone know how to get an hour-by-hour weather update? from a website like this?


For the SSID to show
Open a Terminal session and copy in the following

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

So no IP address shows under wireless? Does it say INACTIVE? Also do you have the ipaddress program contained in the zip file in the appropriate place?

I created a folder in my home dir called GeekTool where I keep my scripts. /Users/YOURNAME/GeekTool then make sure that in the command the portion says echo `curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'`;/Users/YOURNAME/GeekTool/ipaddress;

replace YOURNAME with your account name
 

For the SSID to show
Open a Terminal session and copy in the following

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

So no IP address shows under wireless? Does it say INACTIVE? Also do you have the ipaddress program contained in the zip file in the appropriate place?

I created a folder in my home dir called GeekTool where I keep my scripts. /Users/YOURNAME/GeekTool then make sure that in the command the portion says echo `curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'`;/Users/YOURNAME/GeekTool/ipaddress;

replace YOURNAME with your account name

I got it to work. Thanks
 
i take my weather informations by yahoo weather web page, then i take the image link rapresentative of current weather and download it to /tmp/weather.png then i use gerktool to load the downloaded image.
all the scripts are available on this table and the result is the same i posted here some days ago.

there are 3 websites that have an hourly weather forecast and none of them have an image that has the hourly predictions which i can download.

what do you suggest doing? is it possible to have an hour-by-hour forecast?
 
i take my weather informations by yahoo weather web page, then i take the image link rapresentative of current weather and download it to /tmp/weather.png then i use gerktool to load the downloaded image.
all the scripts are available on this table and the result is the same i posted here some days ago.

How would I go about doing that exactly?
 
Since Snow Leopard Upgrade

Since I upgraded to Snow Leopard a couple of issues with geektool 2.
My script that provides me my wireless connection network doesn't work. It just displays the echo command "network:" but not the name of the connection.
iTunes 9 seems to drop my script for the next 5 songs to display. I have to restart iTunes and it reappears. This may be just iTunes 9 as I have noticed it does crash once in a while.
Finally Geektool 2 will not show in the menu bar, I have to go to system preferences and double click on the geektool icon where the dialog then states that it has to close and open system preferences to display geektool.
Just some observations.
 
For folks using Geektool and Snow Leopard, which version are you using? The 2.x version, or are you using the 3.0 RC versions? I haven't gone back to it since upgrading to SL, and I won't want to have any compatibility issues.

Thanks in advance!
 
Since I upgraded to Snow Leopard a couple of issues with geektool 2.
My script that provides me my wireless connection network doesn't work. It just displays the echo command "network:" but not the name of the connection.

For your wireless SSID to show try this

Open a Terminal and type:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

Then a GeekTool Shell:
airport -I | grep -e '[^[:alnum:]_]SSID[^[:alnum:]_]' | awk '{print $2}'

Finally Geektool 2 will not show in the menu bar, I have to go to system preferences and double click on the geektool icon where the dialog then states that it has to close and open system preferences to display geektool.
Just some observations.

I was having to many issues with Snow Leopard and GeekTool 2 so I upgraded to GeekTool 3 RC and it now shows i the menubar and solved many issues I was having!
 
Geektool 3 is using ALOT of my cpu resources, up to 90%. I don't understand the usage, the commands were all set to refresh every 9999 secs or so. Anyone has the same issues? Any workaround?
 
I know, I did do the weather part. But all I end up with is a blank box on my desktop. I don't get how to how to take the image link and download it to /tmp/weather.png

to have the image and the weather description you need all three scripts.
  • weather title it's for the description and will produce strings like "Fair, 23 C" or "Partly cloudy, 34 C" on you desktop.
  • weather curl is the script which gets the image from the yahoo website and put it in /tmp/weather.png automatically, you just have to modify the script in the part of the city code replacing the word "YOURCITY" with the code given in the address of the webpage showed by the yahoo wether of the city you are interested to. (i.e. if you want NY you must use USNY0176).
  • weather image must be set as Picture entry in the geektool panel and it gets the downloaded weather image from the location specified in weather curl.
hope I was more clear...
 
just to reiterate what poppero is trying to say, make 3 shell scripts

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

2nd
Code:
curl --silent "http://weather.yahoo.com/forecast/YOURCITYCODE.html" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png

3rd
Code:
file:///tmp/weather.png

for the first put your zipcode where it says "YOURZIP"

for the second replace your city code, as it appears on weather.yahoo.com, where it says "YOURCITYCODE" should start US.........

for the third just leave it alone and it should work
 
n00b question. I had Geektool 2 with Leopard, but I've gone straight to Geektool 3 for my Snow Leopard installation. When I drag an icon to my desktop, I can't figure out how to input any of the scripts into it. I'm sure it's easy and that I'm missing something, but I'm at a complete loss abt what to do.

I end up with the Geektool pref pane, and what looks like a HUD display with "Geeklet Settings" in the middle. Also, I'm not having much luck looking for a tutorial for GT 3, so any help with that would be great.

Thanks much.
 
Day, Month, Day Number

For formatting purposes, I was wondering if anyone could give/make me a script with the Day, Month and Day Number all on one line.

ex.
Saturday, September 12

Thanks,
IRM
 
Getting Yahoo Weather updates in Fahrenheit?

I love the Yahoo Weather updates and don't want to have to switch using it just because I don't know how to get the updates in Fahrenheit.

So, how do I do this? All I want is for the Celsius temperature to be Fahrenheit.
Thanks! :apple:
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.