Re: Are their other Working Weather Scripts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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'

or

  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.

-tim


_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list



[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]