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

New Website Problem

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Derekg0pgl
Posts: 5
Joined: Mon 15 Jul 2019 5:59 pm
Weather Station: Weatherduino3.0.0
Operating System: win10

New Website Problem

Post by Derekg0pgl »

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
User avatar
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

Post by mcrossley »

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

Re: New Website Problem

Post by Derekg0pgl »

Sorry, I should have included it earlier.

http://www.valder.co.uk/CumulusMX/index.htm
Derekg0pgl
Posts: 5
Joined: Mon 15 Jul 2019 5:59 pm
Weather Station: Weatherduino3.0.0
Operating System: win10

Re: New Website Problem

Post by Derekg0pgl »

Here is my ftp log file.
ftplog.zip
You do not have the required permissions to view the files attached to this post.
User avatar
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

Post by ConligWX »

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?
User avatar
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

Post by mcrossley »

Ah, the forecast string is the culprit.

it is...

Code: Select all

""Mostly clear and cooler. " """""
Or the actual string is...

Code: Select all

"Mostly clear and cooler. " """"
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.
User avatar
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

Post by mcrossley »

A quick fix!

Edit /web/websitedataT.json

At line 35, change...

Code: Select all

"forecast":"<#forecast>",
to

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

Post by Derekg0pgl »

"Brilliant" The fix worked a treat.
Many thanks to Mark and Simon for there very quick responses.
Derek
User avatar
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

Post by mcrossley »

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

Post by Derekg0pgl »

Thanks Mark.
strings.ini now updated.
Derek
Post Reply