Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
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
Run CumulusMX as windows service
Moderator: mcrossley
Run CumulusMX as windows service
Since windows 10 has made it really hard to autostart(impossible) applications on startup with admin privilegs i think it would be good idea to be able to install CumuluMX as windows service.
This would solve the autostart problem...
Myself im a .NET developer and have used Topshelf http://topshelf-project.com/ for making console/service applications.
This would solve the autostart problem...
Myself im a .NET developer and have used Topshelf http://topshelf-project.com/ for making console/service applications.
- mcrossley
- Posts: 12966
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Run CumulusMX as windows service
Don't forget CMX has to run on Linux and MacOS/OSX as well, so your solution has to be cross-platform if it were to be built-in to CMX.
- mcrossley
- Posts: 12966
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Run CumulusMX as windows service
Can you not create a Task under Task Scheduler than runs "Run whether user is logged on or not", Select Admin account of your choice, "At startup" - delayed for [5] mins ?
I run a script at start-up using similar settings that resets a registry key our group policy insists is incorrect
I run a script at start-up using similar settings that resets a registry key our group policy insists is incorrect
Re: Run CumulusMX as windows service
Using Task Scheduler does not work. That was one of the first things i tried. It just throws the same error when you run it without admin privilegs.
- rogerthn
- Posts: 531
- Joined: Thu 11 Apr 2013 6:31 pm
- Weather Station: Ecowitt GW1000/GW1003
- Operating System: Raspberry Pi OS bullseye aarch64
- Location: Trollhättan Sweden
- Contact:
Re: Run CumulusMX as windows service
Have you tried SYSTEM and/or Run with highest privileges?
You do not have the required permissions to view the files attached to this post.
Re: Run CumulusMX as windows service
I followed this https://blog.blksthl.com/2014/03/10/the ... as-system/ guide to get the task to run under SYSTEM account but it didnt help.
Re: Run CumulusMX as windows service
What i ended up doing is using application called NSSM - the Non-Sucking Service Manager https://nssm.cc
Here's what i did step by step:
1) Run command promt as administrator
2) Navigate to folder with nssm.exe - for me it was F:\Downloads\nssm-2.24\win64 - depends where you unpacked nssm.
3) Run command nssm install 4) NSSM gui tool will open, lets configure the service. Here's the screenshots of the tabs where i changed something: I/O redirection is the place where the text you usually see in console window will be written when cumulus is running as service and there is no console window.
5) Click "Install service" button after what NSSM will tell you that service was installed successfully.
6) Now we can go and check out our CumulusMX service under windows services. If everything looks good just restart computer to verify that cumulus is started on startup.
To uninstall the service just run "nssm remove CumulusMX" (command prompt run as admin).
Here's what i did step by step:
1) Run command promt as administrator
2) Navigate to folder with nssm.exe - for me it was F:\Downloads\nssm-2.24\win64 - depends where you unpacked nssm.
3) Run command nssm install 4) NSSM gui tool will open, lets configure the service. Here's the screenshots of the tabs where i changed something: I/O redirection is the place where the text you usually see in console window will be written when cumulus is running as service and there is no console window.
5) Click "Install service" button after what NSSM will tell you that service was installed successfully.
6) Now we can go and check out our CumulusMX service under windows services. If everything looks good just restart computer to verify that cumulus is started on startup.
To uninstall the service just run "nssm remove CumulusMX" (command prompt run as admin).
You do not have the required permissions to view the files attached to this post.
- justinhow
- Posts: 4
- Joined: Sat 26 Dec 2009 8:15 pm
- Weather Station: Watson W-8681
- Operating System: Windows Server 2003
Re: Run CumulusMX as windows service
Brilliant - works for me!
Thanks
Thanks
Station: Davis Vantage Pro2, Cumulus MX, meteotemplate 4.1
Location: Langley, Berkshire, England
http://www.eastberks-weather.com
Location: Langley, Berkshire, England
http://www.eastberks-weather.com
-
- Posts: 41
- Joined: Tue 21 Jun 2011 7:50 am
- Weather Station: Davis Vantage Vue
- Operating System: Windows 10
- Location: Tiverton, UK
Re: Run CumulusMX as windows service
I just upgraded to MX and moved Cumulus to a new PC with Windows 10.
I got this working by setting Windows 10 to startup without requiring a user login/password - I set the PC to login with a local user account (rather than a Microsoft account), run netplwiz and change the tick box to allow startup without user login. (I'm running on a PC which only functions to download the weather station data and connect the results to the outside world).
Then I created a basic task in the task scheduler to run c:/Cumulus/CumulusMX.exe after login with highest privileges. I set the scheduled task to retry 3 times a minute apart.
Andrew
I got this working by setting Windows 10 to startup without requiring a user login/password - I set the PC to login with a local user account (rather than a Microsoft account), run netplwiz and change the tick box to allow startup without user login. (I'm running on a PC which only functions to download the weather station data and connect the results to the outside world).
Then I created a basic task in the task scheduler to run c:/Cumulus/CumulusMX.exe after login with highest privileges. I set the scheduled task to retry 3 times a minute apart.
Andrew
-
- Posts: 1
- Joined: Tue 15 Apr 2014 2:24 am
- Weather Station: Lacrosse WS2300
- Operating System: Windows XP SP3
- Location: Oamaru, New Zealand
Re: Run CumulusMX as windows service
[quote="soend"]What i ended up doing is using application called NSSM - the Non-Sucking Service Manager https://nssm.cc
This worked for me too! Excellent work Soend - thanks.
This worked for me too! Excellent work Soend - thanks.
-
- Posts: 1
- Joined: Mon 23 Apr 2018 8:56 am
- Weather Station: Aercus 1093
- Operating System: Windows 10
Re: Run CumulusMX as windows service
Thanks Soend! I got Cumulus 1 to work fine with Task Scheduler (running without me being logged in) but wouldn't with MX. This is the perfect solution, it runs without login or the CMD prompt on my desktop.
Top work! Thanks!
Top work! Thanks!