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.
Does anybody using Yahoo weather widget with SL? I tried and it wont work.
Looks like it doesn't recognize the plug in but it's installed.
 
So it is currently Wednesday, 12:18 AM, September 2. It says so at the top of my screen.

Geektool think sit is exactly 12 hours earlier.

I have not upgraded to SL. Any thoughts?



Also,

-- I believe the SL 'top' problems can be traced to Grand Central since it's being piped through the revamped terminal.

-- People asking what the '1' is after the popular uptime script: it's actually '1 user' since the script gets how many users are currently logged in. Trim your code to get rid of that section.
 
I'm having a problem with the font i'm using. It cuts off the top of the script font. Is there a way to fix it?

Screen shot 2009-09-03 at 9.44.14 AM.png
 
Where is the Tron desktop picture? Gotta have it.

If you don't mind, I would like to provide an opinion. I like what you have done except for one thing. The blue, red, and yellow date information sticks out too much, IMO. Maybe try a blue that is closer to the blues in the picture and maybe size down the red date just a smidgen, especially the numeral. You could alternatively change the color of the date info all together, a white might work.

The Tron Legacy Lightcycle wallpaper can be found here:
http://www.truegameheadz.com/blogheadz/wp-content/uploads/2009/07/lightcycle.jpg

I just looked for "Tron" one day on Google Pics and came across that one. I have a 2560 x 1600 res 30-inch display and that fits really well on the screen, especially with the GT scripts surrounding the image. Thanks for the input about my GeekTool desktop. I very much appreciate your comments. I actually have enjoyed the way the colors look even though I agree with you that the info "sticks out too much." With many of my wallpapers the colors look pretty good to me plus I've gotten used to the way it's set up.
 
Hey, can anybody tell me how to put in geektool just simple text? I don't want it to be chaged/updated regularly - I just want to have my school timetable on my desktop, and few fields of text in geektool sound like a pretty good solution... Thank you!
 
Hey, can anybody tell me how to put in geektool just simple text? I don't want it to be chaged/updated regularly - I just want to have my school timetable on my desktop, and few fields of text in geektool sound like a pretty good solution... Thank you!

Code:
echo "insert text here"

Make sure to use quotes.

jW
 
Thank you, and can anybody tell me what frequency of updating should i set for scripts like cpu usage, ram usage, running processes? I don't want geektool to decrease battery life and performance... Thank you!!!
 
Problems With iTunes Artwork

I am trying to get my iTunes artwork to display on my desktop. I am using a script I found at http://www.macosxhints.com/article.php?story=20060406080910401. I have followed the intructions to the T, but can't get it working. It will display song info but not the artwork. If I try to manually run the script in apple script editor this is the error I get.

error "Can’t make \"Macintosh HD:Users:Jason:pictures:iTunes Artwork:From iTunes:albumArt.pict\" into type file specification." number -1700 from "Macintosh HD:Users:Jason:pictures:iTunes Artwork:From iTunes:albumArt.pict" to file specification

Does anyone have another way to show iTunes artwork and song info, or could shed some light on this error.
 

Attachments

  • iTunesArtwork.zip
    288.9 KB · Views: 170
Actually scratch what I mentioned above. I failed to mention that I am running Snow Leopard and GeekTool 3 RC5. I found another article about iTunes artwork not displaying properly after upgrade to SL. I found the solution @ http://jdotpete.com/2009/08/geektool-3-snow-leopard-and-album-art-issues/comment-page-1/#comment-90 and was able to solve the issue thank to Josh Peterson. I took the previous folder structures used in the previous threads and changed the .tif files to .pict files and used the code provided by Josh Peterson and everything works so far. I know I have forgot some others whom have contributed and I am sorry if I left anyone out.
 

Attachments

  • iTunesArtwork.zip
    25.9 KB · Views: 264
Thank you, and can anybody tell me what frequency of updating should i set for scripts like cpu usage, ram usage, running processes? I don't want geektool to decrease battery life and performance... Thank you!!!

umm, for my time, i obviously update it every 60 seconds, i have the temperature on my desktop too, and i update it every 20 minutes or so i believe, 1200 seconds. so you could use that for ram, and cpu you could update every 5 minutes or so, so like 400 seconds
 
It also doesn't work with any of my Lynx powered Weather scripts. What gives?

I am sticking with 2.x until 3.x is up to snuff.

I can confirm that the lynx weather scripts at the beginning of the thread don't work. I can get the conditions script to work, but I can't get the temperature to show up in GeekTool 3.0. I'm wondering if it has something to do with the degree symbol.
 
I can confirm that the lynx weather scripts at the beginning of the thread don't work. I can get the conditions script to work, but I can't get the temperature to show up in GeekTool 3.0. I'm wondering if it has something to do with the degree symbol.

I figured it out. There's something wrong in this bit of the code that's causing the problems:

Code:
for (i=3; i<=3; i++) printf $i " " }'

When you remove that code, you can display the temperature data, though without the °F bit. I just used an echo call to fill in that bit. If anybody can figure out a workaround so we could get it all in one shell module, that would be great. Otherwise I'll go with my workaround.

Here's the code to get the Temperature from wunderground to work with GeekTool 3.0 (don't forget to replace "YOURCITY" with your city/zip:

Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURCITY|awk '/Temp/{printf $2, ": "}'
 
I've had some success with top using this

You'll need to use a fixed width font. I have refresh set to 10 sec.

Code:
top -ocpu -ncols 12 -l1 -n20 | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77

It doesn't display exactly the way the old one did, but it works for me. Hope this helps someone.

Does anyone know how to fix the airport.sh script to work with the new system_profiler SPAirPortDataType ?

Thanks
 
You'll need to use a fixed width font. I have refresh set to 10 sec.

Code:
top -ocpu -ncols 12 -l1 -n20 | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77

It doesn't display exactly the way the old one did, but it works for me. Hope this helps someone.

Does anyone know how to fix the airport.sh script to work with the new system_profiler SPAirPortDataType ?

Thanks

thanks for this
 
I figured it out. There's something wrong in this bit of the code that's causing the problems:

Code:
for (i=3; i<=3; i++) printf $i " " }'

When you remove that code, you can display the temperature data, though without the °F bit. I just used an echo call to fill in that bit. If anybody can figure out a workaround so we could get it all in one shell module, that would be great. Otherwise I'll go with my workaround.

Here's the code to get the Temperature from wunderground to work with GeekTool 3.0 (don't forget to replace "YOURCITY" with your city/zip:

Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURCITY|awk '/Temp/{printf $2, ": "}'

i'm also using geektool 3

i had exactly the same problem with the weather, however, i was bold and changed the output encoding and got mine to work perfectly.

just change the output encoding on the temperature from UTF8 to ASCII. that's all I did and temp showed up for me. :)

let me know if this works for you guys as it did me!
 
Question:

I had to stop using Geektool because it all of a sudden began raging my processor and overheating my notebook. It went two years without a hitch, and then literally, overnight it started acting up. The only thing I can think of that occurred about the same time was I installed a game (which I have since uninstalled).

Any ideas? I'd love to be able to use Geektool again.

Thanks! :)
 
So I tried what you said and switched from UTF8 to ASCII, making the wunderground cond/temp scripts at the beginning of the post work, but, they only work for the city example that is used in the thread, bournemouth.

Here is the script:

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

You'll have to remove the space after .com (used to remove the blue short link thing)

Whenever I replace bournemouth with cities near me, e.g. york, lancaster, philadelphia, they do not work, and the script prints out: "temperature humidity" without any change.

I'm using snow leopard and Geektool 3.0 RC5

Does anyone know how to get the weather scripts running for all cities?
 
Current Airport Network in Snow Leopard

So I did some toying around and I got this working the way I like it, perhaps someone who is more facile with this stuff can re-write it so it's cleaner, but here it is. I don't know enough about the commands to help troubleshoot if it doesn't work for you, but I figure if it doesn't work now how much worse off will you be trying this?

You need to create a file called airport.sh with any text editor and place it in your home directory

Paste the following into it
Code:
#!/bin/sh
myvar1=`system_profiler SPAirPortDataType | grep -E '(Information:|[:space:]\t)' | grep -E '([:space:][:space:])' | grep -v "Network Preference" | grep -v "Status:" | sed -e 's/            //' | sed -e 's/  //' | sed -e 's/\r//'`
myvar2=`system_profiler SPAirPortDataType | grep -e "Channel:" | awk '{print $2}'`

echo "Airport : $myvar1" 
echo "Channel: $myvar2"

Now you will need to make sure it's executable by typing into terminal
Code:
chmod 755 airport.sh

In geek tool enter
Code:
sh /Users/[COLOR="Red"]yourhomedirectory[/COLOR]/airport.sh

You should wind up with something like this
 

Attachments

  • Screen shot 2009-09-07 at 10.21.43 PM.jpg
    Screen shot 2009-09-07 at 10.21.43 PM.jpg
    14.9 KB · Views: 3,860
Hey, thanks for the code.

Btw, could you add the sunrise/sunset and wind info? And remove the current day info?

Many thanks!

i didnt use lynx i used CURL
no need to install it or anything....just run it once

and heres the code

Code:
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/"

just change it where it says YOURZIPCODE to ur zip code
 
I wanted a little more info in my weather display so I modified it like this
Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=YOURZIPCODE&u=f" | grep -E '(Conditions|F)' | grep -v "<?" | grep -v "<yweather" | grep -v "<a " | grep -E '(title>|Current:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<title>//' -e 's/<\/title>//'

Shows location and update time
 
Awesome!!!
can you post your scripts, wallpaper and how did you get that border on the left side?
I hope I don't ask too much :)
Thank you very much...

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.
 

Attachments

  • IP-iTunes.zip
    4.3 KB · Views: 215
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.