Author Topic: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov  (Read 5142 times)

0 Members and 1 Guest are viewing this topic.

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 558
    • Up Country Maui Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #25 on: December 21, 2020, 01:39:44 PM »
Ken and Jerry, have you seen this?

https://nws.weather.gov/products/PDD/PDD_ExpRidgeII_2020.pdf

Might be interesting reading?

Aloha,

--Stan Y.
  Maui, Hawaii

Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #26 on: December 21, 2020, 03:39:20 PM »
Hi Stan,
Yes, we saw that announcement -- the new radar.weather.gov is built on those contents (somewhat poorly and slowly).
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 K6GKM

  • CamWX.com
  • Contributor
  • ***
  • Posts: 124
    • CamWX
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #27 on: December 21, 2020, 05:07:32 PM »
On the bright side, these developments have finally pushed me to get the GRLevel3 script fully functional.  It's good alternative for now... The only drawback I can see is Windows 10's proclivity of restarting without asking permission first when it wants to update something.  I've got Start Watch to manage program uptime, but cropping and sizing the radar window and starting the publishing is a different story.  I know AutoIT is out there, and I'll likely need to dive into that particular deep end here at some point.  At least I've got something for my users to look at when it comes to local radar.

Jerry- your GRLevel3 HAniS script is great.  Thanks for putting that together.

-Grant
« Last Edit: December 21, 2020, 05:09:03 PM by K6GKM »
Grant Miles
Camarillo, CA, USA
Owner/Admin - CamWX.com
SKYWARN Spotter
Station Hardware: Davis Vantage Pro2 Plus w/ 24hr FARS
Station Software: Weather Display, Weather Message, FWI Calculator, StartWatch, with social media & messaging automation using Make.com, Twilio, and Brevo.


Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #28 on: December 24, 2020, 12:40:50 PM »
I am having issues now with the left hand map on my home page. Using Chrome as my browser I get the wrong radar images.... using Safari, I get the correct radar with a blank background. Would anyone know what my issue is?

Thanks,
Joe

www.joesweather.info
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #29 on: December 24, 2020, 12:55:23 PM »
I am having issues now with the left hand map on my home page. Using Chrome as my browser I get the wrong radar images.... using Safari, I get the correct radar with a blank background. Would anyone know what my issue is?

Thanks,
Joe

www.joesweather.info

Hi Joe, I think the issue is your index.php page wasn't modified to use the USA-regional-maps-inc.php page.  See this post for more info.
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 Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #30 on: December 24, 2020, 08:04:20 PM »
I am having issues now with the left hand map on my home page. Using Chrome as my browser I get the wrong radar images.... using Safari, I get the correct radar with a blank background. Would anyone know what my issue is?

Thanks,
Joe

www.joesweather.info

Hi Joe, I think the issue is your index.php page wasn't modified to use the USA-regional-maps-inc.php page.  See this post for more info.

Thanks Ken, Looks like i am having trouble uploading the updated files to my host.
Joe
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #31 on: December 24, 2020, 08:21:12 PM »
Ken,
My files are now uploading again. However, my problem is still occurring. I read the readme file and made the changes. Have I missed something?

Joe

www.joesweather.info
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #32 on: December 25, 2020, 01:35:45 PM »
You did it correctly, Joe.  The left map now shows the NWS radar image for KILN.  The NWS radar image is just the measly amount of graphics they now provide for individual radars, and no more regional radar composites. :(
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 spweather

  • Contributor
  • ***
  • Posts: 130
    • Sand Point Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #33 on: December 25, 2020, 05:54:51 PM »
Thanks Ken for updating this.

I'm also having problems with the left map, it is displaying the sw NWS region, however the tool tip properly reflects my region of nc (Great Lakes).

https://www.sandpointweather.com

Dennis
Regards,
Dennis

- Davis Wireless Vantage Pro2 Plus w/24hr FARS
- Davis (Ultra)Sonic Anemometer
- Boltek/MicroLDN TOA Lightening Detection
- Porcupine Labs LR4/Fluke 414D Laser Rangefinder snow depth measuring sensor


Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #34 on: December 25, 2020, 06:26:09 PM »
You did it correctly, Joe.  The left map now shows the NWS radar image for KILN.  The NWS radar image is just the measly amount of graphics they now provide for individual radars, and no more regional radar composites. :(

Thank you, Ken.

Hopefully the NWS will get everything together soon.

Joe
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #35 on: December 25, 2020, 06:30:49 PM »
Thanks Ken for updating this.

I'm also having problems with the left map, it is displaying the sw NWS region, however the tool tip properly reflects my region of nc (Great Lakes).

https://www.sandpointweather.com

Dennis
Same issue as others have had .. your $SITE['GR3radar'] is not set to your local radar.  It should be
Code: [Select]
$SITE['GR3radar']    = 'kdtx';    // set to lower-case full name of NEXRAD radar site
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 spweather

  • Contributor
  • ***
  • Posts: 130
    • Sand Point Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #36 on: December 25, 2020, 06:45:21 PM »
Ken,

Rats, sorry I didn't pay closer attention to that.

Since I don't have the GRLevel3 product/service my mind ignored it.

Thanks again.
Dennis
Regards,
Dennis

- Davis Wireless Vantage Pro2 Plus w/24hr FARS
- Davis (Ultra)Sonic Anemometer
- Boltek/MicroLDN TOA Lightening Detection
- Porcupine Labs LR4/Fluke 414D Laser Rangefinder snow depth measuring sensor


Offline chbrandt

  • Member
  • *
  • Posts: 2
    • eatdrinkastronomy.com
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #37 on: December 27, 2020, 02:27:59 AM »
Hi All,

Thanks Jerry for the MRMS, now to default it to my area and figure out on put it on my site as well.  Any suggestions or recommendations?

I'd also be interested in this, assuming this is referring to the current 'rightmap' you have displayed on your website.  Looks great!

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #38 on: December 31, 2020, 02:08:14 PM »
A good article about the new NWS radar from our local weather expert Cliff Mass.
https://cliffmass.blogspot.com/2020/12/national-weather-service-weather-radar.html?m=1
"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 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #39 on: January 08, 2021, 02:34:58 PM »
So why is my regional radar not showing up?  Not sure if ND is North Mississippi or Northern Rockies...

https://www.bismarckweather.net/wxnwsradar.php
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #40 on: January 08, 2021, 02:47:43 PM »
You're missing a setting inside Settings.php
Code: [Select]
$SITE['NWSregion'] = 'pir'; for the regional radar from Pierre, SD.
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 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #41 on: January 08, 2021, 03:05:28 PM »
Perfect. Thanks.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline depot44

  • Member
  • *
  • Posts: 19
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #42 on: February 08, 2021, 10:17:27 AM »
Hello, I have this new script working, but I can't seem to get my web page to show the updated (left-side) radar without forcing a refresh on the browser (F5).  The latest images do appear to be in the /cache directory, they're just not displaying on my page.

Any suggestions?

Thanks,
Ken

www.kensbackyard.com/wx

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #43 on: February 08, 2021, 11:40:56 AM »
Hello, I have this new script working, but I can't seem to get my web page to show the updated (left-side) radar without forcing a refresh on the browser (F5).  The latest images do appear to be in the /cache directory, they're just not displaying on my page.

Any suggestions?

Thanks,
Ken

www.kensbackyard.com/wx

Your webserver seems to be set up with caching enabled.  Looking at the headers returned for the image url of http://www.kensbackyard.com/wx/NWS-regional-radar-animate.php?region=ne

shows
Code: [Select]
HTTP/1.1 200 OK
Connection: close
Content-Type: image/gif
Last-modified: Mon, 08 Feb 2021 16:28:00 +0000
Cache-Control: public, max-age=604800
Expires: Mon, 15 Feb 2021 16:35:59 GMT
Transfer-Encoding: chunked
Date: Mon, 08 Feb 2021 16:35:59 GMT
Server: LiteSpeed

The Cache-Control: public, max-age=604800 is causing the browser to think it can safely store the image for 168 hours.

Check the cpanel for cache control - make sure that .gif images are set to expire in only 600 seconds or so.  You may have to contact your hoster's tech support to make changes in the caching behavior.  Generally, weather websites do not work well with caching enabled.
« Last Edit: February 08, 2021, 11:43:12 AM by saratogaWX »
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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #44 on: February 08, 2021, 01:02:35 PM »
Try the V1.03 of the script which adds cache-busting headers and sets the expires to 300 seconds.

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 depot44

  • Member
  • *
  • Posts: 19
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #45 on: February 08, 2021, 01:26:12 PM »
Thanks Ken.  I've checked my Cpanel and didn't see any cache level controls, so I've sent a request off to my provider.
I've also uploaded v1.03, deleted the existing cached files, and will give that a try.

Thanks!
Ken

www.kensbackyard.com/wx

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #46 on: February 08, 2021, 01:29:47 PM »
It looks like your server is emitting a reasonable Expires and Cache-control header with the modified script.
I've released V1.03 to the Base-USA distribution.   Thanks for spotting the problem.
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 depot44

  • Member
  • *
  • Posts: 19
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #47 on: February 08, 2021, 02:26:05 PM »
Thanks again Ken.  I also heard back from my web hoster saying they've changed the cache value as well.  Hopefully I'm all set now.

I'm now entering my 10th year with your scripts, and appreciate all your efforts to keep them current!

Ken
www.kensbackyard.com/wx


Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #48 on: February 12, 2021, 01:46:40 PM »
The rendering of these images by Chrome-based browsers vs. Firefox is interesting.

Firefox:


Brave (Chrome-based):


I think Firefox first shrinks the images, then renders them, whereas I think Brave renders them before shrinking them.  But I could be wrong.  Any thoughts?
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: Update USA-regional-maps-inc.php V1.01 for changes in radar.weather.gov
« Reply #49 on: April 04, 2021, 07:46:31 PM »
Today WU RadBlast stopped working, says under maintenance so started looking around and ran across the Ridge lite and it looks like most are working again with shorter 30-minute gif loops if anyone is interested. Easy way to add radar to certain pages on websites. Maybe the complaints we are going backward with available services worked.

https://radar.weather.gov/ridge/lite/
Randy