I dont understand what im supposed to do with the code in the OP for example, the temperature:
I created a "new entry", made it a "shell", in the "command" box, i plunked in:
lynx -dump http://printer.wunderground.com/cgi-...90210|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'
Also, i have lynx installed on my computer.
What else am I supposed to do?
Hi
I've spent several hours trying to get the weather to work using geektool. I have two main problems:
- I'm unable to get the weather in degrees celsius (i keep getting fahrenheit)
code = lynx -dump http://printer.wunderground.com/auto/printer/global/stations/94868|head -n 7|tail -n 1|awk '{print $2 $3}'
- and i'm unable to get the conditions at all
I have to manually start my script too, but then it stays on the album art work that it was on when i ran the script. In other words it is not rolling to the next artwork. Anyone have any ideas how I can fix this? Cheers!Ok. Here is what I like after some tweeks.
I finally got the iTunes script to display the art and current info. Weird thing is I have to open script editor and kick off the artwork script to get the album art to show. I shut script editor down and geektool takes over. It runs smooth after that.
Using Modern No. 20 font for date and weather and using Helvetica Neu for the album info.
![]()
Thanks for the help zzzzzzzzz, the conditions code is working perfectly and the temp code is grabbing the correct temperature (in degrees celsius) from the site, but is not displaying the degrees celsius symbol.
Should I give up and just add the degrees celsius symbol onto the wallpaper using gimp or does anyone have any ideas?
Thanks
i photographed one of my notebooks
here's the link to my photo:
http://farm4.static.flickr.com/3393/3340332760_32e0989999_o.jpg
i keep having this problem with the weather script on the top of the 11th page. it works fine but instead of just the weather i get "51.4*F Temperaturesremaining" and idk what i need to do to get rid of that.
any ideas. thanks.
Hmm, how do you get the time to display (12-hour clock) without the 0 at the beginning?
I've got:
date +%I:%M
But this shows the 0 for times 01-09.
Thanks again for you help zzzzzzzz - i followed you idea and have ended up with this:
How would you get it to display a current currency exchange rate?
I'd need someone who's experienced with sed to come up with the script, but you can get the results to use from this link:
http://www.google.com/finance/converter?a=1&from=USD&to=EUR
Substitute the currency codes you want to go to and from and the value (a=1 is the denomination to compare), and get sed to strip the extraneous data from the page, and you should be good to go. What I have so far (not working, shows nothing, so help would be great):
curl http://www.google.com/finance/converter?a=1&from=USD&to=EUR | sed -n '<span class=bld>' | sed -e 's/"%nbsp;"/ /' | sed -e 's/"<span class=bld>"//' | sed 's/"</span>"//
I based that on the weather scripts, but I probably messed up the syntax in the sed command.
jW
why not use delimiters in applescript and set x=info you want and then return x
and then in geektool use script and osascript...?
Thanks again for you help zzzzzzzz - i followed you idea and have ended up with this:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=29526|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'
59.0?F Tardis:~ pete$