IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

FTP is broken. I advise all users using my server for their web site to make alternative arrangements.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

WXQUAKES PROBLEM??

Discussion of Ken True's web site templates

Moderator: saratogaWX

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

WXQUAKES PROBLEM??

Postby acatalano » Sun Jan 14, 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
Toxic17
Posts: 692
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis VPro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: WXQUAKES PROBLEM??

Postby Toxic17 » Sun Jan 14, 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://www.conligwx.org/pws/
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: WXQUAKES PROBLEM??

Postby saratogaWX » Sun Jan 14, 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/feed/v1.0/summary/1.0_week.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/feed/v1.0/summary/1.0_week.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
Toxic17
Posts: 692
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis VPro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: WXQUAKES PROBLEM??

Postby Toxic17 » Sun Jan 14, 2018 11:25 pm

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

https://www.conligwx.org
https://www.conligwx.org/pws/
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: WXQUAKES PROBLEM??

Postby acatalano » Mon Jan 15, 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 Jun 16, 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

Re: WXQUAKES PROBLEM??

Postby acatalano » Mon Jan 15, 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: 26688
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: WXQUAKES PROBLEM??

Postby steve » Mon Jan 15, 2018 5:02 pm

Akamai is a Content Delivery Network. It’s quite possible that USGS use it for their web services.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job


Return to “Saratoga Templates”

Who is online

Users browsing this forum: No registered users and 5 guests