Author Topic: WXforecast  (Read 526 times)

0 Members and 1 Guest are viewing this topic.

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
WXforecast
« on: January 01, 2019, 03:47:25 PM »
Was wondering if anyone could tell me why my forecast doesn't show the current day??? 
http://www.n7drd.org/wxforecast.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WXforecast
« Reply #1 on: January 01, 2019, 04:22:35 PM »
Generally, the NWS has updated the forecasts every 6 hours so you have 'Today', 'This Afternoon', 'Tonight' and 'Overnight' periods for the first forecast item.

It seems today that the api.weather.gov has switched from 'Today' to 'Tonight' without the intervening 'This Afternoon' for your point forecast.  The same is shown on their display page at https://forecast-v3.weather.gov/point/46.4882,-124.0458

Mine is showing normally with "New Year's Day" still displayed (until about 2:30pm Pacific in normal circumstances).

Contact your local WFO in Portland, OR at (503) 261-9246 and ask them about the issue with api.weather.gov/forecast-v3.weather.gov sites - the production site at https://forecast.weather.gov/MapClick.php?lat=46.49147&lon=-124.049499 is showing normally.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: WXforecast
« Reply #2 on: January 01, 2019, 04:28:30 PM »
Generally, the NWS has updated the forecasts every 6 hours so you have 'Today', 'This Afternoon', 'Tonight' and 'Overnight' periods for the first forecast item.

It seems today that the api.weather.gov has switched from 'Today' to 'Tonight' without the intervening 'This Afternoon' for your point forecast.  The same is shown on their display page at https://forecast-v3.weather.gov/point/46.4882,-124.0458

Mine is showing normally with "New Year's Day" still displayed (until about 2:30pm Pacific in normal circumstances).

Contact your local WFO in Portland, OR at (503) 261-9246 and ask them about the issue with api.weather.gov/forecast-v3.weather.gov sites - the production site at https://forecast.weather.gov/MapClick.php?lat=46.49147&lon=-124.049499 is showing normally.
  Ken have a look at my forecast we both use all the same info???   http://www.beachhouseweather.com/wxforecast.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WXforecast
« Reply #3 on: January 01, 2019, 04:38:14 PM »
I see his is working, and yours is having the issue.  The n7xrd info (from view-source of the page with ?force=1 to force a fresh loading shows
Quote
<!-- advforecast2.php (JSON) - V5.09 - 26-May-2018 on PHP 7.0.30-->
<!-- RAW NWS URL: http://forecast.weather.gov/MapClick.php?lat=46.48817&lon=-124.04583&unit=0&lg=english&FcstType=text&TextType=2 -->
<!-- zone=WAZ021 -->
<!-- loaded URLcache from ./cache/forecast-URLcache.txt with 2 entries -->
<!-- corrected NWS API URL='https://api.weather.gov/points/46.4882,-124.0458/forecast' -->
<!-- replaced point URL with gridpoint URL from URLcache -->
<!-- curl fetching 'https://api.weather.gov/gridpoints/PQR/77,157/forecast' -->
<!-- HTTP stats:  RC=200 dest=23.0.210.146 port=443 (from sce=198.71.236.75)
      Times: dns=0.004 conn=0.007 pxfer=0.028 get=0.005 total=0.033 secs -->
<!-- loaded point-forecast https://api.weather.gov/points/46.4882,-124.0458/forecast - 10473 bytes -->
<!-- wrote cache file ./cache/forecast-WAZ021-0-json.txt -->
<!-- meta info re: point='46.4882,-124.0458' zone='WAZ021' metacache= './cache/forecast-WAZ021-0-json-meta.txt' -->
<!-- metaZoneURL='https://api.weather.gov/zones/forecast/WAZ021' -->
<!-- loaded meta info from ./cache/forecast-WAZ021-0-json-meta.txt -->
<!-- META
Array
(
    [city] => Ocean Park
    [state] => WA
    [point] => 46.4882,-124.0458
    [forecastOfficeURL] => https://api.weather.gov/offices/PQR
    [forecastZoneURL] => https://api.weather.gov/zones/forecast/WAZ021
    [forecastZone] => WAZ021
    [forecastHourlyURL] => https://api.weather.gov/gridpoints/PQR/77,157/forecast/hourly
    [forecastGridDataURL] => https://api.weather.gov/gridpoints/PQR/77,157
    [observationStationsURL] => https://api.weather.gov/gridpoints/PQR/77,157/stations
    [countyZoneURL] => https://api.weather.gov/zones/county/WAC049
    [countyZone] => WAC049
    [fireWeatherZoneURL] => https://api.weather.gov/zones/fire/WAZ664
    [fireWeatherZone] => WAZ664
    [timeZone] => America/Los_Angeles
    [radarStation] => KLGX
    [zoneName] => South Washington Coast
    [WFOname] => Portland, OR
    [WFOphone] => (503) 261-9246
    [WFOemail] => w-pqr.webmaster@noaa.gov
)
 -->
while the same on the beachhouseweather page shows
Quote
<!-- advforecast2.php (JSON) - V5.09 - 26-May-2018 on PHP 7.0.30-->
<!-- RAW NWS URL: http://forecast.weather.gov/MapClick.php?lat=46.35232&lon=-124.05432339999998&unit=0&lg=english&FcstType=text&TextType=2 -->
<!-- zone=WAZ021 -->
<!-- loaded URLcache from ./cache/forecast-URLcache.txt with 1 entries -->
<!-- corrected NWS API URL='https://api.weather.gov/points/46.3523,-124.0543/forecast' -->
<!-- replaced point URL with gridpoint URL from URLcache -->
<!-- curl fetching 'https://api.weather.gov/gridpoints/PQR/76,150/forecast' -->
<!-- HTTP stats:  RC=200 dest=23.0.210.146 port=443 (from sce=198.71.224.14)
      Times: dns=0.005 conn=0.008 pxfer=0.041 get=0.038 total=0.079 secs -->
<!-- loaded point-forecast https://api.weather.gov/points/46.3523,-124.0543/forecast - 10364 bytes -->
<!-- wrote cache file ./cache/forecast-WAZ021-0-json.txt -->
<!-- meta info re: point='46.3523,-124.0543' zone='WAZ021' metacache= './cache/forecast-WAZ021-0-json-meta.txt' -->
<!-- metaZoneURL='https://api.weather.gov/zones/forecast/WAZ021' -->
<!-- loaded meta info from ./cache/forecast-WAZ021-0-json-meta.txt -->
<!-- META
Array
(
    [city] => Long Beach
    [state] => WA
    [point] => 46.3523,-124.0543
    [forecastOfficeURL] => https://api.weather.gov/offices/PQR
    [forecastZoneURL] => https://api.weather.gov/zones/forecast/WAZ021
    [forecastZone] => WAZ021
    [forecastHourlyURL] => https://api.weather.gov/points/46.3523,-124.0543/forecast/hourly
    [forecastGridDataURL] => https://api.weather.gov/gridpoints/PQR/76,150
    [observationStationsURL] => https://api.weather.gov/points/46.3523,-124.0543/stations
    [countyZoneURL] => https://api.weather.gov/zones/county/WAC049
    [countyZone] => WAC049
    [fireWeatherZoneURL] => https://api.weather.gov/zones/fire/WAZ601
    [fireWeatherZone] => WAZ601
    [timeZone] => America/Los_Angeles
    [radarStation] => KLGX
    [zoneName] => South Washington Coast
    [WFOname] => Portland, OR
    [WFOphone] => (503) 261-9246
    [WFOemail] => w-pqr.webmaster@noaa.gov
)
 -->
so the problem appears to be just with your gridpoint ( https://api.weather.gov/gridpoints/PQR/77,157/forecast ) that may not have been fully refreshed by the last update cycle.. still an issue to talk with the NWS WFO about.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: WXforecast
« Reply #4 on: January 01, 2019, 04:41:39 PM »
Actually Beachhouseweather is my page I also run his page for him as he doesn't understand much of this!  :-)  I will see if I can contact someone!!  Thank You Happy New Year!!

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: WXforecast
« Reply #5 on: January 02, 2019, 11:12:09 AM »
Ken have a look today they are both showing 1st day and we get the info from the same setup why is one showing "Today" and one "This Afternoon"??  has to be a setting I have missed somewhere?? FYI  When I upload all My (beachhouse) Cache files it is the same until the next update..

http://www.n7drd.org/wxforecast.php

http://www.beachhouseweather.com/wxforecast.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WXforecast
« Reply #6 on: January 02, 2019, 11:57:56 AM »
It's not a setting on your part -- the data from api.weather.gov is arriving that way and just being formatted.  The script (V5.09) just displays what the API returns.  Issues with 'what' is presented have to be addressed by the NWS WFO for the specific gridpoint (in your case on the n7drd site it is https://api.weather.gov/gridpoints/PQR/77,157/forecast and that JSON shows 'This Afternoon' for the first period in the forecast).  Contact the WFO at (503) 261-9246 or email w-pqr.webmaster at noaa.gov to report the issue.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 366
    • Kamiah Weather
Re: WXforecast
« Reply #7 on: January 02, 2019, 11:59:34 AM »
Oh ok will call them this AM and see what they say!!