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 4018) - 28 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

Steel Gauges json error

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
The PIT
Posts: 260
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Steel Gauges json error

Post by The PIT »

Random parserror syntaxerror json parser unexpected end of data at line 1 column 1 of jsondata

This seems to occur after page timeout at times it can run for hours no issues, sometime corrects itself other times it doesn't.

Sadly doens't say which json file and I wonder if it's just hitting the time the json file is updating.

https://www.sheffieldweather.net/live_weather.htm
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk
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: Steel Gauges json error

Post by saratogaWX »

Your homepage uses https://www.sheffieldweather.net/realtimegauges.txt for the JSON to display the Gauges.
The file https://www.sheffieldweather.net/websitedata.json is loaded once at page load. The realtimegauges.txt file is accessed by jQuery every second or so (you should make that every 4 seconds or so).

It's likely that the failure happens when an incomplete realtimegauges.txt file is accessed just while MX is uploading it to your website.
The PIT
Posts: 260
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Re: Steel Gauges json error

Post by The PIT »

Yup definitely the update now does it every 20's then corrects itself four seconds later
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Steel Gauges json error

Post by mcrossley »

In your FTP configuration are you using the "rename" option, that effectively eliminates the time the file is incomplete.
The PIT
Posts: 260
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Re: Steel Gauges json error

Post by The PIT »

That fixed it. Strange it never used to be a problem.
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk
Post Reply