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

diagnostic settings

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
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: diagnostic settings

Post by mcrossley »

Here is the version I have put on my server - I have only been caught once, but it was a pain. I save the below in the CumulusMX folder as testMXrunningT.bat, have Cumulus process it at my update interval (5 minutes) to file name testMXrunning.bat, then have that as my external program.

Code: Select all

Setlocal EnableDelayedExpansion
if '<#DataStopped>'=='1' (
	if not exist stopping.flag (
		echo Cumulus stopping @ %time% > stopping.flag
		taskkill /im CumulusMX.exe
:loop
		tasklist | find /i "CumulusMX"
		if %errorlevel% == 1 (
			del stopping.flag
			rem Optionally restart Cumulus here.
		) else (
			timeout 5
			goto loop
		)
	)
)
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: diagnostic settings

Post by BCJKiwi »

Mark,
I process at realtime as it takes a while to close MX.
I wanted to close MX ASAP so there is a chance to get all the archive records from the logger when restarting.
Running it at tag interval guarantees at least one lost archive record.

Some versions of my realtime.cmd have other actions so the external program slot is already occupied - hence the separate file with realtime.cmd calling the data stopped tag file.
However this seemed to play havoc with Setlocal EnableDelayedExpansion and was unable to use it - took a while to get a syntax that worked OK.

Would not recommend the restart option. As noted in previous post, if the connection is not available when restarting MX nothing is achieved - MX runs but does nothing and won't recognise the connection if it is established later. So if you are there to fix the connection you may as well restart MX and monitor that it is running OK.
Post Reply