WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: saratogaWX on September 14, 2020, 03:06:58 PM

Title: NOAA Weather Radio Player scripts issue.. SAME codes not displaying
Post by: saratogaWX on September 14, 2020, 03:06:58 PM
You may have noticed that the list of counties no longer has a list of the SAME codes (shows '0undefined' instead).

This is due to a change in the NWS shapefiles for the radios (<radiocall>_same.zip) that no longer has the FIPS data variable, just the NAME variable in the shapefile data.   

I'll need to find a different way of including the SAME codes with the county coverage list, so there'll be an update to the script set soon..

Best regards,
Ken
Title: Re: NOAA Weather Radio Player scripts issue.. SAME codes not displaying (fixed!)
Post by: saratogaWX on September 15, 2020, 08:11:54 PM
So, it looks like the NWS had regenerated all the {radio}_same.zip shapefiles on the site back around August 2, 2020 -- they'd removed some data from those files (specifically the SAME/FIPS data), so the V3.03 script would just display 'undefined' for the SAME code.

I've written some scripts to run on noaaweatherradio.org and changed the generation program to include the SAME codes in the NWR-radios-data.js file which the script set uses.

So.. Version 3.04 is now ready, and as a plus, it includes the 'Remarks' section shown on the detail page for a NWR display.

The full package is available at https://saratoga-weather.org/scripts-wxradio.php#wxradio for download.

If you're running V3.03 of the script, only two files have changed (NWR-radios.js, NWR-radios-inc.php) and can be downloaded from here (https://saratoga-weather.org/wxradio-V3.04-update.zip) .. just replace the files on your site (no customization needed) and do a shift-reload of the page in your browser to get the new NWR-radios.js to load.
Title: Re: NOAA Weather Radio Player scripts issue.. SAME codes not displaying
Post by: gwwilk on September 15, 2020, 10:51:02 PM
Thanks, Ken!  Working well here. =D&gt; [tup]