Re: [mh] Weather and Weather_Chance_Of_Rain

Wayne Gatlin <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <CA+E=prwfiv+mihvtvy=QN0SVWN6WhL_M-+DyuzHry=N=fpfOuw@mail.gmail.com>
Stephen,

The current master copy of internet_weather.pl, get_weather, and
WeatherNOAA.pm works fine for me. Were you using the master copy or stable
because they seem to be different.

This is the master copy:
https://raw.githubusercontent.com/hollie/misterhouse/master/lib/site/Geo/WeatherNOAA.pm

There are a few quirks with the NOAA lookup:

By default it uses "city" from your mh.private.ini but sometimes your
actual city is not found so you can use "nws_city" instead to specify a
nearby city to get weather from. This leaves your city alone in case it's
used by something else.


The code uses "https://forecast.weather.gov/zipcity.php" to search for your
zone with the city/state in your mh.private.ini. You can do a manual test
to see what it returns and the "site" in the URL that you are redirected to
is the site/zone used to get the weather data from NOAA. The URL below is
from my search and you can see my zone/site is "LIX".

https://forecast.weather.gov/MapClick.php?CityName=Baton+Rouge&state=LA&site=LIX&lat=30.449&lon=-91.126#.X7lAfVB7mUk

Sometimes you get the forecast but not the weather conditions with the zone
returned by the search, in that case you have to manually specify the
"nws_rwr_zone" in your mh.private.ini

You get your RWR ( weather conditions) zone from here: (if the state/city
doesn't work)
https://forecast.weather.gov/product_sites.php?site=CRH&product=RWR


The forecast zones are listed here (this is generally the same as the RWR
zone):
https://forecast.weather.gov/product_sites.php?site=CRH&product=ZFP



_Wayne

On Tue, Nov 3, 2020 at 3:40 PM Rick Steeves via misterhouse-users <
[email protected]> wrote:

> D'oh, I had also updated the internet_weather page - I should have sent
> that to you as well! sprry...
>
> Rick
>
>
> On 11/3/2020 11:14 AM, Stephen Switzer wrote:
> > An update to everyone, I incorporated these two files, experimented and
> > modified them along with internet_weather.pl
> > <http://internet_weather.pl> and finally have it working. I'll have to
> > diff things and boil down what really mattered then submit a pull
> > request. Meanwhile, if anyone else is interested, please let me know.
> > I'll share.
> >
> > Thanks, Rick!
> >
> > Steve
> >
> > On Mon, Nov 2, 2020 at 10:37 AM Rick Steeves via misterhouse-users
> > <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >
> >     Set you my copies of get_weather and weatherNOAA.pm under separate
> >     email.
> >
> >     rick
> >
> >
> >
> >     On 11/2/2020 8:51 AM, Stephen Switzer wrote:
> >      > I'm still recovering my system and would like this portion to
> >     work now.
> >      > Are there any updates to this since then? I checked out the
> >     current GIT
> >      > repo and that version doesn't work for me with get_weather either.
> >      >
> >      > Would appreciate any pointers to getting back up with forecasts
> >     so I can
> >      > enjoy the "chance of rain" announcements a little more before it
> >     changes
> >      > over to the "s" word for winter. ewwww.
> >      >
> >      > Thanks!
> >      >
> >      > On Wed, Sep 28, 2016 at 9:18 PM Wayne Gatlin <[email protected]
> >     <mailto:[email protected]>
> >      > <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >      >
> >      >     Sorry, forgot to attach the file.
> >      >
> >      >     _Wayne
> >      >
> >      >     On Wed, Sep 28, 2016 at 8:17 PM, Wayne Gatlin
> >     <[email protected] <mailto:[email protected]>
> >      >     <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >      >
> >      >         These URLs seem to work, I updated WeatherNOAA.pm with
> >     the new
> >      >         URLs and attached it to this email. Let me know if it
> >     works for you.
> >      >
> >      >
> >
> http://forecast.weather.gov/product.php?site=LIX&issuedby=LIX&product=ZFP&format=txt&version=1&glossary=0
> >      >
> >
> http://forecast.weather.gov/product.php?site=LIX&issuedby=LIX&product=RWR&format=txt&version=1&glossary=0
> >      >
> >      >         _Wayne
> >      >
> >      >         On Wed, Sep 28, 2016 at 6:39 AM, Brian Klier
> >      >         <[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>>
> wrote:
> >      >
> >      >             I should correct myself, it looks like it WAS working
> >     until
> >      >             just recently.  I noticed some of the RIDGE graphics
> have
> >      >             changed to new sites at NOAA, so it sounds like they
> >     might
> >      >             be doing some sort of refresh of their website this
> week.
> >      >
> >      >             Brian
> >      >
> >      >             On Tue, Sep 27, 2016 at 10:32 PM, Eloy Paris
> >      >             <[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >      >
> >      >                 Same here. I tried around 6 PM EDT and it didn't
> >     work.
> >      >
> >      >
> >      >                 On September 27, 2016 10:22:50 PM EDT, Wayne
> Gatlin
> >      >                 <[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >      >
> >      >                     I'm not sure how I missed Ricks email, but I
> just
> >      >                     set it up and its not working for me. I'm not
> >     able
> >      >                     to get to the URLs in the email or the one
> that's
> >      >                     built from my zone.
> >      >
> >      >                     I get a 404 for both of these urls:
> >      > http://www.srh.noaa.gov/data/LIX/ZFPLIX
> >      > http://www.srh.noaa.gov/data/RAH/ZFPRAH
> >      >                     <http://www.srh.noaa.gov/data/RAH/ZFPRAH>
> >      >
> >      >                     cat data/web/weather_conditions.txt
> >      >                     Error getting data from
> >      > http://www.srh.noaa.gov/data/LIX/RWRLIX
> >      >
> >      >
> >      >                     Unless there's just an issue at NOAA right
> >     now, I'm
> >      >                     not sure what else could be wrong.
> >      >
> >      >
> >      >                     _Wayne
> >      >
> >      >
> >      >
> >      >                     On Tue, Sep 27, 2016 at 5:09 PM, Brian Klier
> >      >                     <[email protected]
> >     <mailto:[email protected]>
> >      >                     <mailto:[email protected]
> >     <mailto:[email protected]>>> wrote:
> >      >
> >      >                         I've been using it since Rick posted his
> >     fix and
> >      >                         it's been working perfectly here.
> >      >
> >      >                         Brian
> >      >
> >      >                         On Tue, Sep 27, 2016, 2:01 PM Lieven
> >     Hollevoet
> >      >                         <[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >      >
> >      >                             Hello all,
> >      >
> >      >                             is there somebody who has tested this
> >      >                             already? Would be nice if we could
> >     add it to
> >      >                             toe upcoming 4.2 stable release.
> >      >
> >      >                             Kind regards,
> >      >                               Lieven.
> >      >
> >      >                              > Op 19 aug. 2016, om 18:34 heeft
> Rick
> >      >                             Steeves <[email protected]
> >     <mailto:[email protected]>
> >      >                             <mailto:[email protected]
> >     <mailto:[email protected]>>> het
> >      >                             volgende geschreven:
> >      >                              >
> >      >                              > The two correct URLs (for when
> >     your zone
> >      >                             is RAH) used for queries now:
> >      >                              >
> >     http://www.srh.noaa.gov/data/RAH/RWRRAH
> >      >                              >
> >     http://www.srh.noaa.gov/data/RAH/ZFPRAH
> >      >                              >
> >      >                              > See attached. Updates for weather
> NOAA
> >      >                             website changes:
> >      >                              >
> >      >                              > Updated GEO::WeatherNOAA to
> >     confirm with
> >      >                             new website, replace inside the base
> >     MH code
> >      >                             /lib/site/Geo.
> >      >                              >        Used the CPAN 4.38 as the
> base
> >      >                             (which is wildly newer than what's
> >     included
> >      >                             in MH).
> >      >                              >        Note - the NOAA no longer
> uses
> >      >                             "State", but is instead using
> >     regional three
> >      >                             digit zone codes.
> >      >                              >        You can get those codes
> here:
> >      >
> http://forecast.weather.gov/product_sites.php?site=CRH&product=ZFP
> >      >                              >        You must include that zone
> >     value
> >      >                             in your mh.private.ini file.
> >      >                              >        Example: zone=RAH for
> >     Raleigh-Durham
> >      >                              > Updated get_weather to incorporate
> >     using
> >      >                             zone instead of state, located in /bin
> >      >                              >
> >      >                              > Note that foundation I used for
> >      >                             get_weather is likely out of date, as
> >     I have
> >      >                             yet to work with the new (Git?)
> >     repository,
> >      >                             so I'm working off my 2.105 (-ish)
> >     personal
> >      >                             environment. The WeatherNOAA.pm I
> >     built from
> >      >                             the most current version of
> >     GEO::WeatherNOAA.pm
> >      >                              >
> >      >                              >
> >      >                              > If anyone still uses this code,
> please
> >      >                             use and let me know how it goes. You
> can
> >      >                             tell if it's working by looking at
> >      >                              > \data\web\weather_forecast.txt
> >      >                              > \data\web\weather_conditions.txt
> >      >                              >
> >      >                              > Rick
> >      >                              >
> >      >                              >
> >      >                              > At 02:10 PM 8/18/2016, Rick
> >     Steeves wrote:
> >      >                              >> The NOAA has provided URLs which
> >     return
> >      >                             raw text for the forecast and point
> >     information.
> >      >                              >> For when the location is RAH:
> >      >                              >>
> >     http://www.srh.noaa.gov/data/RAH/PFMRAH
> >      >                              >>
> >      >                              >>>>
> >     http://www.srh.noaa.gov/data/RAH/ZFPRAH
> >      >                              >>
> >      >                              >> Shouldn't take me much from there
> >     to fix
> >      >                             Geo::WeatherNOAA
> >      >                              >>
> >      >                              >> Rick
> >      >                              >
> >      >
> >
>  <get_weather.txt><WeatherNOAA.pm>------------------------------------------------------------------------------
> >      >                              >
> >      >
> >       ________________________________________________________
> >      >                              > To unsubscribe from this list, go
> to:
> >      > https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >      >                              >
> >      >
> >      >
> >      >
> >
>  ------------------------------------------------------------------------------
> >      >
> >       ________________________________________________________
> >      >                             To unsubscribe from this list, go to:
> >      > https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >      >
> >      >
> >      >
> >
>  ------------------------------------------------------------------------------
> >      >
> >      >
> >       ________________________________________________________
> >      >                         To unsubscribe from this list, go to:
> >      > https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >      >
> >      >
> >      >
> >      >
> >
>  ------------------------------------------------------------------------
> >      >
> >      >
> >
>  ------------------------------------------------------------------------
> >      >
> >      >                     To unsubscribe from this list, go
> >     to:https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >      >
> >      >
> >      >                 --
> >      >                 Sent from my Android device with K-9 Mail. Please
> >     excuse
> >      >                 my brevity.
> >      >
> >      >
> >      >
> >      >
> >      >
> >
>  ------------------------------------------------------------------------------
> >      >     ________________________________________________________
> >      >     To unsubscribe from this list, go to:
> >      > https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >      >
> >      >
> >      >
> >      > --
> >      >
> >      > Best regards,
> >      > Steve Switzer
> >      >
> >      > ---
> >      > Get world-class business I.T. services and a phone system with
> >     awesome features that won't challenge your budget!
> >      > http://www.sbsROC.com
> >      >
> >      >
> >      >
> >      > ________________________________________________________
> >      > To unsubscribe from this list, go to:
> >     https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >      >
> >
> >     --
> >     Rick Steeves
> >     https://www.irelandbybicycle.com
> >
> >     It's all fun and games until someone ends up wearing a cone.
> >
> >
> >     ________________________________________________________
> >     To unsubscribe from this list, go to:
> >     https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >
> >
> >
> > --
> >
> > Best regards,
> > Steve Switzer
> >
> > ---
> > Get world-class business I.T. services and a phone system with awesome
> features that won't challenge your budget!
> > http://www.sbsROC.com
> >
> >
> >
> > ________________________________________________________
> > To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> >
>
> --
> Rick Steeves
> https://www.irelandbybicycle.com
>
> It's all fun and games until someone ends up wearing a cone.
>
>
> ________________________________________________________
> To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.