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

Task Scheduler not running Cumulus MX (Windows 7)

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
CirrusFibratus
Posts: 3
Joined: Mon 08 Jun 2020 3:06 am
Weather Station: LaCrosse WS-2306
Operating System: Windows 7

Task Scheduler not running Cumulus MX (Windows 7)

Post by CirrusFibratus »

Hello all,

I am trying to get Cumulus MX to run on startup via Windows Task Scheduler, however for some reason the task runs without error but Cumulus MX doesn't run.

My setup for the task is as follows:

General
Image

Triggers
Image

Actions
Image
Action settings:
Program/script: cmd.exe
Arguments: /C start "C:\Cumulus MX\CumulusMXDist3082\CumulusMX\CumulusMX.exe"
Start in: C:\Cumulus MX\CumulusMXDist3082\CumulusMX\

Conditions
Image

Settings
Image

The result that I get in Task Scheduler after it has run (everything appears fine here), however as mentioned above, CumulusMX does not run.
Image

Without an error code being produced I'm not sure where to turn for this. CumulusMX runs fine when I do it manually by running the exe in the directory, just not as a scheduled task.

Any help with this would be appreciated.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Task Scheduler not running Cumulus MX (Windows 7)

Post by sfws »

I have not studied every image, nor do I pretend to be an expert on Task Scheduler.
Looks similar to my setup, except I had "when user is logged on". It might be that the task cannot start outside a user context?
Try changing that? See if that is the problem.
CirrusFibratus
Posts: 3
Joined: Mon 08 Jun 2020 3:06 am
Weather Station: LaCrosse WS-2306
Operating System: Windows 7

Re: Task Scheduler not running Cumulus MX (Windows 7)

Post by CirrusFibratus »

sfws wrote: Mon 08 Jun 2020 6:13 am I have not studied every image, nor do I pretend to be an expert on Task Scheduler.
Looks similar to my setup, except I had "when user is logged on". It might be that the task cannot start outside a user context?
Try changing that? See if that is the problem.
Strangely enough, that got the task to execute, but it merely opened a command window with the following:
Image

Thankfully, I was able to get CumulusMX to run at startup simply by adding it to the 'Startup' Windows folder, in case anyone is unaware of how to do this and sees this thread in the future, see below:

I have only tested this with Windows 7, I'm unsure how or if it would work in later versions.

1. Find the CumulusMX.exe file (wherever you chose to install CumulusMX), then right click and select 'Copy'
2. Open the Start Menu
3. Select 'All Programs'
4. Scroll down until you find 'Startup'
5. Right click the 'Startup' folder and select 'Open'
5. Right click within the Startup folder and select 'Paste Shortcut'

For context, the reason I was requiring CumulusMX to run at startup was because I require the mini PC I use to restart daily to avoid crashing issues.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Task Scheduler not running Cumulus MX (Windows 7)

Post by sfws »

CirrusFibratus wrote: Mon 08 Jun 2020 9:29 am but it merely opened a command window with the following:
It looks like you did not define the task correctly. I cannot spot what is wrong on that "action" screen, but I guess something is not right. By the way the "..." quotation marks are only needed when what is included contains a space, because space otherwise splits parameters. This is all covered in the Wiki by the way at https://cumuluswiki.org/a/Cumulus_MX#Se ... ic_running
CirrusFibratus wrote: Mon 08 Jun 2020 9:29 am I was able to get CumulusMX to run at startup simply by adding it to the 'Startup' Windows folder
This is also covered at that same Wiki reference and yes it does work for Windows 10.
zoomx
Posts: 65
Joined: Sat 15 Mar 2014 4:50 pm
Weather Station: Froggit GW1000
Operating System: Windows-Linux
Location: Italy

Re: Task Scheduler not running Cumulus MX (Windows 7)

Post by zoomx »

I believe that only services can run without any user logged in.
Last edited by zoomx on Mon 08 Jun 2020 5:29 pm, edited 1 time in total.
CirrusFibratus
Posts: 3
Joined: Mon 08 Jun 2020 3:06 am
Weather Station: LaCrosse WS-2306
Operating System: Windows 7

Re: Task Scheduler not running Cumulus MX (Windows 7)

Post by CirrusFibratus »

Thank you for the help everyone, I did take a look at the wiki but I must have missed an important section.

Regarding it not being able to run without being logged in, that is something I have since discovered as well.

If I find the error in my setup I will edit my above post to provide a working solution for posterity sake.
Phil23
Posts: 888
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Task Scheduler not running Cumulus MX (Windows 7)

Post by Phil23 »

Very similar to how I start it but only launch it after logon.

The only time I saw an error whas when I didn't specify the start in directory correctly.

Only other apparent difference is you have a deep directory tree.....

Code: Select all

"C:\Cumulus MX\CumulusMXDist3082\CumulusMX\CumulusMX.exe"
Any reason why you are not just running your installation just from C:\CumulusMX?

Only other difference I see to my config is you trailing \ on the start in path, but adding that to mine didn't may it fail.

Phil.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Post Reply