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
New Website Problem
Moderator: mcrossley
-
Derekg0pgl
- Posts: 5
- Joined: Mon 15 Jul 2019 5:59 pm
- Weather Station: Weatherduino3.0.0
- Operating System: win10
New Website Problem
Hello
I have installed the latest version of CumulusMX from the downloadable image to my Raspberry Pi3 B+.
I transferred my existing Data directory and Cumulus.ini and strings.ini files to
the new build.
I also copied over the contents of the new webfiles directory to /public_html/CumulusMX on my web site.
The program is working fine except for the webpage, although the new template is displaying on my webpage, only the Charts and Gauges sections are working, also the moon image is showing.
But no data is is being displayed on any other page.
Have I missed something?
I did tick the " I want to use the default web site box "
Derek
I have installed the latest version of CumulusMX from the downloadable image to my Raspberry Pi3 B+.
I transferred my existing Data directory and Cumulus.ini and strings.ini files to
the new build.
I also copied over the contents of the new webfiles directory to /public_html/CumulusMX on my web site.
The program is working fine except for the webpage, although the new template is displaying on my webpage, only the Charts and Gauges sections are working, also the moon image is showing.
But no data is is being displayed on any other page.
Have I missed something?
I did tick the " I want to use the default web site box "
Derek
- 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: New Website Problem
A link to your web site would be helpful if you can provide one.
-
Derekg0pgl
- Posts: 5
- Joined: Mon 15 Jul 2019 5:59 pm
- Weather Station: Weatherduino3.0.0
- Operating System: win10
-
Derekg0pgl
- Posts: 5
- Joined: Mon 15 Jul 2019 5:59 pm
- Weather Station: Weatherduino3.0.0
- Operating System: win10
Re: New Website Problem
Here is my ftp log file.
ftplog.zip
ftplog.zip
You do not have the required permissions to view the files attached to this post.
- 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: New Website Problem
Mark, when you "inspect" that page and goto console I get:
2setpagedata.js:161 Data Request Failed: parsererror, SyntaxError: Unexpected token M in JSON at position 827
8setpagedata.js:161 Data Request Failed: parsererror, SyntaxError: Unexpected token M in JSON at position 827
websitedata.json file is however there. http://www.valder.co.uk/CumulusMX/websitedata.json
Derek, have you changed anything in the webpages at all?
2setpagedata.js:161 Data Request Failed: parsererror, SyntaxError: Unexpected token M in JSON at position 827
8setpagedata.js:161 Data Request Failed: parsererror, SyntaxError: Unexpected token M in JSON at position 827
websitedata.json file is however there. http://www.valder.co.uk/CumulusMX/websitedata.json
Derek, have you changed anything in the webpages at all?
- 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: New Website Problem
Ah, the forecast string is the culprit.
it is...
Or the actual string is...
The string itself stars with a quote character, and there are lots of other quotation characters in it that are messing up the JSON. Depends on whether that is coming from a thrid party source or MX. Third party would need looking at, if it is from MX, then I suspect the strings.ini has got some invalid entries in it.
CMX should really be HTML escaping any text to avoid that, I'll take look at fixing it.
it is...
Code: Select all
""Mostly clear and cooler. " """""Code: Select all
"Mostly clear and cooler. " """"CMX should really be HTML escaping any text to avoid that, I'll take look at fixing it.
- 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: New Website Problem
A quick fix!
Edit /web/websitedataT.json
At line 35, change...
to
Edit /web/websitedataT.json
At line 35, change...
Code: Select all
"forecast":"<#forecast>",Code: Select all
"forecast":"<#forecastenc>",-
Derekg0pgl
- Posts: 5
- Joined: Mon 15 Jul 2019 5:59 pm
- Weather Station: Weatherduino3.0.0
- Operating System: win10
Re: New Website Problem
"Brilliant" The fix worked a treat.
Many thanks to Mark and Simon for there very quick responses.
Derek
Many thanks to Mark and Simon for there very quick responses.
Derek
- 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: New Website Problem
Great, now you just need to fix your forecast strings. I suspect you have an "old" strings.ini created from a samplestrings.ini some time ago, the format changed slightly for some entries - mainly the forecast strings iirc. Compare it with the samplestrings.ini that comes with the distribution.
-
Derekg0pgl
- Posts: 5
- Joined: Mon 15 Jul 2019 5:59 pm
- Weather Station: Weatherduino3.0.0
- Operating System: win10
Re: New Website Problem
Thanks Mark.
strings.ini now updated.
Derek
strings.ini now updated.
Derek