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.
Hi,
i think this should do the trick.
Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=22903&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed -E '2n;s/.+\-[ ](.+)\..+:[ ]([0-9]+).+:[ ]([0-9]+)/Today: \1, \2 | \3/' | sed -E '1n;s/[ ]\-[ ](.+)\..+:[ ]([0-9]+).+:[ ]([0-9]+)/\: \1, \2 | \3/'
Let me know

extra info: the '2n;' makes sure line 2 is not processed. The same goes for the 1n;

Awesome! Exactly what I wanted.
Thanks a lot!
 
I'm trying the .sh file but I'm not getting it to run. tried both osascript (which i didn't think was right) and cat

/user/location/weather.sh is what i did.

Not osascript nor cat.
Open Terminal and type:
Code:
cd /user/location
chmod u+x weather.sh
./weather.sh

should work...

to use in Geektool just put
Code:
/user/location/weather.sh
as the command
 
Not osascript nor cat.
Open Terminal and type:
Code:
cd /user/location
chmod u+x weather.sh
./weather.sh

should work...

to use in Geektool just put
Code:
/user/location/weather.sh
as the command

got the results just fine in terminal but it's not working in Geektool =\
 
screenshot20091027at927.jpg


same version
 
I have spent the last 4 hours reading through this thread, and trying out my own.

I don't remember what page this was on, but this is what i did..

open up Applescript (Applications/Utilities/AppleScript)
paste this in there.

Run it, and save as iTunesInfo.scpt . You have to MAKE a folder called GeektoolScripts and place the script you just made into that folder.

The folder "GeektoolScripts" goes into /Users/Documents/

in Geektool, run a shell and type in
osascript ~/Documents/GeektoolScripts/iTunesInfo.scpt

It will look like this

Can't get more simple than that:)

One thing that I simply cannot find. I would like maybe the NBA scores or something. I saw someone do one for MLB. How would i go about doing this?
I found something (in my massive searches) that Panic! made (away back when) called WebSkin Desktop, or something like that, that essentially put on a bottom line effect with all the scores, but i am looking for something with Geektools. I would like to write my own, just don't know where to start...

Thanks for ANY info Leading to the production of this question:) :) !

Wallpaper please? :)
 
screenshot20091027at927.jpg


same version

Hi, look like your path is wrong

The '~' in your terminal means your home folder, which as an absolute path of
Code:
/Users/swim2383/
(assuming your username is swim2383)

If you put the weather script inside a scripts folder in your home folder, then you should use:
Code:
/Users/swim2383/scripts/weather2.sh

And when you say it works..it actually doesn't because if you put exactly what's on your Geektool command in Terminal it wont work. :p

Hope it helps
 
hi there!

can someone tell me how to display Applications that have out or ingoing network activity? listing the process that most recently accessed the network on top?
little snitch has a floating window that does that, but geektool would be much nicer!
thanks
 
Hi, look like your path is wrong

The '~' in your terminal means your home folder, which as an absolute path of
Code:
/Users/swim2383/
(assuming your username is swim2383)

If you put the weather script inside a scripts folder in your home folder, then you should use:
Code:
/Users/swim2383/scripts/weather2.sh

And when you say it works..it actually doesn't because if you put exactly what's on your Geektool command in Terminal it wont work. :p

Hope it helps

LOL, Thanks digital. I forget "users" almost every time.

edit: Being able to change the colors in one box it pretty cool.
 
Here's what I've got now digital.....

I'm going to spend sometime learning some unix so I can play with mixing the colors up down the road.

screenshot20091028at122.jpg
 
hi there!

can someone tell me how to display Applications that have out or ingoing network activity? listing the process that most recently accessed the network on top?
little snitch has a floating window that does that, but geektool would be much nicer!
thanks

anyone?
 
Hmm.. Just got a Mac not to long again, just downloaded this Geektool Scripts.

I'm wondering what the code is to show what Artist/Song/Etc to show up on your background is?!


Much help would be appreciated!
 
Hmm.. Just got a Mac not to long again, just downloaded this Geektool Scripts.

I'm wondering what the code is to show what Artist/Song/Etc to show up on your background is?!


Much help would be appreciated!

I just reworked my script a little so I only have one now for iTunes thanks to you asking and me wanting to make it simple for people to implement.

Download the attached .zip file. Open it up. Inside are the script and the exported Geeklet. Move the script to wherever you want (remember where!). Next double-click the Geeklet to open it in Geektool.

All you should have to do is edit the Command box with your own path from:

osascript /Users/brian/Documents/Customization/GeekTool/iTunesInfo.scpt

to

osascript /Users/YOU/where/it/is/iTunesInfo.scpt


This script will show the following info:
Song
Artist

Lyrics


*** iTunes does NOT need to be running for this to work. A big plus in my book!

*** Also, when iTunes is not open, NOTHING is showing. Another plus in my book.
 

Attachments

  • Archive.zip
    7.1 KB · Views: 193
I just reworked my script a little so I only have one now for iTunes thanks to you asking and me wanting to make it simple for people to implement.

Download the attached .zip file. Open it up. Inside are the script and the exported Geeklet. Move the script to wherever you want (remember where!). Next double-click the Geeklet to open it in Geektool.

All you should have to do is edit the Command box with your own path from:

osascript /Users/brian/Documents/Customization/GeekTool/iTunesInfo.scpt

to

osascript /Users/YOU/where/it/is/iTunesInfo.scpt


This script will show the following info:
Song
Artist

Lyrics


*** iTunes does NOT need to be running for this to work. A big plus in my book!


That's awesome, thanks for doing that. Do you display cover at on your system as well?
 
So I've started adding Geektools to my desktop and was annoyed that it stopped sleeping when I wasn't using it. On my laptop I didn't care because I simply close it when I'm done using it.

Found this tip on MacOSXhints that will allow your computer to sleep while still having Geektools available.

Hope someone else finds this helpful.
 
Hi guys,

just want to share some scripts I've been creating/modifying.
- get GMail unread emails
- get GReader unread news
- get latest tweets
- highlight keywords from any output (for example from any of the scripts above) based on a list of words from a file - usefull if you're expecting some information to pop up on GReader news ... let's say ... a new movie that's now available to download (legally of course)

(check them here http://dl.getdropbox.com/u/6551/ss1.png)

Not all were created from scratch by me so, kudos for the people who did them :)

Open the individual scripts and change USERNAME and PASSWORD for your actual username and password for these services.
Also replace the workDir with the actual directory where you put these scripts.

The allInfo.sh script runs them all (so you need only to add this one to GT).

Any questions are welcome!

Hope you find them usefull
 

Attachments

  • GTScripts.zip
    4.1 KB · Views: 282
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.