Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

quake-json V3.00 available - plate/fault maps added

Discussion of Ken True's web site templates

Moderator: saratogaWX

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

quake-json V3.00 available - plate/fault maps added

Post by saratogaWX »

I've finished adding tectonic plate and fault maps display (along with two new free maps: NatGeo and Delorme) to quake-json scripts V3.00 -13-Nov-2019

Standalone users: download the .zip file or use the GitHub distribution
Saratoga template users: Use the update tool page with a query of Base-*, *-Plugin, 13-Nov-2019

The script now includes 3 USGS fault displays, one Phillippines display, two Worldwide displays, and one UK-BGS display.
The plate display is from the USGS.

See the attached for sample image outputs.

Best regards,
Ken
You do not have the required permissions to view the files attached to this post.
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: quake-json V3.00 available - plate/fault maps added

Post by BeaumarisWX »

Hi Ken,
Thanks as always, (hope you are well).
Just curious the "./cache/quakesjson.txt " does not get created and on every page load "quake-json.php" downloads new data.
Maybe I have missed something. https://beaumaris-weather.com/quakes.php
Kind Regards,
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
User avatar
saratogaWX
Posts: 1170
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: quake-json V3.00 available - plate/fault maps added

Post by saratogaWX »

Still healthy, thanks to shelter-in-place since mid March.. thanks for asking :)

It looks like there is no ./cache/ directory, or it is not writable by PHP so cache/quakesjson.txt gets a 404-Not Found.

The ./cache/ directory should have permissions of 0755 on a *nix webserver.

If the cache file can't be found/loaded, it fetches the data from the USGS and attempts to save that data in the cache.
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: quake-json V3.00 available - plate/fault maps added

Post by BeaumarisWX »

Hi Ken,
Well that good news, make sure you stay that way.
Well I am a aloss matey, the ./cache/ folder does exist and I have many other scripts caching to it (it is 0755).
I also noticed say Simon's site for instance seems not to cache either.

example : https://www.conligwx.org/cache/quakesjson.txt and https://www.conligwx.org/quakesjson.txt

also :

https://vinesweather.com/cache/quakesjson.txt and https://vinesweather.com/quakesjson.txt

Looking at the last updated times of all these cached files I'm wondering if they relate to upgrades and also possibly because the pages generally load ok even though not caching, that it's just not been picked up before.

Has me baffled.
Kind Regards,
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
User avatar
saratogaWX
Posts: 1170
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: quake-json V3.00 available - plate/fault maps added

Post by saratogaWX »

I think I've found the issue .. it's the HTTP/2 return code.

Try changing quake-json.php

Code: Select all

	  if(!preg_match('|200 |',$RC)) {
to

Code: Select all

	  if(!preg_match('|200|',$RC)) {
(removing the space after 200 above).

HTTP/1 responses are like '200 Ok'. HTTP/2 responses are just the code '200'.
User avatar
saratogaWX
Posts: 1170
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: quake-json V3.01 available - fix for cache issue

Post by saratogaWX »

I've updated the script in the Template, Standalone and GitHub distributions with that fix

quake-json.php V3.01 - 26-May-2020

Thanks for spotting the issue.. some sites get HTTP/1 returns (like mine), while others get HTTP/2 returns (and fail with the V3.00 script).
This update handles both HTTP/1 and HTTP/2 return from the USGS website.
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: quake-json V3.00 available - plate/fault maps added

Post by BeaumarisWX »

Hi Ken,
As always you are a legend matey, I would not have found that though I knew something was astray.
Cache now works a treat, thank you. https://beaumaris-weather.com/quake-json.php - https://beaumaris-weather.com/wxquake.php

Also love the new wxstatus addition, I awoke just now and checked it to see following :D (hello Ken's found a fix) it was so gratifying.
QuakesJsonFix.PNG
Kindest Regards,
You do not have the required permissions to view the files attached to this post.
Last edited by BeaumarisWX on Wed 27 May 2020 3:11 pm, edited 1 time in total.
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
User avatar
saratogaWX
Posts: 1170
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: quake-json V3.00 available - plate/fault maps added

Post by saratogaWX »

Thanks for the kind words! :D

I decided to add the version checking to wxstatus.php since many of the 'it's broken' comments/questions seem to come from folks who don't regularly do a check-fetch-times.php?show=versions on their site before asking the question ...

Many folks do check the wxstatus.php page (I keep mine up ALL the time since there's lots of background processes to keep watch over). Adding the magic box at the end of the wxstatus.php page gives a helpful nudge to have the software remain current (and thereby, hopefully avoid issues as the source website URLs and/or PHP versions update).

As an aside, I'd fixed that issue with other scripts before, I'd just not gotten around to fixing it in quake-json.php since I'd not seen the issue and it hadn't been reported.
So... thanks for reporting it!

Best regards, and stay healthy!
Ken
Post Reply