- Fix: Malformed API JSON returned by api/tags/process.json if no data output is generated
- Fix: Crash on start-up on the 1st of the month between 00:00 and rollover hour when using 9am rollover
- Fix: AWEKAS Sunshine hours were being truncated to integer hours
- New feature: Cumulus MX now supports running as a system service
- When running as a service the normal console output is logged to a file: \MXdiags\ServiceConsoleLog.txt
- On Windows
- To set Cumulus up as a service run it as an Administrator using the command line parameter -install
- To remove the Cumulus system service run it as an Administrator using the command line parameter -uninstall
- The service will stop itself if it detects that the computer is going into standby
- To add parameters to the service when it starts automatically you will have to edit the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CumulusMX\ImagePath
Add the parameters after the quoted executable string. Eg.
"C:\CumulusMX\CumulusMX.exe" -port 9000 - The service can be stopped/started using the usual utilities:
The Services applet:- services.msc (You can pass parameters using this tool, but they are not saved for future use)
The service command line tool:- sc start|stop|query CumulusMX [optional parameters for start-up here]
- On Linux
- Run Cumulus using the mono-service command instead of mono. You also need to add the command line parameter -service
mono-service -l:/var/run/cmx.pid CumulusMX.exe -service (if pathed to CumulusMX folder)
or
mono-service -l:/var/run/cmx.pid -d:<</path/to/cumulusmx>> CumulusMX.exe -service (from any location) - To stop the service you use kill, which will perform an orderly shutdown of MX
kill
cat /var/run/cmx.pid
- Run Cumulus using the mono-service command instead of mono. You also need to add the command line parameter -service
- New feature:
- When running on Linux there is now an init.d script to start/stop the service.
- The script can be found in the \MXutils\linux folder
- Copy it to your /etc/init.d folder
- Change the permissions to 0755
chmod 0755 /etc/init.d/cumulusmx.sh
- The script supports the following commands: start, stop, restart, status, removelock
- start: Starts MX as a service and creates a lock file to prevent it running again
- stop: Stops MX as a service and removes the lock file
- restart: Stops, then starts MX
- status: Reports if MX is running (only by checking the lock file at present), and dumps the latest console output to screen
- removelock: Removes a stray lock file if one gets left behind
- The command line would be: /etc/init.d/cumulusmx.sh start|stop|restart|status|removelock
- Script name: \MXutils\linux\cumulusmx.sh
- New feature:
- When running on Windows as a service, the service will stop if the computer goes to standby/hibernate mode. A script to set up
a Scheduled Task that will restart the service on resume from standby/hibernate is provided in the \MXutils\windows folder.
The script MUST be run with Administrator priveldges. - Script name: \MXutils\windows\CreateCmxResumeFromStandbyTask.ps1
- When running on Windows as a service, the service will stop if the computer goes to standby/hibernate mode. A script to set up
- Adds a new web tags for the Davis WLL device.
<#ConsoleSupplyV> - The WLL external supply voltage
<#MulticastBadCnt> - Count of multicast packets missed or have bad a CRC
<#MulticastGoodCnt> - Count of good multicast packets received
<#MulticastGoodPct> - Percentage of good multicast packets received - On new installs of Cumulus MX, changes the default value of "WarnMultiple" from false to true
- Adds a download history limit of 50 bad packets for WMR200 station types. Prevously it could get stuck in a loop downloading bad data.
- Adds Show UV-I to the graph hide/show options
- Updates ExportMySQL to include the new Humidex values from b3089
- AWEKAS uploads updated to API v4 - now can include indoor data, soil temp/moisture 1-4, and leaf wetness 1-2. And it supports rapid
updates - minimum 15 seconds if you have a Stationsweb subscription, min 60 secs for Pro accounts, and 300 seconds for normal accounts- IMPORTANT NOTE: THe AWEKAS interval has changed from being set in minutes, to being set in seconds.
You MUST update the AWEKAS interval in the Internet settings/Cumulus.ini file to reflect this change. - New Cumulus.ini entries
[Awekas]
Language=en
SendIndoor=0
SendSoilMoisture=0
SendLeafWetness=0
- IMPORTANT NOTE: THe AWEKAS interval has changed from being set in minutes, to being set in seconds.
- Enabling/disabling and changing intervals for Twitter, WUnderground, Windy, PWS Weather, WOW, APRS, AWEKAS, Weather Cloud, MQTT from
Internet Settings now takes immediate effect and does not require a Cumulus restart. - Adds a new Cumulus.ini file only, read-only setting
[Station]
SunshineHrsDecimals=1 - Adds a new folder in Dist zip file: /MXutils
In here I will add the various scripts etc that are provided with the releases to update MySQL or aid moving from one release to the next.
See above for new Windows and Linux scripts when running as a service