WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: ed_heaton on January 30, 2023, 05:01:09 PM

Title: Weather Radio Blank Screen
Post by: ed_heaton on January 30, 2023, 05:01:09 PM
Curious if anyone else is getting a blank screen for the NOAA/EC All Hazards Radio?
Title: Re: Weather Radio Blank Screen
Post by: saratogaWX on January 30, 2023, 06:08:56 PM
Looks like your webserver is being hit with a JavaScript based challenge (likely created by the noaaweatherradio.org webserver) and the main JSON file to set up the page doesn't get fetched, so the page remains unformatted.

As a bypass, change wxradio.php from
Code: [Select]
<script src="NWR-radios-data.php"></script>
to
Code: [Select]
<script src="https://noaaweatherradio.org/java/NWR-radios-data.js"></script>
to fetch the control file directly from your browser.

I'll have to ask Cutty about the excessive 'protection' for the NWR-radios-data.js file.. it should be freely accessible.
Title: Re: Weather Radio Blank Screen
Post by: ed_heaton on January 30, 2023, 06:33:59 PM
As always Ken, Thank You!!!  That did the trick :-)