Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Show a one-line weather forecast on the desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Show a one-line weather forecast on the desktop
Authored by: loren_ryter on Jan 03, '10 08:34:48AM
that printer. URL no longer works it seems (maybe just temporary but...) This mobile link works instead ok:
/sw/bin/lynx -dump -width 120 | ~/bin/geektool/weathergeek
However I have a perl question... In the perl script above, how can the part that erases "leading spaces and parenthetical values" be modified so that it also kills everything after " / " (space slash space) -- that is all the metric values given? Because my output now looks like this:

Temperature 13.4?F / -10.3?C
Windchill 13?F / -10?C
Humidity 73%
Wind NNW at 3.0 mph / 4.8 km/h
Conditions Clear
Sunset 5:15 PM EST

[ Reply to This | # ]
Show a one-line weather forecast on the desktop
Authored by: anika123 on Jan 03, '10 03:16:04PM

I will work on that. In the mean time see my new python script in the main thread. Its not as good but I had not even looked at the mobile site, thanks for pointing that out. You will have to open the new script and change the weather code to reflect your area. Maybe it is useful to you. If not, look at it in a text editor and change at will. Everything is commented.

[ Reply to This | # ]