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

Updating CumulusMX to latest version - save older files?

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
inmyrvm
Posts: 44
Joined: Thu 19 Nov 2020 9:16 pm
Weather Station: Davis VP2
Operating System: Windows 10

Updating CumulusMX to latest version - save older files?

Post by inmyrvm »

Once again new user question that I couldn't find an answer to but likely exists somewhere. When updating the software are there any files I need to copy off somewhere else to avoid losing any changes I made, such as modifications to indexT.htm or other template files? I assume all the datafiles are left alone.
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: Updating CumulusMX to latest version - save older files?

Post by mcrossley »

If you have modified the default files, then those will be the only ones to watch.

Rather than editing the default files, I recommend you make copies of them and edit those instead. It does mean a bit more effort as you have to add them to the Extra Files list rather than using the simple "Include standard files". But it make upgrading much easier, you can then just copy the whole contents of the zip file, and you can compare the new default files with your modified versions and see what you have to update.

It also means that files that really only need to processed and uploaded once each time time they changed (eg the graph pages, and gauges) can be controlled and you will not have to upload them every 5/1015 minutes whatever you choose.
User avatar
radilly
Posts: 123
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspberry Pi 3, OS Buster Lite
Location: McMurray, PA, US
Contact:

Re: Updating CumulusMX to latest version - save older files?

Post by radilly »

Hi-

I've been tinkering with a script to help me do updates which - after having gotten hopelessly behind on at one point - I am determined to keep up with. I've used it several times and it does look for, and flag any files I have modified from the the standard installation. One file that I've modified and that has also happened to have changed across the last several builds has been identified properly by the script. The script just flags these files leaving it to the user to handle them. There is an option to output a script for either dos or bash to handle the update - skipping these modified files, if any, but noting them in commentary.

If you'd like to try it, I'd be interested in your experience. It is available at https://github.com/radilly/cmxaux. It is written in Python which runs native on most Linux / Pi systems, but Python is easily installed under Windows. I do run on a Pi myself, but I have done some testing on a Windows 10 system and it appears to run properly under the Python 3.5.1 I have installed.

Being cautious, I back up my entire CMX installation before making an update - and I recommend that strongly. While I just use diff on the Pi, I've used WinMerge (https://winmerge.org/?lang=en) on Windows to assess the differences between files and potentially merge them.

You can message me if you have questions, suggestions or need help.
Cheers,
Bob
Post Reply