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.
stripsteak It's very funky XD

Maybe I'll give it a go in Applescript but this will do for now.

Thx for sharing! ;-)
 
Not true for me at least. I have my geeklets grouped by function - Date/Time / System Stats / Music / Other. All are up and running simultaneously unless I turn one off.
You are right - I stand corrected. I read somewhere on the net that only 1 group could be displayed at a tim, but I never checked it myself. Now that I created a few groups I see that with ver. 3 that more than 1 group can be active. Sorry for the misinformation.
 
Thanks for that RogersDA, that finally worked for me:

weather2009-12-1607-33-29.jpg
No problem at all - glad to have helped.
 
localize weather

Is there a way to localize the language the weather information are displayed?
I want them in italian, and if i go either on yahoo or http://m.wund.com/global/stations/10866.html with safari, the informations appear in italian, when i use the curl command tho, i receive the site in english.

is there a way to set the language curl "requests"?

Thanks :)
 
Could you be so kind, and explain how? :)

I used this for current condition:

Code:
curl "http://de.weather.yahoo.com/deutschland/niedersachsen/hannover-657169/" |
 grep -E '(yw-cond)' |
 sed -e 's/                        <div id="yw-cond">//' |
 sed -e 's/<\/div>//'

And this for forcast:

Code:
curl "http://de.weather.yahoo.com/deutschland/niedersachsen/hannover-657169/" |
 grep -E '(yw-fcc)' |
 sed -e 's/v><\/div><\/div><\/div><div class="yui-gb"><div class="yui-u first">//'  |
 sed -e 's/<\/div><div class=.*fcc.>//' |

 sed -e 's/<\/div><div class=.yw-fct.>//' |
 sed -e 's/Max:/ /' |
 sed -e 's/°/°C/' |
 sed -e 's/;  \ \  Min:/ \//'  |
 sed -e 's/\°<\/di/°C/' |
 sed -e 's/<div class="yui-gb"><div class="yui-u first">//' |
 

 sed -e 's/Morgen/Morgen: /'  |
 sed -e 's/Heute/Heute: /' |
 sed -e 's/Montag/Montag: /' |
 sed -e 's/Dienstag/Dienstag: /' |
 sed -e 's/Mittwoch/Mittwoch: /' |
 sed -e 's/Donnerstag/Donnerstag: /' |
 sed -e 's/Freitag/Freitag: /' |
 sed -e 's/Samstag/Samstag: /' |
 sed -e 's/Sonntag/Sonntag: /'

If anyone knows how to reduce lines here....feel free to comment =)


This is the result:
Bildschirmfoto%202009-12-17%20um%2010.30.08.png
 
Thank you so much tzippy, yo are a real lifesafer :D

I have one problem with the forecast tho.
Inserting the code you provide, even without changing anything gives me a strange output.
1ftb

And with the strings translated to italian
1ftc


I think that the problem resides within the interpretation of the ° symbol, cause you can see the &#176 after each temperature, and there is a problem with the </di at the end, but i strongly believe that it as the same origin.

I tried to set the enconding to different values in geektool, but the problems still persists...

Some help? :)

Here is the changed code, the original is from tzippy, one post above:

Code:
curl "http://it.weather.yahoo.com/germania/baviera/monaco-di-baviera-676757/" |
 grep -E '(yw-fcc)' |
 sed -e 's/v><\/div><\/div><\/div><div class="yui-gb"><div class="yui-u first">//'  |
 sed -e 's/<\/div><div class=.*fcc.>//' |

 sed -e 's/<\/div><div class=.yw-fct.>//' |
 sed -e 's/Mass:/ /' |
 sed -e 's/°/°C/' |
 sed -e 's/;  \ \  Min:/ \//'  |
 sed -e 's/\°<\/di/°C/' |
 sed -e 's/<div class="yui-gb"><div class="yui-u first">//' |
 

 sed -e 's/Domani/Domani: /'  |
 sed -e 's/Oggi/Oggi: /' |
 sed -e 's/Lunedì/Lunedì: /' |
 sed -e 's/Martedì/Martedì: /' |
 sed -e 's/Mercoledì/Mercoledì: /' |
 sed -e 's/Giovedì/Giovedì: /' |
 sed -e 's/Venerdì/Venerdì: /' |
 sed -e 's/Sabato/Sabato: /' |
 sed -e 's/Domenica/Domenica: /'
 
Ah..I see where the problem is...
The Code in my post, isn't actually the Code I posted (sounds strange, though right =)!
It's been formatted by the forum software somehow....

This:
Code:
 sed -e 's/°/°C/' |

is wrong. You have to replace & # 1 7 6 ; (remove spaces)



This will work for you:
http://dl.getdropbox.com/u/1144075/test.sh.zip
 
Working fine here. Geektool3 and SL...
but after some time my mac starts freezing for a long time, so I have to quit.
Only happens when GeekTool is active
 
Does anyone know, why NerdTool can't display the Degree Character?
I always end up having this "°" when I use a degree character in my scripts.
As you can see in my screenshot above, where i used GeekTool, there is no such problem...
 
nope.... I have no idea why the*both still exist.
NerdTool isn't capable of Asci Escape Characters...that's the only difference I noticed by now...
 
I wanted to let you all in one this. I'm making a guide of all the codes in this thread and it's pretty long so I figure i would ask for/get some help so we could make sure everyone is able to understand geektool.

Also you can't upload a pages file so you don't get to see the pictures.
 

Attachments

  • Geektool.doc
    43 KB · Views: 280
I wanted to let you all in one this. I'm making a guide of all the codes in this thread and it's pretty long so I figure i would ask for/get some help so we could make sure everyone is able to understand geektool.

Also you can't upload a pages file so you don't get to see the pictures.

Archive it first and upload the zip.
 
angle or kern shell text from geektool?

if i have a desktop background photo that is a perspective, and i'd like my geektool shell script to display angled text to follow the line of the perspective, how can i most easily achieve this?

i don't see a built-in way and wonder what options i might have.

i'm guessing possibly have the script write out an image but i don't have a clue how to do that.

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