* Re: Lynx Accessible Weather
@ Linux for blind general discussion
0 siblings, 0 replies; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: Linux for blind general discussion
You can tweek the below to make it even more useful, putting your zip in place of zipcode in the example variations.
alias weather='lynx -dump "https://braille.wunderground.com/cgi-bin/findweather/hdfForecast?brand=braille&query=zipcode" |grep -iA 5 $1 '
When run put "weather sunrise" for example and the part starting at "sunrise" with the following 5 lines will appear.
Or use the 3 day of the week "sun" to get the forecast info starting at that day of the week.
For dedicated sections put some label in place of $1 as a seperate named alias, temperature . will present the current weather info for
example.
Changing the 5 will determine how many lines will be returned following the desired info.
On Tue, 31 Oct 2017, Linux for blind general discussion wrote:
> Here's a working alias for you, just change the zip code from 18942 to
> your own zip code and it sould work for you.
>
> alias weather='lynx -dump
> "https://braille.wunderground.com/cgi-bin/findweather/hdfForecast?brand=braille&query=18942"'
> On
> Tue, 31 Oct 2017, Linux for
> blind general discussion wrote:
>
> > Date: Tue, 31 Oct 2017 11:15:43
> > From: Linux for blind general discussion <blinux-list@redhat.com>
> > To: blinux-list@redhat.com
> > Subject: Lynx Accessible Weather
> >
> > I need to find another weather service besides
> > http://mobile.wunderground.com
> > because they appear to be using some sort of croud-sourcing and
> > the site I get most of the time is broken. The humidity is
> > perpetually 100% with the dew point, at times, rounded up 1
> > degree above the actual temperature. I would be more than happy
> > to see conditions based on the NWS which are taken at our local
> > air port.
> >
> > It's a shame because weather underground works with lynx
> > and the output is easy to read but if it is wrong for months and
> > nobody seems to care, it's not terribly useful.
> >
> > Thanks for any ideas.
> >
> > Martin McCormick
> >
> > _______________________________________________
> > Blinux-list mailing list
> > Blinux-list@redhat.com
> > https://www.redhat.com/mailman/listinfo/blinux-list
> >
>
>
--
XB
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lynx Accessible Weather
` Linux for blind general discussion
@ ` Linux for blind general discussion
0 siblings, 0 replies; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: Linux for blind general discussion
I've bookmarked the following for lattitude and longitude data. I find
them very useful:
World Cities Listed by Lattitude
https://en.wikipedia.org/wiki/List_of_cities_by_latitude
World Cities Listed by Longitude
https://en.wikipedia.org/wiki/List_of_cities_by_longitude
There are numerous similar resources on line. I've just found these two
particularly useful with screen readers.
hth
Janina
Linux for blind general discussion writes:
> Tim here. I have no idea my latitude/longitude, but I did a search
> on Wikipedia and part of the page includes the latitude/longitude in
> degrees/minutes/seconds. But it was a link to the Open StreetMap page
> which includes them in decimal form (I could also have done the math,
> but was feeling a little lazy). The NWS page outputs concise data,
> but the granularity is low. Thus it finds that DFW airport is the
> closest station to me, but the weather here and in DFW can be
> radically different, despite a mere 30 miles or so between us.
>
> If you just want a subset of the output from that page, you can pipe
> it with "lynx -dump" through the utility of your choice, such as
>
> alias weather='lynx -dump "https://forecast-v3.weather.gov/point/32.7758,-96.7967?view=plain&mode=min" | sed "1,/Weekly [fF]orecast/d;/Point Forecast/,\$d"'
>
> which uses sed to chop off extra stuff at the top/bottom.
>
> -tim
>
>
> On October 31, 2017, Linux for blind general discussion wrote:
> > I'll have to also try that as I do know our air port code and our
> > latitude and longitude at least the degrees part, not the minutes
> > but that would probably get one quite close enough.
> >
> > Maybe a little tinkering with perl could make it just
> > right.
> >
> > Before I retired, I worked in Network Operations at
> > Oklahoma State University for 25 years and dabbled in C as in gcc
> > before a coworker got me to learning perl. I now wish I had
> > spent more time developing in perl since what one comes up with
> > is faster to produce and tends to have less hidden bugs in it.
> >
> > The truth be known, A better C programmer also comes up
> > with programs that have fewer hidden bugs so I am not blaming
> > anybody but myself. Figuring out how to make the machines do
> > what we want them to do is fun and sometimes, a little
> > frustrating.
> >
> > Many thanks.
> >
> > Martin
> > Linux for blind general discussion <blinux-list@redhat.com> writes:
> > > Tim here. While not lynx accessible per se, you can use
> > >
> > > $ curl http://wttr.in/dallas,tx
> > >
> > > to get a weather report in the terminal. I have a few small
> > > issues with it, though the biggest is that it tries to be pretty
> > > and ends up going beyond 80 columns of text. But you can change
> > > the location to any number of things, whether zip-code, city
> > > name, or airport code.
> > >
> > > There's more documentation and source at
> > >
> > > https://github.com/chubin/wttr.in
> > >
> > > I'm not sure of its weather source (if it ties to Weather
> > > Underground or not)
> > >
> > > Alternatively, if you know your latitude and longitude, you can
> > > plug them in this URL
> > >
> > > https://forecast-v3.weather.gov/point/32.7758,-96.7967?view=plain&mode=min
> > >
> > > (that happens to be Dallas, TX near here) which uses the NWS data.
> > > You can either bookmark it in lynx or make a function/alias in
> > > bash to pull up that URL for you quickly.
> > >
> > > Hope those suggestions help,
> > >
> > > -tim
> >
> > _______________________________________________
> > Blinux-list mailing list
> > Blinux-list@redhat.com
> > https://www.redhat.com/mailman/listinfo/blinux-list
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
--
Janina Sajka, Phone: +1.443.300.2200
sip:janina@asterisk.rednote.net
Email: janina@rednote.net
Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org
The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lynx Accessible Weather
Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
@ ` Linux for blind general discussion
2 siblings, 0 replies; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: Linux for blind general discussion
Try:
http://braille.wunderground.com
Or, for NWS try:
telnet rainmaker.wunderground.com
Linux for blind general discussion writes:
> I need to find another weather service besides
> http://mobile.wunderground.com
> because they appear to be using some sort of croud-sourcing and
> the site I get most of the time is broken. The humidity is
> perpetually 100% with the dew point, at times, rounded up 1
> degree above the actual temperature. I would be more than happy
> to see conditions based on the NWS which are taken at our local
> air port.
>
> It's a shame because weather underground works with lynx
> and the output is easy to read but if it is wrong for months and
> nobody seems to care, it's not terribly useful.
>
> Thanks for any ideas.
>
> Martin McCormick
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
--
Janina Sajka, Phone: +1.443.300.2200
sip:janina@asterisk.rednote.net
Email: janina@rednote.net
Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org
The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lynx Accessible Weather
` Linux for blind general discussion
@ ` Linux for blind general discussion
` Linux for blind general discussion
0 siblings, 1 reply; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: blinux-list
Tim here. I have no idea my latitude/longitude, but I did a search
on Wikipedia and part of the page includes the latitude/longitude in
degrees/minutes/seconds. But it was a link to the Open StreetMap page
which includes them in decimal form (I could also have done the math,
but was feeling a little lazy). The NWS page outputs concise data,
but the granularity is low. Thus it finds that DFW airport is the
closest station to me, but the weather here and in DFW can be
radically different, despite a mere 30 miles or so between us.
If you just want a subset of the output from that page, you can pipe
it with "lynx -dump" through the utility of your choice, such as
alias weather='lynx -dump "https://forecast-v3.weather.gov/point/32.7758,-96.7967?view=plain&mode=min" | sed "1,/Weekly [fF]orecast/d;/Point Forecast/,\$d"'
which uses sed to chop off extra stuff at the top/bottom.
-tim
On October 31, 2017, Linux for blind general discussion wrote:
> I'll have to also try that as I do know our air port code and our
> latitude and longitude at least the degrees part, not the minutes
> but that would probably get one quite close enough.
>
> Maybe a little tinkering with perl could make it just
> right.
>
> Before I retired, I worked in Network Operations at
> Oklahoma State University for 25 years and dabbled in C as in gcc
> before a coworker got me to learning perl. I now wish I had
> spent more time developing in perl since what one comes up with
> is faster to produce and tends to have less hidden bugs in it.
>
> The truth be known, A better C programmer also comes up
> with programs that have fewer hidden bugs so I am not blaming
> anybody but myself. Figuring out how to make the machines do
> what we want them to do is fun and sometimes, a little
> frustrating.
>
> Many thanks.
>
> Martin
> Linux for blind general discussion <blinux-list@redhat.com> writes:
> > Tim here. While not lynx accessible per se, you can use
> >
> > $ curl http://wttr.in/dallas,tx
> >
> > to get a weather report in the terminal. I have a few small
> > issues with it, though the biggest is that it tries to be pretty
> > and ends up going beyond 80 columns of text. But you can change
> > the location to any number of things, whether zip-code, city
> > name, or airport code.
> >
> > There's more documentation and source at
> >
> > https://github.com/chubin/wttr.in
> >
> > I'm not sure of its weather source (if it ties to Weather
> > Underground or not)
> >
> > Alternatively, if you know your latitude and longitude, you can
> > plug them in this URL
> >
> > https://forecast-v3.weather.gov/point/32.7758,-96.7967?view=plain&mode=min
> >
> > (that happens to be Dallas, TX near here) which uses the NWS data.
> > You can either bookmark it in lynx or make a function/alias in
> > bash to pull up that URL for you quickly.
> >
> > Hope those suggestions help,
> >
> > -tim
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lynx Accessible Weather
` Linux for blind general discussion
@ ` Linux for blind general discussion
` Linux for blind general discussion
0 siblings, 1 reply; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: blinux-list
I'll have to also try that as I do know our air port code and our
latitude and longitude at least the degrees part, not the minutes
but that would probably get one quite close enough.
Maybe a little tinkering with perl could make it just
right.
Before I retired, I worked in Network Operations at
Oklahoma State University for 25 years and dabbled in C as in gcc
before a coworker got me to learning perl. I now wish I had
spent more time developing in perl since what one comes up with
is faster to produce and tends to have less hidden bugs in it.
The truth be known, A better C programmer also comes up
with programs that have fewer hidden bugs so I am not blaming
anybody but myself. Figuring out how to make the machines do
what we want them to do is fun and sometimes, a little
frustrating.
Many thanks.
Martin
Linux for blind general discussion <blinux-list@redhat.com> writes:
> Tim here. While not lynx accessible per se, you can use
>
> $ curl http://wttr.in/dallas,tx
>
> to get a weather report in the terminal. I have a few small issues
> with it, though the biggest is that it tries to be pretty and ends up
> going beyond 80 columns of text. But you can change the location to
> any number of things, whether zip-code, city name, or airport code.
>
> There's more documentation and source at
>
> https://github.com/chubin/wttr.in
>
> I'm not sure of its weather source (if it ties to Weather Underground
> or not)
>
> Alternatively, if you know your latitude and longitude, you can plug
> them in this URL
>
> https://forecast-v3.weather.gov/point/32.7758,-96.7967?view=plain&mode=min
>
> (that happens to be Dallas, TX near here) which uses the NWS data.
> You can either bookmark it in lynx or make a function/alias in bash
> to pull up that URL for you quickly.
>
> Hope those suggestions help,
>
> -tim
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lynx Accessible Weather
` Linux for blind general discussion
@ ` Linux for blind general discussion
0 siblings, 0 replies; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: blinux-list
Thank you. It works.
Linux for blind general discussion <blinux-list@redhat.com> writes:
> Here's a working alias for you, just change the zip code from 18942 to
> your
> own zip code and it sould work for you.
>
>
>
> alias weather='lynx -dump "https://braille.wunderground.com/cgi-bin/
> findweather/hdfForecast?brand=braille&query=18942";' On Tue, 31 Oct 2017,
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lynx Accessible Weather
Linux for blind general discussion
` Linux for blind general discussion
@ ` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
2 siblings, 1 reply; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: blinux-list
Tim here. While not lynx accessible per se, you can use
$ curl http://wttr.in/dallas,tx
to get a weather report in the terminal. I have a few small issues
with it, though the biggest is that it tries to be pretty and ends up
going beyond 80 columns of text. But you can change the location to
any number of things, whether zip-code, city name, or airport code.
There's more documentation and source at
https://github.com/chubin/wttr.in
I'm not sure of its weather source (if it ties to Weather Underground
or not)
Alternatively, if you know your latitude and longitude, you can plug
them in this URL
https://forecast-v3.weather.gov/point/32.7758,-96.7967?view=plain&mode=min
(that happens to be Dallas, TX near here) which uses the NWS data.
You can either bookmark it in lynx or make a function/alias in bash
to pull up that URL for you quickly.
Hope those suggestions help,
-tim
On October 31, 2017, Linux for blind general discussion wrote:
> I need to find another weather service besides
> http://mobile.wunderground.com
> because they appear to be using some sort of croud-sourcing and
> the site I get most of the time is broken. The humidity is
> perpetually 100% with the dew point, at times, rounded up 1
> degree above the actual temperature. I would be more than happy
> to see conditions based on the NWS which are taken at our local
> air port.
>
> It's a shame because weather underground works with lynx
> and the output is easy to read but if it is wrong for months and
> nobody seems to care, it's not terribly useful.
>
> Thanks for any ideas.
>
> Martin McCormick
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lynx Accessible Weather
Linux for blind general discussion
@ ` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
2 siblings, 1 reply; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: Linux for blind general discussion
Here's a working alias for you, just change the zip code from 18942 to
your own zip code and it sould work for you.
alias weather='lynx -dump
"https://braille.wunderground.com/cgi-bin/findweather/hdfForecast?brand=braille&query=18942"'
On
Tue, 31 Oct 2017, Linux for
blind general discussion wrote:
> Date: Tue, 31 Oct 2017 11:15:43
> From: Linux for blind general discussion <blinux-list@redhat.com>
> To: blinux-list@redhat.com
> Subject: Lynx Accessible Weather
>
> I need to find another weather service besides
> http://mobile.wunderground.com
> because they appear to be using some sort of croud-sourcing and
> the site I get most of the time is broken. The humidity is
> perpetually 100% with the dew point, at times, rounded up 1
> degree above the actual temperature. I would be more than happy
> to see conditions based on the NWS which are taken at our local
> air port.
>
> It's a shame because weather underground works with lynx
> and the output is easy to read but if it is wrong for months and
> nobody seems to care, it's not terribly useful.
>
> Thanks for any ideas.
>
> Martin McCormick
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
>
--
^ permalink raw reply [flat|nested] 9+ messages in thread
* Lynx Accessible Weather
@ Linux for blind general discussion
` Linux for blind general discussion
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Linux for blind general discussion @ UTC (permalink / raw)
To: blinux-list
I need to find another weather service besides
http://mobile.wunderground.com
because they appear to be using some sort of croud-sourcing and
the site I get most of the time is broken. The humidity is
perpetually 100% with the dew point, at times, rounded up 1
degree above the actual temperature. I would be more than happy
to see conditions based on the NWS which are taken at our local
air port.
It's a shame because weather underground works with lynx
and the output is easy to read but if it is wrong for months and
nobody seems to care, it's not terribly useful.
Thanks for any ideas.
Martin McCormick
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Lynx Accessible Weather Linux for blind general discussion
-- strict thread matches above, loose matches on Subject: below --
Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).