Are their other Working Weather Scripts?
dandunfee at gmail.com
Sat Feb 4 17:02:13 UTC 2017
I use the lynx -dump approach also with braille underground.
I pipe it using:
| grep -iA 5 $1
Grep returns the search term $1 and the following 5 lines from the lynx
"dump". So using "temperature" it will provide the current temp plus other
relevant current info.
The "5" can be changed to capture as many lines folllowing the search
termas you wish.
Sunset/rise and moonset/rise and phase are other examples.
Any term such as "forcast" will return the next week or "wed" for a coming
day will return its individual forcast.
On Fri, 3 Feb 2017, Tim Chase wrote:
> On February 3, 2017, Janina Sajka wrote:
>> Fortunately, braille.wunderground.com is still up. It's not command
>> line, though I imagine one could write a script quite readily.
> Didn't know about this one. A quick "lynx -dump" alias seems to do
> the trick:
> alias weather='lynx -dump "https://braille.wunderground.com/cgi-bin/findweather/hdfForecast?brand=braille&query=90210"'
> seems to do the trick as long as you update the query to your
> preferred zip-code or other acceptable query.
> If you don't care about the details like phase of moon, and links at
> the bottom, you can pipe it to sed or head:
> alias weather='lynx -dump "https://braille.wunderground.com/cgi-bin/findweather/hdfForecast?brand=braille&query=90210" | sed /Updated/q'
> alias weather='lynx -dump "https://braille.wunderground.com/cgi-bin/findweather/hdfForecast?brand=braille&query=90210" | head'
> One could wrap it in a function to take the search parameters on the
> command-line, but I'm usually only interested in the weather fairly
> locally most of the time.
> Blinux-list mailing list
> Blinux-list at redhat.com
More information about the Blinux-list