Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

WXQUAKES PROBLEM??

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
acatalano
Posts: 91
Joined: Tue 16 Jun 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

WXQUAKES PROBLEM??

Post by acatalano » Sun 14 Jan 2018 7:09 pm

I updated my website termplates for boulderwx.com on January 9. One of the most attractive additions IMHO is the earthquake map feature. I had a google maps API key etc., and quickly got it working fine. However since then I've noticed that most of the time the map does not display and What does display is:

"The USGS feed for earthquakes was not available at this time."

Of course I can follow the link to USGS and there is a map that displays there. So my question is...is the USGS site just too busy or flaky or is it possible I have a problem? I have set the debug switch in quake-json but I'm not getting any error messages. I also manually added my lat & log inside wxquakes.php but nothing has worked so far. I haven't seen a map in several days so I thought I'd ask...anyone else having a problem?
Best Regards,
Anthony Catalano
Boulder, Colorado, USA
Webcam & Weather at:
http://www.boulderwx.com, http://www.apcat.org, http://www.boulderweather.org
Blitzortung Lightning Detector Station 1965

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: WXQUAKES PROBLEM??

Post by ConligWX » Sun 14 Jan 2018 11:11 pm

Of course I can follow the link to USGS and there is a map that displays there.
from your website or another PC? as you website is not loading data, then perhaps it is having problems accessing the URL.

can you post/attach you wxquake.php file here.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
saratogaWX
Posts: 912
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: WXQUAKES PROBLEM??

Post by saratogaWX » Sun 14 Jan 2018 11:20 pm

Looking at the view-source for your wxquake.php page shows you're running the current version of the script
<!-- quake-json.php V1.13 - 30-May-2017 -->
<!-- lat=40.0652777 long=-105.32666 dist=2000 mag=1.0 distanceDisplay ='mi' -->
<!-- loading ./cache/quakesjson.txt from https://earthquake.usgs.gov/earthquakes ... ek.geojson -->
<!-- curl fetching 'https://earthquake.usgs.gov/earthquakes ... ek.geojson' -->
<!-- HTTP stats: RC=0 dest= port=0 (from sce=)
Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs -->
<!-- headers returned:

-->
but... the curl fetch is failing (without an error message or a curl failure code). It is just not returning data, so the "The USGS feed for earthquakes was not available at this time" message is displayed.

What you should see is
<!-- loading ./cache/quakesjson.txt from https://earthquake.usgs.gov/earthquakes ... ek.geojson -->
<!-- curl fetching 'https://earthquake.usgs.gov/earthquakes ... ek.geojson' -->
<!-- HTTP stats: RC=200 dest=23.33.171.50
Times: dns=0.113 conn=0.127 pxfer=0.171 get=0.171 total=0.342 secs -->
<!-- loading finished. -->
<!-- data last modified Sun, 14 Jan 2018 23:02:15 GMT -->
<!-- Update time = Sun, 14-Jan-2018 23:02:15 GMT UTC-->
<!-- Update time = Sun, 14-Jan-2018 15:02:15 PST Local-->
<!-- content length=831096 -->
<!-- found 1167 earthquake records -->
Since your advforecast2.php script uses curl with https successfully (to api.weather.gov), I suspect that the webserver is having a problem with either DNS or routing to the earthquake.usgs.gov website. Most likely, the latter.. a DNS issue usually results in a curl error message.

I'd check your error_log on the site and see what it says.. likely a curl fatal error is resulting in a truncated return of status data from the curl call with your PHP 5.6.33 webserver.

User avatar
ConligWX
Posts: 736
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: MeteoBridge Nano SD
Location: Bangor, NI
Contact:

Re: WXQUAKES PROBLEM??

Post by ConligWX » Sun 14 Jan 2018 11:25 pm

DNS sounds the likely cause. mine is working fine.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

acatalano
Posts: 91
Joined: Tue 16 Jun 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

Re: WXQUAKES PROBLEM??

Post by acatalano » Mon 15 Jan 2018 4:02 pm

Many thanks for the expert diagnosis. I examined the error log but see nothing associated with this problem. My web host does require me to open up outgoing channels, but the only ones I see are associated with AKAMAI so I think those are associated with a webcrawler. I'll contact the support folks at the web host and see if they can help.
Best Regards,
Anthony Catalano
Boulder, Colorado, USA
Webcam & Weather at:
http://www.boulderwx.com, http://www.apcat.org, http://www.boulderweather.org
Blitzortung Lightning Detector Station 1965

acatalano
Posts: 91
Joined: Tue 16 Jun 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

Re: WXQUAKES PROBLEM??

Post by acatalano » Mon 15 Jan 2018 5:01 pm

Problem solved! Looks like Akamai is just a provider. Unblocking the blocked outgoing requests solved the problem. It's odd that it worked for several days then stopped. Thanks for all the expert help!
Best Regards,
Anthony Catalano
Boulder, Colorado, USA
Webcam & Weather at:
http://www.boulderwx.com, http://www.apcat.org, http://www.boulderweather.org
Blitzortung Lightning Detector Station 1965

User avatar
steve
Cumulus Author
Posts: 26714
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: WXQUAKES PROBLEM??

Post by steve » Mon 15 Jan 2018 5:02 pm

Akamai is a Content Delivery Network. It’s quite possible that USGS use it for their web services.
Steve

Post Reply