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 4019) - 03 April 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

Cumulus MX 3.9.2 b3097 Data Log Editor not working

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
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by flort »

The release notes for build 3097 says it fixed broken logfile, extralogfile, and dayfile editors in b3096, however, the logfile editor is still not working for me.

When I save my changes I get an error "Error! Response code: 404 There was an unknown error!" As the dayfile editor is working I assume it is a problem with datalogs.js possibly not identifying the correct datalog file to update.

Can someone please provide some assistance.
freddie
Posts: 2473
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by freddie »

Have you flushed your browser cache? It could be that you are accessing cached versions of files that have changed.
Freddie
Image
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by flort »

Yes, I have cleared cached images and files several times.
freddie
Posts: 2473
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by freddie »

Okay, next step is to ensure that all files in the /interface directory were copied across from the distribution file when you upgraded.
Freddie
Image
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by flort »

I copied across all the files from the download but I have modified the following -
index.html
charts.html
chartshistoric.html
charts.js

This was to allow for my own customisations to the interface. I don't think any of the changes should have impacted on the functionality as everything else is working fine.

I downloaded the installation files again tonight and copied across datalogs.js but it hasn't made any difference.
freddie
Posts: 2473
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by freddie »

I would do a fresh extraction and reapply your changes - not just the interface contents but the executable too and it's library dependencies. Your 404 could have come from a call to a data endpoint that was missing rather than a missing file.

I would also do a fresh install elsewhere on your filesystem and independently test from that. I used the logfile editor yesterday and it was working for me.
Freddie
Image
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by flort »

Thanks. I'll give all of that a go tomorrow and let you know the outcome.
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by flort »

I did a separate install in a different location and the logfile editor still doesn't work. I didn't change any of the configuration files so everything was standard in the downloaded installation. I just copied across my data files, report files and cumulus.ini.

I am running Microsoft Edge for my browser but also tried with Google Chrome and that still didn't work. It still appears to me to be something to do with not finding the file to write the changes to. The logfile loads fine and brings up the editor window but it's only when I save the changes that the error occurs. The dayfile editor works and I think that's because there is only one file.

I'm only a novice at javascript but when I compare datalogs.js and dayfileeditor.js I see a difference in the way it handles the response. datalogs.js reads -
function formatResponse(action, rowdata) {
response = '{"action":"' + action + '","line":' + rowdata[0] + ',"month":"' + currMonth + '","extra":"false","data": [';

I assume the response line is telling it what action to take and what file to apply it to. The same line in dayfileeditor.js reads -
response = '{"action":"' + action + '","line":' + rowdata[0] + ',"data": [';

I might be completely off track and you are using the logfile editor without any issues so any other suggestions you can give would be greatly appreciated.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by mcrossley »

Can you switch on debug logging, attempt the edit again, then post the current MXdiags file here please?

Though as you are getting a 404 error it means the script is requesting an invalid URL from Cumulus MX so I doubt there will be much to see.

Can you also open the browser dev tools, attempt the edit, then screen shot the network request that generates the 404 error?
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by flort »

I turned on debug logging but the MXdiags file doesn't report anything - refer attached file

Attached screenshot shows the network request from the browser dev tools.
Network Request.png
I've attached an extra screenshot showing the detail from the request initiator.
Network Request Extra Info.png
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by mcrossley »

OK, I have managed to reproduce this, I'll work on a fix...
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by mcrossley »

And the fix will be in the next release.
flort
Posts: 224
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Cumulus MX 3.9.2 b3097 Data Log Editor not working

Post by flort »

Thanks Mark. Appreciate your help.
Post Reply