Author Topic: NOAA Weather Radio ORG Saratoga Script  (Read 894 times)

0 Members and 1 Guest are viewing this topic.

Offline NWROrg Team

  • Save A Life
  • Senior Member
  • **
  • Posts: 58
    • NOAA All Hazards Weather Radio
NOAA Weather Radio ORG Saratoga Script
« on: September 13, 2018, 09:21:34 AM »
NOAA WEATHER RADIO SARATOGA TEMPLATE and STAND ALONE...
NWROrg became SSL ... Your templates and stand alone aren't working correctly...
You are not be synchronizing with the main NWROrg server databases,...
You will ALSO not be loading on your website...
UNLESS YOU MAKE THE FOLLOWING CHANGES to your scripts,
KEN will be releasing an updated version soon.

Add the "S" to the link in the following lines as shown:

NWR-radios-data.php

Line 4
Code: [Select]
//Purpose: fetch and cache the https://noaaweatherradio.org/java/NWR-radio-data.js file  Line 37
Code: [Select]
  $fileName = "https://noaaweatherradio.org/java/NWR-radios-data.js";
Line 86
Code: [Select]
    $content = str_replace('https:\\/\\/noaaweatherradio.org\\/content\\/thumbnails\\/',$imagesDir,$content);

NWR-radios-inc.php

Line 55  "NatGeo"
Make the URL "https"
Code: [Select]
NatGeo' => array(
       'name' => 'NatGeo',
         'URL' =>'http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}',
Line 165
Code: [Select]
These audio streams are graciously provided by personal weather website owners and others though <a href="https://noaaweatherradio.org/" target="_blank">NOAAWEATHERRADIO.org</a>.</p>
Line 183
Code: [Select]
see <a href="https://noaaweatherradio.org/" target="_blank">noaaweatherradio.org</a> website "How To?" page for details to submit an audio stream.

Offline Andy G

  • Senior Contributor
  • ****
  • Posts: 292
    • SunPrairieWeather.com
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #1 on: September 13, 2018, 11:16:35 AM »
Thanks for the support. Mine is working after the changes.
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline rrrick8

  • Contributor
  • ***
  • Posts: 138
    • Vermilion weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #2 on: September 13, 2018, 10:02:32 PM »
Thanks for the heads up. Hadn't noticed it wasn't working.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6819
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #3 on: September 16, 2018, 02:55:35 PM »
I've updated the distribution V2.01 at https://saratoga-weather.org/scripts-wxradio.php for https support to noaaweatherradio.org

Changes to NWR-radios-inc.php and NWR-radios-data.php only.  Thanks to all who contributed to the patches!
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1006
    • Joe's Live Weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #4 on: September 20, 2018, 11:47:36 AM »
Ken,

I downloaded and installed the updated scripts and have two issues, one iMac and and one google map.
1. On my iMac...  the Auto Play for the Live Broadcast does not work.  I have to click on "Live Broadcast" to have it play.  Also, the Map that should appear below the "Live Broadcast" area and above the "Coverage Area Map" says "Loading Map" and never loads.
2. When I try to view the "NOAA Radio Map" I get a Google error message " This page can't be load Google Maps correctly.  However, when I "click" OK the maps appears to displaying correctly.  This occurs on all browsers.

Any assistance will be greatly appreciated.

Thanks,
Joe
Davis Pro 2 Plus Wireless D-FARS - Weather Link Serial 5.9.2
Weather Display Version10.37S Build 6
http://www.joesweather.info
Joe's Bloomsky 

CWOP: EW2334  Blitzortung ID: 791


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6819
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #5 on: September 20, 2018, 12:24:29 PM »
For some unknown reason, the code on the page
Code: [Select]
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
is not loading from either source, so jQuery is not initialized and so the NWR-radios.js script fails with
Quote
ReferenceError: $ is not defined NWR-radios.js:262:1
using Firefox as the browser.

Using Chrome, the page loads, but autoplay does not happen.

It may be caused by your webserver using HTTP but responding with a "Upgrade: h2" header to request the browser to use HTTP2 (but that requires https).

Re (2) -- if you see the Google map message, it means the wrong JavaScript (the old one) was cached in the browser -- clear the cache and reload.

If you have something in your cPanel that says 'Use HTTP2', Id suggest turning it off until your website is fully https capable.

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1006
    • Joe's Live Weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #6 on: September 20, 2018, 03:35:42 PM »
Thank you. I'm looking into https now.
Davis Pro 2 Plus Wireless D-FARS - Weather Link Serial 5.9.2
Weather Display Version10.37S Build 6
http://www.joesweather.info
Joe's Bloomsky 

CWOP: EW2334  Blitzortung ID: 791


Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1006
    • Joe's Live Weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #7 on: September 20, 2018, 07:58:03 PM »
Is there away to tell if the certificate was installed? I should be https capable now.
Davis Pro 2 Plus Wireless D-FARS - Weather Link Serial 5.9.2
Weather Display Version10.37S Build 6
http://www.joesweather.info
Joe's Bloomsky 

CWOP: EW2334  Blitzortung ID: 791


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6819
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #8 on: September 20, 2018, 09:04:03 PM »
Yes, it is basically HTTPS capable now.. however, you have links to images that are http:// and need to be https:// to keep the 'lock' icon on.

http://chart.apis.google.com/chart?chs=90x60&chma=0,0,0,0&chd=t:50.8,49.2&cht=p3&chp=1.58&chf=bg,s,65432100&chco=FFD700,000000
http://icons.wunderground.com/data/640x480/mw_rd_anim.gif
http://icons.wunderground.com/data/640x480/mw_vi_anim.gif

on your home page.  You need to go through your site and change the http:// links for images (and any external scripts or CSS) to https:// to keep the entire page contents with a 'lock'.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1006
    • Joe's Live Weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #9 on: September 20, 2018, 10:26:09 PM »
Thank you.  I will do that.
Davis Pro 2 Plus Wireless D-FARS - Weather Link Serial 5.9.2
Weather Display Version10.37S Build 6
http://www.joesweather.info
Joe's Bloomsky 

CWOP: EW2334  Blitzortung ID: 791


Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1006
    • Joe's Live Weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #10 on: September 21, 2018, 09:52:03 AM »
I think I have corrected all of them.

Thanks!
Davis Pro 2 Plus Wireless D-FARS - Weather Link Serial 5.9.2
Weather Display Version10.37S Build 6
http://www.joesweather.info
Joe's Bloomsky 

CWOP: EW2334  Blitzortung ID: 791


Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 307
    • Indian Trail Weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #11 on: September 27, 2018, 12:41:44 AM »
Ken,

Have downloaded and installed your modified scripts but the Google Map will not load. Any ideas? http://indiantrailweather.com/wxradio.php

Thank you
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6819
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #12 on: September 27, 2018, 10:39:47 AM »
With the new script, there is no Google map.. it is a Leaflet/OpenStreetMap map now.

Testing with http://indiantrailweather.com/radios.php (the non-template page) shows you have installed the scripts correctly.

The issue with your wxradio.php template page is that it is not the wxradio.php included with the distribution, but a modified version and I think that is the issue.. some of the old Google-map stuff is still on that page, and a different version of JQuery seems to be loaded.   I'd suggest you use the wxradio.php from the distribution, and debug that first.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 307
    • Indian Trail Weather
Re: NOAA Weather Radio ORG Saratoga Script
« Reply #13 on: September 27, 2018, 10:51:26 AM »
Thanks Ken. Will load the original wxradio.php script and debug. Much appreciated!

Update: Got it Ken. Thank you!  \:D/
« Last Edit: September 27, 2018, 11:47:15 AM by Breezy »
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

 

anything