Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.16.1 (build 3183) - 06 May 2022

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

If you are interested in supporting Cumulus then maybe you would like to contribute to the maintenance of the Wiki? This need not take hours of your time - just a half hour here and there can make a big difference, particularly if many people are doing this. Any contributions are very welcome, whether they involve new content or editing of existing content. It will be very helpful to current and future users of Cumulus software if the Wiki is kept well-maintained and current. If you are interested then please contact forum user saratogaWX and ask for a Wiki account.

Steel Gauges json error

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
The PIT
Posts: 203
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: 1105
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: 203
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: 9968
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster 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: 203
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