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.
Michigan State Geek Tool

Here's a sample of my current set up. Thanks for all the scripts!


5235453353_1e15877def.jpg

5236043968_6df6acacf4.jpg
*

http://player.vimeo.com/video/17459093

images sreen captured from www.coachdantonio.com
set to refresh every 5sec
Font: Anklepants
http://www.1001freefonts.com/Anklepants.php


All scripts found somewhere in this forum.

Someone should compile a wiki, or more updated/organized site!
 
Here's my geektool desktop.. :D

geektool.png


Note: White lines and Apple logo are added on using GeekTool.. Apple logo is juz a png file. Figured it'd be way easier that way if I needed to duplicate Apples around or juz move it. :p
 
New user, rss problems

Hey all. I'm a new GeekTool user and have been going crazy will all the cool things to put on my desktop using it. However, I've run into a snag when it came to putting my facebook news feed on my desktop.

I have an RSS feed for my FB news feed, and used the news shell found at
http://code.google.com/p/sh-rss-feed/downloads/list,

then used the shell script:
sh ~/Documents/code/news.sh -10

I input all the right url's into the news shell and everything, but the formatting is really weird when it shows up on my desktop. Not sure what I did wrong to make it look like this:

picture1ufk.jpg
 
There has got to be a more elegant solution than the news.sh script. I can only get about a third of the RSS feeds that I use to work, and most of those suffer the same time of HTML code problems mentioned above.

Plus, I'd really love some formatting options....

I've tried getting my facebook feed redirected to an xml file, but that didn't work. If it did, I would have been able to make a nifty Python script to parse it out.
 
thanks, it works with me but the number doesn't change so I tried to make it refresh every second but nothing happen it still the same number! :confused:
Thanks anyway:)
 
Weather for 3 days or more

Hi everyone,

I looking for a little help, I trying to put on my screen the weather for 3 days or more with picture and C°, I have read all the topic and at this time nothing..
Do you think its possible to have a script for that ?

I just have this script( below) but I t doesn't work:
prev='curl –silent " http://weather.yahooapis.com/forecastrss?p=FRXX0001&u=c " ' | grep -e ' Forecast: ' -A 2 | tail -n 1 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed ' s/\(.*\)\.\ \(.*\)/\1\?\2/ ' | tr ' ? ' ' ' | sed ' s/High:/H :/g ' | sed ' s/Low:/L :/g ''
day='echo $prev | awk '{print $1}''
if [ $day == "Mon" ]
then
dayfr= 'Monday '
else
if [ $day == "Tue" ]
then
dayfr= 'Tuesday '
else
if [ $day == "Wed" ]
then
dayfr= 'Wenesday '
else
if [ $day == "Thu" ]
then
dayfr= 'Thursday '
else
if [ $day == "Fri" ]
then
dayfr= 'Friday '
else
if [ $day == "Sat" ]
then
dayfr= 'Saturday '
else
if [ $day == "Sun" ]
then
dayfr= 'Sunday '
fi
fi
fi
fi
fi
fi
fi
echo $dayfr | tr '[:lower:]' '[:upper:]'


Thank a lot for your help:):D

Bb
 
thanks, it works with me but the number doesn't change so I tried to make it refresh every second but nothing happen it still the same number! :confused:
Thanks anyway:)

Copy and paste the entire script that you're trying and I'll see if I can see any issues and I'll try it on my machine.

Edit: I tried the following pasted into a GeekTool shell with the refresh every set to 1 and it worked.
Code:
THEN=`date -v10y -v9m -v9d -v0H -v0M -v0S +%s`
SECS=$(($(date +%s)-$THEN))
echo "Days: "$(($SECS/3600/24))
echo "Hours: "$(($SECS/3600))
echo "Minutes: "$(($SECS/60))
echo "Seconds: "$(($SECS))
 
Last edited:
Hi everyone,

I looking for a little help, I trying to put on my screen the weather for 3 days or more with picture and C°, I have read all the topic and at this time nothing..
Do you think its possible to have a script for that ?

I just have this script( below) but I t doesn't work:
prev='curl –silent " http://weather.yahooapis.com/forecastrss?p=FRXX0001&u=c " ' | grep -e ' Forecast: ' -A 2 | tail -n 1 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed ' s/\(.*\)\.\ \(.*\)/\1\?\2/ ' | tr ' ? ' ' ' | sed ' s/High:/H :/g ' | sed ' s/Low:/L :/g ''
day='echo $prev | awk '{print $1}''
if [ $day == "Mon" ]
then
dayfr= 'Monday '
else
if [ $day == "Tue" ]
then
dayfr= 'Tuesday '
else
if [ $day == "Wed" ]
then
dayfr= 'Wenesday '
else
if [ $day == "Thu" ]
then
dayfr= 'Thursday '
else
if [ $day == "Fri" ]
then
dayfr= 'Friday '
else
if [ $day == "Sat" ]
then
dayfr= 'Saturday '
else
if [ $day == "Sun" ]
then
dayfr= 'Sunday '
fi
fi
fi
fi
fi
fi
fi
echo $dayfr | tr '[:lower:]' '[:upper:]'


Thank a lot for your help:):D

Bb

For my forecast, I use the script by Thomas Upton found here: http://www.thomasupton.com/blog/?p=202. One thing to note is that Yahoo only forecasts two days out, that's straight from Thomas' code and matches what I've seen in the Yahoo RSS feed that I've pulled down.

I've modified an older version of his python source on my end to include an option to output the current weather code via a command line argument. I then use that to feed into a script that sets the weather icon on my desktop. The weather icons I used were pulled from the yweather yahoo widget and inverted in color so they were pure white.

In all, I have 3 scripts doing weather related things on my desktop that that feed 2 geeklets with the third geeklet displaying an image. The image code is similar to the other code contained in this thread for displaying the weather condition picture on the desktop.

If you don't use Thomas' python code, I have a python code on here that is similar to his, but doesn't do forecasting.

Here is a link to my current desktop.
 
Copy and paste the entire script that you're trying and I'll see if I can see any issues and I'll try it on my machine.

Edit: I tried the following pasted into a GeekTool shell with the refresh every set to 1 and it worked.
Code:
THEN=`date -v10y -v9m -v9d -v0H -v0M -v0S +%s`
SECS=$(($(date +%s)-$THEN))
echo "Days: "$(($SECS/3600/24))
echo "Hours: "$(($SECS/3600))
echo "Minutes: "$(($SECS/60))
echo "Seconds: "$(($SECS))

:D THANKS :D IT FINALLY WORKS!! :eek: you are the best :)
 
After a bit of searching I found you can use the following within applescript to refresh individual or a group of geeklets


property geekletTemp : "A0603E0A-0BD1-4D4B-B279-6211F2AFA318"
property geekletLocation : "23924985-A240-48A7-BE27-3B76F2BB2477"

tell application "GeekTool"
tell geeklet id geekletTemp
refresh
end tell
tell geeklet id geekletLocation
refresh
end tell
end tell

A geeklet has an ID at the bottom of the properties pane, you can copy it to clipboard, you can then set up a geeklet that calls the applescript at a predetermined time.

Apologies if this has been posted before, I just stumbled across it and found it really neat for refreshing a group of geeklets in one go and found it useful.

Thought I would share ;)
 
After a bit of searching I found you can use the following within applescript to refresh individual or a group of geeklets


property geekletTemp : "A0603E0A-0BD1-4D4B-B279-6211F2AFA318"
property geekletLocation : "23924985-A240-48A7-BE27-3B76F2BB2477"

tell application "GeekTool"
tell geeklet id geekletTemp
refresh
end tell
tell geeklet id geekletLocation
refresh
end tell
end tell

A geeklet has an ID at the bottom of the properties pane, you can copy it to clipboard, you can then set up a geeklet that calls the applescript at a predetermined time.

Apologies if this has been posted before, I just stumbled across it and found it really neat for refreshing a group of geeklets in one go and found it useful.

Thought I would share ;)

really cool. good thing you posted it because i dont think its in this thread! thanks! :D
oh and to get the ID quickly, right click and copy.

edit: and you just gave me the opportunity to do something I've been thinking about not too long ago... instead of putting a refresh rate to every single geeklet you have and slowing your computer down, what you can do is use Quicksilver (free, just google it if you dont already have it...) to refresh them with a hotkey.
 
Last edited:
my setup

Hi,

Its been a while now...
Here is my geektool setup, as you'll see there ain't much but I'd like to keep it simple as is... Though I discovered some new stuff that I'll try out.
And offcourse more geeklets are following with the belonging screenshots

At this setup, there is just the time written in words.
Beneath the time is my bowtie theme. I modified theme "Geeky"

If interested than I'll post it up here and at bowtie offcourse ;)

greetz
 

Attachments

  • Screen shot 2010-12-21 at 19.16.29.jpg
    Screen shot 2010-12-21 at 19.16.29.jpg
    558.8 KB · Views: 545
open it in preview > save as jpeg > use the slider and save, thats it ;)

So far have found no option to open in preview.....always opens in ColorSync....Let's try this....looks like that took....Thanks!
 

Attachments

  • Desk.jpg
    Desk.jpg
    466.6 KB · Views: 150
Last edited:
Juste my screen

If someone need to have some script like me there is no pb :p
I looking again for the weather with 3 days

Have fun for Xmas
 

Attachments

  • My Screen.jpg
    My Screen.jpg
    774.8 KB · Views: 466
If someone need to have some script like me there is no pb :p
I looking again for the weather with 3 days

Have fun for Xmas

un conseil: pour ton geeklet iphone: change le "output encoding". comme ca, tu vas avoir toutes les apostrophes etc.

i just told him to change his output encoding so that his iphone section didnt have all all these symbols/numbers.

anyway to get your time script? but for today's date instead? :)
 
un conseil: pour ton geeklet iphone: change le "output encoding". comme ca, tu vas avoir toutes les apostrophes etc.

i just told him to change his output encoding so that his iphone section didnt have all all these symbols/numbers.


anyway to get your time script? but for today's date instead? :)

This is the geeklet, could you tell me where is wrong code thanks

URL="http://www.appletouch.fr/feed/"
maxLength="800"
start="2"
end="10"

curl --silent "$URL" |
sed -e :a -e '$!N;s/\n//;ta' |
sed -e 's/<title>/\
<title>/g' |
sed -e 's/<\/title>/<\/title>\
/g' |
sed -e 's/<description>/\
<description>/g' |
sed -e 's/<\/description>/<\/description>\
/g' |
grep -E '(title>|description>)' |
sed -n "$start,$"'p' |
sed -e 's/<title>//' |
sed -e 's/<\/title>//' |
sed -e 's/<description>/ /' |
sed -e 's/<\/description>//' |
sed -e 's/<!\[CDATA\[//g' |
sed -e 's/\]\]>//g' |
sed -e 's/</</g' |
sed -e 's/>/>/g' |
sed -e 's/<[^>]*>//g' |
cut -c 1-$maxLength |
head -$end |
sed G |
fmt
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.