Hi all,
Very much enjoying having a 'play' with the look and feel of the new web pages - congrats to all.
I did strike an issue making a mod to the index page to include some lightning information from my Ecowitt lightning sensor. MX didn't have any data stored for it and so the time and distance was returning "---". When I added these tags to the websitedata file, it didn't like it and returned an undefined error on the webpage (the "---" string was recorded in the json file). None of the website data would populate to any of the web pages (not just the lightning data). I could see that there was some data in the json file but nothing below the lightning tags. No errors in the MXdiags file I could see.
As it happens, we had a thunderstorm today and some strikes were detected. I added the lightning tags back into the websitedata file and all is good. Not sure if the data file didn't like the non-numeric values.
Cheers
Steve
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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 posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.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 posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
websitedata file error - lightning data (v3116)
Moderator: mcrossley
- ConligWX
- Posts: 1835
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04.1 LTS
- Location: Bangor, NI
- Contact:
Re: websitedata file error - lightning data (v3116)
you did add the lightning tag into the websitedataT.json and not the actual websitedata.json file yes?
-
liddelljs
- Posts: 122
- Joined: Sat 31 Oct 2015 10:22 pm
- Weather Station: Ecowitt GW1001
- Operating System: RPi 3 Raspbian Buster
- Location: Perth Western Australia
Re: websitedata file error - lightning data (v3116)
Hi Simon,
Correct - into the template file. The websitedata.json file contained the non-numeric strings ("---") that I thought were returned when there was no lightning data available. Problem went away when I got some actual data today courtesy of a thunderstorm. Hasn't been an issue since.
Cheers
Steve
Correct - into the template file. The websitedata.json file contained the non-numeric strings ("---") that I thought were returned when there was no lightning data available. Problem went away when I got some actual data today courtesy of a thunderstorm. Hasn't been an issue since.
Cheers
Steve
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: websitedata file error - lightning data (v3116)
Did you add quote marks around the lightning web tag in the template file so it was treated as text?
-
liddelljs
- Posts: 122
- Joined: Sat 31 Oct 2015 10:22 pm
- Weather Station: Ecowitt GW1001
- Operating System: RPi 3 Raspbian Buster
- Location: Perth Western Australia
Re: websitedata file error - lightning data (v3116)
Hi Mark,
Pretty sure the syntax was correct - no problems since the lightning sensor had data. Based on @grimers comments on websitedata.json errors, I'm wondering whether it is something else. I'll keep monitoring and report back if any further problems.
cheers
Steve
Pretty sure the syntax was correct - no problems since the lightning sensor had data. Based on @grimers comments on websitedata.json errors, I'm wondering whether it is something else. I'll keep monitoring and report back if any further problems.
cheers
Steve
-
liddelljs
- Posts: 122
- Joined: Sat 31 Oct 2015 10:22 pm
- Weather Station: Ecowitt GW1001
- Operating System: RPi 3 Raspbian Buster
- Location: Perth Western Australia
Re: websitedata file error - lightning data (v3116)
Well spoke too soon. One of the updates just produce the attached websitedata.json file - not data but a system.argument error. No errors in MXdiags I could see.
Cheers
Steve
Cheers
Steve
You do not have the required permissions to view the files attached to this post.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: websitedata file error - lightning data (v3116)
OK, I have found the issue, it's a conflict between the real time and interval processing, it only occurs when they happen at the same time. It will need a new release to fix.