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.
Quote of the day?

Anyone have a script OTHER THAN dailyzen, like the encarta one (that doesn't work anymore because encarta went down??)? The dailyzen ones typically have funky formatting and don't look right on my computer.

Thanks!
 
check out my geektool desktop.. i'll post the scripts if you guys want any, but i got most from this thread.

 
My February geektool script:::I decided to keep the black icons except for finder so it can give contrast to the lite backround. If you guys want to know how to put "jan" instead of "january" put the month code in lower case. By the way, I like the minimal look.


Feb3.png

What font did you use on the day and time?
 
is anyone else having problems right-justifying text in geektool, mine randomly snaps back to left-justify
 
Make something editable?

I highly doubt you can do this, but if somebody knows a way to make input-able text on geektool, I'd love to know how. For instance, for changing my MAC address on the fly.

In exchange, I bring you a quite simple script for those who have lynx installed. It will show you your current weather, city, locations, and a couple other things without having to input your city code or zip code. Mildly useful for lazy people like me, and for people who travel. I am using SL on 3.0.

Code:
lynx -dump http://geoip.dmwtechnologies.com/ > ~/FILENAME
^ Set THAT to update the most. I grouped this initial update with my weather, since I want that updating most.
(eg: lynx -dump http://geoip.dmwtechnologies.com/ > ~/FILENAME; cat ~/FILENAME | grep "Current Weather:" | awk '{print $3 " " $4 " " $5 " " $6 " " $7 " " $8}')

Now that we've dumped it, we can do a bunch.


Weather!
Code:
cat ~/FILENAME | grep "Current Weather:" | awk '{print $3 " " $4 " " $5 " " $6 " " $7 " " $8}'

City!
Code:
cat ~/FILENAME | grep "City:" | awk '{print $2 " " $3 " " $4 " " $5}'

External IP!
Code:
cat ~/FILENAME | grep 'IP Address: [1-9]' | awk '{print $3}'

Even lat and longitude!
Code:
cat ~/FILENAME | grep -E "*tude*" | tail -n 2

And more. You don't even have to change the title of the file, you can keep FILENAME if you so choose :)

So back to my question. Do any of you find it feasible to make editable text?
 
Hey guys,

Simple question. Does anyone know the shell command for the Hour without a zero in it?

for example for 05:00 I want it to show 5:00 I just need the hour one. oh and it can't be in 24h format. Has to be 12h.

Any help? :)
 
How do I round up the numbers in this simple script?

Code:
ps -amcxo "rss %mem command" | head -7 | tail -6 | awk '{print $1/1024 "Mb " $2,$3}'

Thanks!
 
Last.fm + Geektools

I am having a little trouble with my last.fm script working seems that i can display the songs from my recently played list but instead of having played times its showing random numbers. Sry if this is random just asking if i can get some help :)

Last.fm Code:

curl -s ws.audioscrobbler.com/1.0/user/USERNAME/recenttracks.txt

Example:

2j5ig7n.jpg
 
I am having a little trouble with my last.fm script working seems that i can display the songs from my recently played list but instead of having played times its showing random numbers. Sry if this is random just asking if i can get some help :)
Sorry didnt realize the image was huge :(
 
okay, I just recently acquired GeekTool 3, and I am completely inept. On Yahoo, I cannot find my city code, and every time I try to download Lynx, it says that the link is broken.:mad:

I'm just looking for weather/temperature updates and pictures in Fahrenheit for Bethel, Ct. I've already tried the suggestions on http://macthemes.net/forum/viewtopic.php?id=16798740&p=6 and http://macthemes.net/forum/viewtopic.php?id=16798740&p=1 and http://thememymac.com/2009/geektool/geektool-all-the-scripts-i-could-find-explained-for-beginners/ , none of them were any help at all. Can I get any help over here?!:confused:
 
okay, I just recently acquired GeekTool 3, and I am completely inept. On Yahoo, I cannot find my city code, and every time I try to download Lynx, it says that the link is broken.:mad:

I'm just looking for weather/temperature updates and pictures in Fahrenheit for Bethel, Ct. I've already tried the suggestions on http://macthemes.net/forum/viewtopic.php?id=16798740&p=6 and http://macthemes.net/forum/viewtopic.php?id=16798740&p=1 and http://thememymac.com/2009/geektool/geektool-all-the-scripts-i-could-find-explained-for-beginners/ , none of them were any help at all. Can I get any help over here?!:confused:

I don't think using weather with Lynx + Weather Underground works anymore
Most use the curl + Yahoo weather script

Try this
Should give you the conditions and temp
Edit: corrected the script

Code:
curl "http://weather.yahooapis.com/forecastrss?p=06801&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>//'

If you want the image grab
You need two separate entries

This will be your image grab

First
Code:
curl --silent "http://weather.yahoo.com/united-states/connecticut/bethel-2363388" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /var/tmp/weather_image.png\

This grabs the image, but you won't see the output

Next
Code:
file://localhost/var/tmp/weather_image.png

That will paste the image, but it needs to be a picture shell


Woof, Woof - Dawg
pawprint.gif
 
Weather for specific location:
Vertically listed as: City, State; Current Conditions and Temp; Forecast in one whole section:
echo "Kailua-Kona, HI"
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=96734&u=f" | grep -e "Current Conditions" -A 1 | tail -n 1 | sed -e 's/<BR \/>//'
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=96734&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/"

This worked for me.... i changed city to Atlanta and changed your zip code to mine. Thanks for posting
 
I don't think using weather with Lynx + Weather Underground works anymore
Most use the curl + Yahoo weather script

Try this
Should give you the conditions and temp
Edit: corrected the script

Code:
curl "http://weather.yahooapis.com/forecastrss?p=06801&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>//'

If you want the image grab
You need two separate entries

This will be your image grab

First
Code:
curl --silent "http://weather.yahoo.com/united-states/connecticut/bethel-2363388" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /var/tmp/weather_image.png\

This grabs the image, but you won't see the output

Next
Code:
file://localhost/var/tmp/weather_image.png

That will paste the image, but it needs to be a picture shell


Woof, Woof - Dawg
pawprint.gif


Many thanks, Dawg; I owe much to you. Any chance you might be able to help me once more?

I'm now having trouble getting iTunes to work with GeekTool, I cannot, for the life of me, figure out how to do it. I try running the script, but after that I draw a blank. HALP!
 
Many thanks, Dawg; I owe much to you. Any chance you might be able to help me once more?

I'm now having trouble getting iTunes to work with GeekTool, I cannot, for the life of me, figure out how to do it. I try running the script, but after that I draw a blank. HALP!

One word... Bowtie
Much easier than having to mess with the Geektool scripts

Woof, Woof - Dawg
pawprint.gif
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.