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.
Big Thank You

I just want to give some props and a shout out to xtacocorex for helping me today with some weather scripts that I was having trouble with. And also with some other scripts in the recent past.

I invited him to a TeamViewer session and allowed him to work through my problems on my computer remotely. He fixed me all up and here is the screen shot to go with it.

Thank you!

Screen capture 1.jpg
 
In case anyone cares, I released a new download version of the Five Day Forecast script to my google code page. Check my signature for the link.

Version 4 fixes two issues:
1 - Issue where the High/Low data wouldn't display after sunset
2 - Issue trying to grab the temperature data with the metric tab

Nice Thanks!!!

Also in case anyone is interested I wanted to get the text for the current moon phase to go along with the xplanet render and made this small shell script to fetch it for me:

#! /bin/bash
cd /tmp
curl "http://www.die.net/moon/" -o "moon.txt" # moon phase html
INPUT=/tmp/moon.txt
phase2=$(awk 'NR==27' "${INPUT}" | awk '{print $1 " " $2}' | tr ',' ' ')
printf "%-5s\n" "$phase2"
rm /tmp/moon.txt
exit 0
 

Attachments

  • Screen Shot 2011-12-30 at 5.43.37 PM.png
    Screen Shot 2011-12-30 at 5.43.37 PM.png
    126 KB · Views: 1,640
I just want to give some props and a shout out to xtacocorex for helping me today with some weather scripts that I was having trouble with. And also with some other scripts in the recent past.

I invited him to a TeamViewer session and allowed him to work through my problems on my computer remotely. He fixed me all up and here is the screen shot to go with it.

Thank you!

Screen capture 1.jpg
New to this forum, and very impressed with xtacocorex and the wealth of shared knowledge :)
 
Command showing in a different language?

I'm using a Macbook Pro (in English) and I want to put a command that shows the usual day of the week and month in German. Is there such a way?
 
Australian Sports Live Scoreboard

This seemed like an almost impossible task, but thanks to some persuasion from activate and reading between the lines (in the html code on www.foxsports.com.au/results) I have figured out how to get the Australians their live sports scores.

Introducing, the Australian Sports Live Scoreboard!

Script can be downloaded from here

The wiki at my google code page defines how to set this up, here is the link. I'm including it below for completeness.

Here are the program options:
Code:
Options:
  -h, --help            show this help message and exit
  -g GROUP, --group=GROUP
                        Groups the scoreboard: sport,league,none
  -s SPORT, --sport=SPORT
                        Specify the sport to display: football,cricket,rugby
  -o ORIENTATION, --orientation=ORIENTATION
                        Orientation of the scoreboard: horizontal/vertical
  -d, --debug           Enable debugging

Here are some sample setups:

Display Football scores, grouped by league, horizontally
Code:
python /path/to/script/fs_au_grabv2.py -s football -g league -o horizontal

Display Cricket scores, with no grouping, vertically
Code:
python /path/to/script/fs_au_grabv2.py -s cricket -g none -o vertical

Display All sports, grouped by league, horizontally
Code:
python /path/to/script/fs_au_grabv2.py -g league -o horizontal

Notes:
  1. Use a Monospace font
  2. Currently tested to display Football and Cricket scores, Rugby is off season I believe

I've included a screenshot of the script in action, displaying football scores, sorted by league, horizontally. It is a crappy screenshot, since I'm short on real estate with my other geeklets. You'll notice that I can't get all of the data to display on my 13" MacBook (max resolution is 1280x800). I'm sure it'll work just fine for you all that have bigger monitors with higher resolutions.

If you run into issues with the script not displaying scores:
Do the following for me in Terminal.app. Make sure the command options you specify in the geeklet match up with the options you set in the terminal window (replace [your options here] with the options you set in Geektools.) This will create a debug log that you can then send to me.
Code:
python /path/to/script/fs_au_grabv2.py [your options here] -d > ~/fs_au_debuglog.txt

For all of us in the USA, I'm trying to figure out a solution for our live scoreboard. The one from Fox Sports is in Flash for us, so I need another avenue of approach to scrape data. If you have any suggestions, please let me know in a PM.
 

Attachments

  • Screen shot 2011-12-31 at 09.55.40 .jpg
    Screen shot 2011-12-31 at 09.55.40 .jpg
    532.3 KB · Views: 352
I'm using a Macbook Pro (in English) and I want to put a command that shows the usual day of the week and month in German. Is there such a way?

It is possible, you could pipe the date info to the sed command and then switch the English words with the appropriate German words.

I quickly thought about a Python script that could do this on the fly, just specifying the language to display, but the internationalization class is very complex and I wouldn't know where to begin with that.

I think there are some scripts early on in the thread that do part of what you want to do though, might be worthwhile to read through all the pages. (I know it sucks, but you might find a useful script along the way, just steer clear of the ones that require you to use lynx)
 
It is possible, you could pipe the date info to the sed command and then switch the English words with the appropriate German words.

I quickly thought about a Python script that could do this on the fly, just specifying the language to display, but the internationalization class is very complex and I wouldn't know where to begin with that.

I think there are some scripts early on in the thread that do part of what you want to do though, might be worthwhile to read through all the pages. (I know it sucks, but you might find a useful script along the way, just steer clear of the ones that require you to use lynx)

Nevermind I figured it out!

24e6dg8.jpg
 
Last edited by a moderator:
Nevermind I figured it out!

Sweet deal, nice background!

----------

hey guys, i'm newbie,can you help me, i interested in that geek tool script, can you mention how to make all the things come like that? i like the clock and the iTunes playlist :D

All of the date/time code can be found in the thread.

There are multiple weather scripts throughout the thread too, but I have a couple written in python that can be found by clicking the link in my signature.

The iTunes stuff is in the thread too, just have to go find it.

The 5 day weather thing in the screenshot you linked is a Yahoo Widget.

I don't know what the calendar is, but it has been mentioned in the thread (not in the early posts).
 
This seemed like an almost impossible task, but thanks to some persuasion from activate and reading between the lines (in the html code on www.foxsports.com.au/results) I have figured out how to get the Australians their live sports scores.

Ok guys & gals, I have my first version of a geek tool desktop up and running. Have a look at it here http://www.youtube.com/watch?v=Crr4HXkEVCg .
I can't put it up here because it isn't an image. My aim with geek tool is to integrate it with htpc.

1. Please ignore the "Ishowu" watermark.
2. Primary applications running are, Eye tv, Geektool & Growl.
3. Geeklets are recycling at the bottom (Mail, Skype & Cricket scores) and stationary at the top (Fox sports).
4 The audio is deliberately not recorded. It is working.
5. There is a superimposed window over some information.

Now I have to make the gui a little neater. Thanks :)
 
Date/Time Countdown

Introducing, the Python Date/Time Countdown Timer Thing!

Script can be downloaded from here

The wiki at my google code page defines how to set this up, here is the link. I'm including it below for completeness.

Here are the program options:
Code:
Options:
  -h, --help            show this help message and exit
  -d, --debug           Enable debugging
  -s, --show_microseconds
                        Show the microseconds in the countdown output,
                        calculation may be incorrect for the alternate
                        printing option
  -p PRINTFORMAT, --printformat=PRINTFORMAT
                        Countdown display format: normal, alternate
  -t TITLE, --title=TITLE
                        Countdown Title, add your string here

Here are some sample setups:

Time to the end of the world (according to the Mayans) with a title and the normal printout
Code:
python /path/to/script/date_countdownv1.py 12212012T06:11:00.0 -t "Time until the end of the World" -p normal

Time until the end of March 2012 with the alternate printout, no title, and displaying the microseconds
Code:
python /path/to/script/date_countdownv1.py 03312012T23:59:59.0 -p alternate -s

Notes:
  1. Microsecond calculation for the alternate display may be incorrect

IMPORTANT:
This is important, the date and time must be in the following format to work
MMDDYYYYThh:mm:ss.microseconds EXAMPLE -> 12212012T06:11:00.0 (DECEMBER 21, 2012 AT 6:11 AM)

If you run into issues with the script not displaying the countdown properly:
Do the following for me in Terminal.app. Make sure the command options you specify in the geeklet match up with the options you set in the terminal window (replace [your options here] with the options you set in Geektools.) This will create a debug log that you can then send to me.
Code:
python /path/to/script/date_countdownv1.py [your options here] -d > ~/date_countdown_debuglog.txt
 
It wouldn't be hard, but I haven't found images of Nixie bulbs that can be used without permission. I'm not going to deal with breaking copyright.
I'll probably just end up buying one of those clocks, shooting my own pics of it, etc. I've loved Nixie clocks since I first laid eyes on them... I should have one by now. :)
 
Sweet deal, nice background!

----------



All of the date/time code can be found in the thread.

There are multiple weather scripts throughout the thread too, but I have a couple written in python that can be found by clicking the link in my signature.

The iTunes stuff is in the thread too, just have to go find it.

The 5 day weather thing in the screenshot you linked is a Yahoo Widget.

I don't know what the calendar is, but it has been mentioned in the thread (not in the early posts).
wow great, i can do that weather things, but i still don't find iTunes, is anybody know which page is it? T__T
how about the clock?
 
GeekTool/NerdTool results

Hello everyone,
I have spent the last few weeks combing through this thread (almost all of the pages...) and have been having some fun with my desktop. I also like to play around in photoshop and have modified a few things for these desktops. Here are my two results. The winter was my first and just kept everything simple. The sheep is my current desktop and am working on making some animated weather icons with a db of the icons and an AppleScript to set the correct one. My iTunes scripts display the current track or, if paused or closed, display iTunes not playing. Let me know what you think of these and if you have any ideas. I can provide any of the scripts that you see.
 

Attachments

  • Screen Shot 2012-01-03 at 12.58.07 PM.jpg
    Screen Shot 2012-01-03 at 12.58.07 PM.jpg
    176.6 KB · Views: 210
  • Screen Shot 2012-01-03 at 12.59.24 PM.jpg
    Screen Shot 2012-01-03 at 12.59.24 PM.jpg
    188 KB · Views: 181
  • Screen Shot 2011-12-16 at 10.53.17 AM.jpg
    Screen Shot 2011-12-16 at 10.53.17 AM.jpg
    140.4 KB · Views: 188
wow great, i can do that weather things, but i still don't find iTunes, is anybody know which page is it? T__T
how about the clock?

A search of the thread pulled out 10 pages of posts related to iTunes...
But, here is one that I posted a while ago: https://forums.macrumors.com/posts/13327592/

I didn't realize the design in the center of that image was a clock. With some searching, 4 posts down from the link you provided earlier, has the answer: it's a background, not something made with Geektool. https://forums.macrumors.com/posts/12258962/
 
Today was the first day I've ever used Geektool and I managed to create this! It looks SO awesome! This shall be my desktop forever.
 

Attachments

  • screen-capture.jpg
    screen-capture.jpg
    99.8 KB · Views: 234
Here's my updated desktop with some new additions, I think I've finished it now. Geektool is so awesome I can't believe I didn't know about this before!
 

Attachments

  • screen-capture copy.jpg
    screen-capture copy.jpg
    107.2 KB · Views: 257
Hello everyone,
I have spent the last few weeks combing through this thread (almost all of the pages...) and have been having some fun with my desktop. I also like to play around in photoshop and have modified a few things for these desktops. Here are my two results. The winter was my first and just kept everything simple. The sheep is my current desktop and am working on making some animated weather icons with a db of the icons and an AppleScript to set the correct one. My iTunes scripts display the current track or, if paused or closed, display iTunes not playing. Let me know what you think of these and if you have any ideas. I can provide any of the scripts that you see.

Hi,

can you send me the script for the snow thing for geektool thanks.
 
Hi,

can you send me the script for the snow thing for geektool thanks.

What part? There really isn't any fancy script on the winter one. To make the clock and day appear behind objects, I took that section of the background into photoshop, erased the background, and then put in on top of the clock.
 
Weather Based on IP

I know there are a handful of Geeklets out there that find your current weather based on your IP, but I was wondering if it would be possible if someone could help me write one that grabs your zip code from this site: http://ipfingerprints.com/geolocation.php as I have found it to be very accurate in finding my city's zip as opposed to sites other scripts grab from. Thank you very much in advance!
 
I know there are a handful of Geeklets out there that find your current weather based on your IP, but I was wondering if it would be possible if someone could help me write one that grabs your zip code from this site: http://ipfingerprints.com/geolocation.php as I have found it to be very accurate in finding my city's zip as opposed to sites other scripts grab from. Thank you very much in advance!

I'll keep that one in mind when I re-do all the weather stuff I've done. I need to get the chance of precipitation for parsed from the Weather Channel for ren7on.

I'm thinking of an all inclusive, multiple site capable, weather center. It will grab your ip from the site that I currently use or the one you just provided. This could be the weather script to end all weather scripts.

Now I just need time to plan it out and start implementing.
 
All Caps

Hello,

i just found out how cool Geeltool is and have not been able to stay away from it...

I do have a rather pressing issue...

Is there a quick fix, of any fix for that matter, to get my font to print in CAPS?

I have a simple desktop and would like to have my date spelled out in caps. this is what i have over 2 geeklets.


date '+%A'

date '+%B %e'


also i would like to do the same with my weather... split the conditions and actual temperature to different lines, and have it all in caps...

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

it would be great if someone could help me out with this...

thanks a million.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.