Author Topic: NWS forecast.weather.gov changing 7-Mar-2017. New advforecast2.php V5.00  (Read 17792 times)

0 Members and 1 Guest are viewing this topic.

Offline Weather Goat

  • Member
  • *
  • Posts: 12
  • Peet Bros. Ultimeter 2100 Pro
    • New Milford CT Weather
I see the 0 heat index here in CT too

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Here in Wa st too.
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline satcop

  • Senior Contributor
  • ****
  • Posts: 241
    • Clifton Virginia Weather
It seems to be both wind chill and heat index coming up at 0 here.  Here is an example for today, where it shows both in the forecast.

Quote
Rain showers likely. Cloudy, with a high near 66. Heat index values as high as 0. Wind chill values as low as 0. South southwest wind 7 to 21 mph, with gusts as high as 33 mph. Chance of precipitation is 70%. New rainfall amounts less than a tenth of an inch possible.

With a temp of 66 but a wind chill of 0 not sure if I need a jacket or not  :???:

Bob
Clifton, Virginia Weather


Blitzortung Stations 1189, 1451 - CWOP EW1675

Offline Murry Conarroe

  • Contributor
  • ***
  • Posts: 143
    • Wildwood Weather
Until the NWS corrects this, I have temporarily added two lines after line 563 of the advforecast2.php to get rid of the Heat index and wind chill values of 0. I changed from:
Code: [Select]
$forecasttext[$i] = str_replace("\n",' ',$FCST['detailedForecast']); // sub blank for embedded NL

to
Code: [Select]
$forecasttext[$i] = str_replace("\n",' ',$FCST['detailedForecast']); // sub blank for embedded NL
$forecasttext[$i] = preg_replace('/Heat index values as high as 0./','',$forecasttext[$i]);
$forecasttext[$i] = preg_replace('/Wind chill values as low as 0./','',$forecasttext[$i]);
Murry

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Just saw this on the nws site dated the 6th.

Quote
Important - NWS Web Site Upgrade delayed until March 14th.

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline Weather Goat

  • Member
  • *
  • Posts: 12
  • Peet Bros. Ultimeter 2100 Pro
    • New Milford CT Weather
Fix works great, Murry, thanks!
Roger

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Until the NWS corrects this, I have temporarily added two lines after line 563 of the advforecast2.php to get rid of the Heat index and wind chill values of 0. I changed from:
Code: [Select]
$forecasttext[$i] = str_replace("\n",' ',$FCST['detailedForecast']); // sub blank for embedded NL

to
Code: [Select]
$forecasttext[$i] = str_replace("\n",' ',$FCST['detailedForecast']); // sub blank for embedded NL
$forecasttext[$i] = preg_replace('/Heat index values as high as 0./','',$forecasttext[$i]);
$forecasttext[$i] = preg_replace('/Wind chill values as low as 0./','',$forecasttext[$i]);

Thanks Murray I'll use for now.
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Just saw this on the nws site dated the 6th.

Quote
Important - NWS Web Site Upgrade delayed until March 14th.


Looks like it didn't go smoothly.
Randy

Offline satcop

  • Senior Contributor
  • ****
  • Posts: 241
    • Clifton Virginia Weather
Thanks Murry the fix works for now, don't expect wind chills that low over the next few days while we wait for them to fix back at the shop.  Well I wonder if there was anything else that was broke when they tried to switch over that caused them to back off.
Clifton, Virginia Weather


Blitzortung Stations 1189, 1451 - CWOP EW1675

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
MPX-Sort of ok.

The warning box is missing the Hazerdous Weather Outlook

and the forecast box has a large space between the icon and the forecast.  maybe they changed the way it wraps around.

Could be worse


http://weather.rms.rdale.org



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Since going the new "json" forecast the forecast is showing my location as  "7 Miles WSW Big Bass Lake, PA" instead of the previous "3 Miles NNW of Thornhurst". Any ideas how to get it back to "3 Miles NNW of Thronhurst?

Setting.php:
PAZ044|Thornhurst|http://forecast.weather.gov/MapClick.php?CityName=Thornhurst&state=PA&site=MTR&textField1=41.21482073580286&textField2=-75.608081762695&e=1&TextType=2

Thanks

Cheers

 :-)

MikeyM

Offline colonieweather

  • Contributor
  • ***
  • Posts: 145
    • Colonie Weather Online
"Effective April 4, 2017, NWS will implement the next version of the forecast pages. Highlights will include a standardized look and feel, a mobile-ready landing page, and a completely new architecture with a modernized API. Please review the Service Change Notice for complete details. "

https://forecast-v3.weather.gov/documentation
Davis Vantage Pro 2 Plus
WeatherLink v6.0.5
colonieweatheronline.com
Wx Underground - KNYCOLON3
APRS/CWOP - EW0288

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Since going the new "json" forecast the forecast is showing my location as  "7 Miles WSW Big Bass Lake, PA" instead of the previous "3 Miles NNW of Thornhurst". Any ideas how to get it back to "3 Miles NNW of Thronhurst?

Setting.php:
PAZ044|Thornhurst|http://forecast.weather.gov/MapClick.php?CityName=Thornhurst&state=PA&site=MTR&textField1=41.21482073580286&textField2=-75.608081762695&e=1&TextType=2

Thanks

Cheers

 :-)

MikeyM
The latitude and longitude in your old link is latitude 41.21482073580286, longitude -75.608081762695
The new system only only accepts 4 decimal places and it must not end on a zero.
The script skips the remaining decimal places and get its data from https://forecast-v3.weather.gov/point/41.214,-75.608
Check below the map at the right it is a  Point Forecast: 7 Miles WSW Big Bass Lake PA   41.21°N 75.61°W (1896 ft)
The forecast only uses 2 decimal places.
You may try different latitude/longitude combinations to get closer to your original location.

BUT this is still a forecast system running in Beta. So maybe when they switch March 14, they will have a finer grid using more decimal places.

Wim

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Im not sure what is wrong http://www.gosportwx.com/cell-forecast.php
This is still Beta, not a real production environment.
Use force=1 at the url to discard the forecast with errors and try to reload the forecast.

http://www.gosportwx.com/cell-forecast.php?force=1

Wim

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
also, with the change-can the warning show up in my page too? I forget things



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
I'm now getting heat Index and Wind Chill text today.

 [ You are not allowed to view attachments ]

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Im not sure what is wrong http://www.gosportwx.com/cell-forecast.php
This is still Beta, not a real production environment.
Use force=1 at the url to discard the forecast with errors and try to reload the forecast.

http://www.gosportwx.com/cell-forecast.php?force=1

Wim

Ya i saw this was still beta many thanks WIM..
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
also, with the change-can the warning show up in my page too? I forget things
Not on your startpage, I think, as you use only a small part of the complete page.

IMPORTANT: check your settings as there are now 3 files retrieved and NONE is saved to the cache with your current settings.
Code: [Select]
<!-- unable to write cache file ./forecast-MNZ060-0-json.txt -->
< -- unable to write meta cache file ./forecast-MNZ060-0-json-meta.txt -->
<!-- unable to write cache file ./forecast-MNZ060-0-json-alerts.txt -->
Every time the page is  loaded the same 3 files are retrieved from the NWS server.

Wim
« Last Edit: March 07, 2017, 10:53:17 AM by wvdkuil »

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Thanks Wim. I tried moving the long and lat a little and still references Big Bass Lake with is pretty useless for me. Hopefully NWS will fine tune things.

Thanks again for the help.

Cheers

 :-)

MikeyM

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Not seeing either heat index or wind chill items in my forecasts but suspect my current temps, etc., are not in the right range to see those. Supposed to hit 87° the next few days which might change things. Not happy with the added '>' and '≈' items showing by the high and low temps. Makes it seem like NWS is even more unsure what the temp might be.
John
W7JKG

Offline chief-david

  • Educational Weather
  • Forecaster
  • *****
  • Posts: 2846
  • Space Academy for Educators
    • Benilde-St. Margaret's Weather
also, with the change-can the warning show up in my page too? I forget things
Not on your startpage, I think, as you use only a small part of the complete page.

IMPORTANT: check your settings as there are now 3 files retrieved and NONE is saved to the cache with your current settings.
Code: [Select]
<!-- unable to write cache file ./forecast-MNZ060-0-json.txt -->
< -- unable to write meta cache file ./forecast-MNZ060-0-json-meta.txt -->
<!-- unable to write cache file ./forecast-MNZ060-0-json-alerts.txt -->
Every time the page is  loaded the same 3 files are retrieved from the NWS server.

Wim

Here are my settings -What do I need to change? PHP is not my forte'.
Quote
// V3.00 -- this following array can be used for multiple forecasts in *standalone* mode
//  for Saratpga template use, add a $SITE['NWSforecasts'] entry in Settings.php to have these entries.
//  To activate the definitions below, replace the /* with //* to uncomment the array definition
/*
$NWSforecasts = array(
 // the entries below are for testing use.. replace them with your own entries if using the script
 // outside the AJAX/PHP templates.
 // ZONE|Location|point-forecast-URL  (separated by | characters
'MNZ060|Hennepin County|http://forecast.weather.gov/MapClick.php?lat=45.02233988655459&lon=-93.34722518920898&site=mpx&unit=0&lg=en&FcstType=text&TextType=2',
);
//*/
//*
//
 $NOAAZone = 'MNZ060';  // change this line to your NOAA warning zone.
// set $fileName to the URL for the point-printable forecast for your area
// NOTE: this value (and $NOAAZone) will be overridden by the first entry in $NWSforecasts if it exists.
 $fileName = "http://forecast.weather.gov/MapClick.php?lat=45.02233988655459&lon=-93.34722518920898&site=mpx&unit=0&lg=en&FcstType=text&TextType=2";
//*/
$showTwoIconRows = true;   // =true; show all icons, =false; show 9 icons in one row (new V5.00)

#$iconDir = './forecast/imagesPNG-86x86/'; // testing only
#$iconDir = './forecast/imagesGIF-55x58/'; // testing only
$iconDir = './forecast/images/';
$iconType = '.jpg';        // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
$cacheFileDir = './';      // default cache file directory
$iconHeight = 55;  // default height of conditions icon (saratoga-icons.zip)
$iconWidth  = 55;  // default width of conditions icon  (saratoga-icons.zip)
$refreshTime = 300; // default refresh of cache 600=10 minutes
#
$ourTZ = 'America/Chicago'; // default timezone (new V5.00)
#$timeFormat = 'd-M-Y g:ia T';  // Fri, 31-Mar-2006 6:35pm TZone (new V5.00)
$timeFormat = 'g:i a T M d, Y';  // 3:17 am PST Jan 28, 2017 (new V5.00, like old forecast timestamp display)
#



You can't phase me-I teach Middle School.
It's not you-It's WU.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
MPX-Sort of ok.

The warning box is missing the Hazerdous Weather Outlook

and the forecast box has a large space between the icon and the forecast.  maybe they changed the way it wraps around.

Could be worse


http://weather.rms.rdale.org
The missing 'Outlook' types from alerts has been noted to the developers .. I don't know if/when they'll fix that.  Currently the api.weather.gov site does have Advisory, Watch, Warning and Statement types, just not 'Outlook' types.
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 wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
also, with the change-can the warning show up in my page too? I forget things
Not on your startpage, I think, as you use only a small part of the complete page.

IMPORTANT: check your settings as there are now 3 files retrieved and NONE is saved to the cache with your current settings.
Code: [Select]
<!-- unable to write cache file ./forecast-MNZ060-0-json.txt -->
< -- unable to write meta cache file ./forecast-MNZ060-0-json-meta.txt -->
<!-- unable to write cache file ./forecast-MNZ060-0-json-alerts.txt -->
Every time the page is  loaded the same 3 files are retrieved from the NWS server.

Wim

Here are my settings -What do I need to change? PHP is not my forte'.
Quote

#$iconDir = './forecast/imagesPNG-86x86/'; // testing only
#$iconDir = './forecast/imagesGIF-55x58/'; // testing only
$iconDir = './forecast/images/';
$iconType = '.jpg';        // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
$cacheFileDir = './';      // default cache file directory
$iconHeight = 55;  // default height of conditions icon (saratoga-icons.zip)
$iconWidth  = 55;  // default width of conditions icon  (saratoga-icons.zip)
$refreshTime = 300; // default refresh of cache 600=10 minutes
#
$ourTZ = 'America/Chicago'; // default timezone (new V5.00)
#$timeFormat = 'd-M-Y g:ia T';  // Fri, 31-Mar-2006 6:35pm TZone (new V5.00)
$timeFormat = 'g:i a T M d, Y';  // 3:17 am PST Jan 28, 2017 (new V5.00, like old forecast timestamp display)
#
Currently the settings point to the root for caching files.
Code: [Select]
$cacheFileDir = './';      // default cache file directoryI have no idea why that is not working for you except that maybe the permissions for the root are set to low, should be 755.

You could try to use the  WDL2/ folder as that folder is accepting FTP uploads
Code: [Select]
$cacheFileDir = './WDL2/';      // default cache file directory
It all depends how security is set on your server and it seems to be a "school" server so maybe you can ask for support there.

Wim
 

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
I'm now getting heat Index and Wind Chill text today.


You can fix adding the 2 lines Murry added, temporarily removes heat index 0 until real fix. Post 101
Randy

 

anything