A container for the Cumulus MX weather station app
10K+
Cumulus MX is a cross platform version of the Cumulus weather station software. Learn more at the Cumulus wiki.
docker compose up to start the containerhttp://{serveraddress}:8998/wizard.htmldocker restart cumulusmxCumulus.ini file to be written. At shutdown of the service, the Cumulus.ini file will be copied to the ./config folder. When the container is restarted, the Cumulus.ini file will be copied back to the /opt/CumulusMX directory from the /opt/CumulusMX/config folder.Note: config changes won't be committed to the INI file outside the container unless the container receives a SIGTERM. The config file is persistent inside the container until the container is rebuilt or updated.
LANG: Optional. If not set will try to infer from Timezone or fallback to en_GB.
MIGRATE: Optional for v4 only. If you don't want to migrate set to false or use force to force a migration to run.
MIGRATE_CUSTOM_LOG_FILES # Optional for v4 only. Add any Custom Daily log files you'd like migrated. Format is "File1 File2 File3".
PORT: Set a custom port for CumulusMX to use. Helpful for running multiple instances or non-standard ports. See known issues below for more detail on port mapping.
/dev/hidraw0 device is not present the container will fail to start.PORT= environment variable and ensure the CumulusMX port and the docker port are the same.The upstream repo for Cumulus MX is checked daily for new releases. When a new release is identified the build process should automatically trigger and commit a new build to https://hub.docker.com/r/hucknz/cumulusmx and https://ghcr.io/hucknz/cumulusmx. You can use the v3,v4 or v5 tags to get the latest build of each version. The latest tag is currently mapped to v5.
Please ensure you back up your data files before updating to v4. I can not guarantee the migration will work correctly for you.
You can see the migration logic below. There is more detail regarding the CumulusMX version changes available here.
For v4 there is a new data structure. The v4 container will automatically migrate unless told not to.
You can disable the migration by adding an environment variable MIGRATE=false to your docker-compose or -e MIGRATE=false for docker run.
You can also force a migration by setting MIGRATE=force. This can be useful if the migration failed first time.
If you have Custom Daily log files you can pass these to the script by setting an environment variable MIGRATE_CUSTOM_LOG_FILES="File1 File2 File3". Note: as I do not use custom log files this is untested and may not work correctly.
If any of these fails the migration will not proceed:
/opt/CumulusMX/config/.nodata is created to indicate the migration has been skipped so that the migration is not run next time the container is startedIf MIGRATION=force is set then checks will be ignored and the migration will run.
/opt/CumulusMX/config/Cumulus-v3.ini.bak/opt/CumulusMX/backup/datav3/opt/CumulusMX/datav3/opt/CumulusMX/config/.migrated is created to indicate the migration has been completedThe migration process is designed to make the data recoverable but there is no guarantee provided.
If you need to recover there should be a copy of the necessary files available in the following locations:
/opt/CumulusMX/config/Cumulus-v3.ini.bak/opt/CumulusMX/backups/datav3Replacing /config/Cumulus-v3.ini.bak with /config/Cumulus.ini and copying /backup/datav3/ to /data/ should restore things back to v3.
Thanks to @optoisolated for their initial work in containerising Cumulus MX.
Content type
Image
Digest
sha256:8094b1450…
Size
210.2 MB
Last updated
11 days ago
docker pull hucknz/cumulusmx