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 4018) - 28 March 2024

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

Editing CMX logs using Windows Cumulus 1

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
User avatar
jpsc
Posts: 179
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Bullseye
Location: Wye valley, Herefordshire, UK
Contact:

Editing CMX logs using Windows Cumulus 1

Post by jpsc »

My logs and history are a mess due to a malfunctioning Fine Offset station.

I would like to get rid of all the zeros and spikes to make a clean history.

Just supposing I stop CMX and duplicate the data directory into my old Cumulus setup on Windows. Using select-a-graph I can look at each month and easily see what is wrong. I will be able to use a text editor to cut out great swathes of corrupt history from the logs. I then use the Cumulus editor to fix up the monthly, yearly and alltime summaries. I estimate that 6 months of the past two years need drastic surgery, but I could run over all of them to make sure the monthly files are consistent.

The fly in the ointment is the date format difference in the ini files; the monthly logs are compatible between CMX and C1 - possibly needing a line ending change.

Changing the date format in the ini files is simple, a sed script will do it. Changing back is also not a problem.

After all the files are edited, it is just a matter of copying them back over the original CMX files (NB taking backups first) and restarting CMX.

Can anyone see a flaw in this approach? Are there any other files that need to be changed? (all the ini files in the data directory, and cumulus.ini itself)

ToWindowsDates.sed

Code: Select all

s,([0-9]{4})-([0-9]{2})-([0-9]{2})T,\3/\2/\1 ,g
ToUnixDates.sed

Code: Select all

s,([0-9]{2})/([0-9]{2})/([0-9]{4}) ,\3-\2-\1T,g
Batch file to run on Windows:

Code: Select all

for %%i in ("*.ini") do (
  sed -r -i -f ToWindowsDates.sed %%i
)
Has anyone tried anything like this?
John Cooper

Cumulus 3 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
User avatar
mcrossley
Posts: 12697
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Editing CMX logs using Windows Cumulus 1

Post by mcrossley »

I have edited MX files in Cumulus 1 before without any issue, but my date formats are the same so it was easy.
User avatar
jpsc
Posts: 179
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Bullseye
Location: Wye valley, Herefordshire, UK
Contact:

Re: Editing CMX logs using Windows Cumulus 1

Post by jpsc »

Thanks, I'll give it a go
John Cooper

Cumulus 3 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
Locked