Page 1 of 1

CumulusMX end of day process

Posted: Wed 11 Nov 2020 1:46 pm
by PaulMy
My Windows10 PC seems to shut down and reboot about once a week. I then have to restart CumulusMX and the other programs. The PC shut down last night at 11:10 PM and I didn't notice it until this morning and then restarted CumulusMX and the other programs. On my CumulusMX with WiFiLogger this is no problem as the archive data is read from the logger and the end of day process is done at midnight. On my CumulusMX with WeatherLink Live on a free Weatherlink.com account there is no data logging so a restart this morning missed the end of day process, i.e. no dayfile entry for 10/11/20.

Other than copying in the data files from CumulusMX/WiFiLogger to the CumulusMX/WLL setup, is there a way to have CumulusMX do an end of day for yesterday?

Enjoy,
Paul

Re: CumulusMX end of day process

Posted: Wed 11 Nov 2020 1:56 pm
by mcrossley
I'll look into this Paul, but obviously with no logger if a complete day is missed, then it will always be missing from dayfile. But if there is partial data for a day and CMX is started on a subsequent day, it should probably close the previous day off with what data it has.

I'll check what the other stations do, if they are the same, then this may mean a wider scale change...

Re: CumulusMX end of day process

Posted: Wed 11 Nov 2020 2:31 pm
by PaulMy
Thanks Mark,
I hadn't checked MXdiags, just that dayfile.txt did not have a 10/11/20 entry and that yesterday.txt was dated 10/11/20 12:00 am so neither updated at 11:11:00 midnight.
If it will help, below is the MXdiags start up and it does look like that at least rain is shown correctly, as we had 0.2 mm yesterday evening at about 23:40 (after the PC had stopped and restarted) and then 0.2 at 12:00:00 am and then 3.0 mm later on today for a total of 3.4 mm (this rain detail from my separate Cumulus1 data log).

Code: Select all

2020-11-11 08:14:17.703 Last update time from today.ini: 10/11/20 9:20:00 PM
2020-11-11 08:14:17.703 Read today file: Date = 10/11/20, LastUpdateTime = 10/11/20 9:20:00 PM, Month = 11
2020-11-11 08:14:17.704 ReadTodayfile: set notraininit false
2020-11-11 08:14:17.710 C:\KomokaWeather\CumulusMXwll\data\alltime.ini
2020-11-11 08:14:17.710 Alltime.ini file read
2020-11-11 08:14:17.716 MonthlyAlltime.ini file read
2020-11-11 08:14:17.720 Month.ini file read
2020-11-11 08:14:17.724 Year.ini file read
2020-11-11 08:14:17.726 Finding raintoday from logfile data\Nov20log.txt
2020-11-11 08:14:17.726 Expecting listsep=, decimal=.
2020-11-11 08:14:17.751 Midnight rain found in the following entry:
2020-11-11 08:14:17.751 10/11/20,00:00,9.1,63,2.3,0,0,0,0.0,0.0,1017.6,19.0,26.6,36,0,9.1,9.1,0.0,0,0.00,749.83,7.5,0,0.0,0,0.0,0.0,9.1,9.1
2020-11-11 08:14:17.755 Midnight rain found, setting midnight rain count = 19
2020-11-11 08:14:17.755 Checking rain counter = 19
2020-11-11 08:14:17.755 Rain counter set to = 19
2020-11-11 08:14:17.757 Getting rain totals, rain season start = 1
2020-11-11 08:14:17.757 Today = 11/11/20
2020-11-11 08:14:17.833 Rainthismonth from dayfile.txt: 8.6
2020-11-11 08:14:17.833 Rainthisyear from dayfile.txt: 701.2
2020-11-11 08:14:17.833 Extra Sensor = Davis AirLink (Outdoor) - standalone=False
2020-11-11 08:14:17.859 Attempting to find AirLink via zero-config...
2020-11-11 08:14:18.079 This Cumulus MX instance is running the latest version
2020-11-11 08:14:18.870 Opening station
2020-11-11 08:14:18.872 Last update time from today.ini: 10/11/20 9:20:00 PM
2020-11-11 08:14:18.873 Read today file: Date = 10/11/20, LastUpdateTime = 10/11/20 9:20:00 PM, Month = 11
2020-11-11 08:14:18.873 ReadTodayfile: set notraininit false
2020-11-11 08:14:18.873 C:\KomokaWeather\CumulusMXwll\data\alltime.ini
2020-11-11 08:14:18.873 Alltime.ini file read
2020-11-11 08:14:18.874 MonthlyAlltime.ini file read
2020-11-11 08:14:18.875 Month.ini file read
2020-11-11 08:14:18.875 Year.ini file read
2020-11-11 08:14:18.875 Finding raintoday from logfile data\Nov20log.txt
2020-11-11 08:14:18.875 Expecting listsep=, decimal=.
2020-11-11 08:14:18.894 Midnight rain found in the following entry:
2020-11-11 08:14:18.894 10/11/20,00:00,9.1,63,2.3,0,0,0,0.0,0.0,1017.6,19.0,26.6,36,0,9.1,9.1,0.0,0,0.00,749.83,7.5,0,0.0,0,0.0,0.0,9.1,9.1
2020-11-11 08:14:18.897 Midnight rain found, setting midnight rain count = 19
2020-11-11 08:14:18.897 Checking rain counter = 19
2020-11-11 08:14:18.897 Rain counter set to = 19
2020-11-11 08:14:18.897 Getting rain totals, rain season start = 1
2020-11-11 08:14:18.897 Today = 11/11/20
2020-11-11 08:14:18.969 Rainthismonth from dayfile.txt: 8.6
2020-11-11 08:14:18.969 Rainthisyear from dayfile.txt: 701.2
2020-11-11 08:14:18.970 Station type = Davis WLL
Enjoy,
Paul

Re: CumulusMX end of day process

Posted: Wed 11 Nov 2020 8:01 pm
by BCJKiwi
Paul,
You could add MX (and other programs if required) to the Windows 10 startup folder.

I have 5 programs starting automatically on reboot including CumulusMX

The Microsoft solution is here

https://support.microsoft.com/en-us/win ... 3c295d89dd

In my

C:\Users\myusername\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

folder I have a file named

startcumulusmx.cmd

which contains

@echo off
C:
cd C:\CumulusMX\
START /min C:\CumulusMX\CumulusMX.exe

Hope this helps

Re: CumulusMX end of day process

Posted: Wed 11 Nov 2020 8:10 pm
by PaulMy
Thanks Brian, I will follow up on that.
For the second instance I have had to run that from the DOS cmd prompt to view it on a different port C:\KomokaWeather\CumulusMXwll\CumulusMX.exe -port 8999
Will see if that will work as well.

Enjoy,
Paul