Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.6.5 (build 3081) - 28 May 2020 (please see important announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

See the Wiki to download the software or click on the Downloads link in the Forum Banner.

AutoStart under Windows

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
stevendt
Posts: 33
Joined: Sat 23 May 2020 4:19 pm
Weather Station: Davis Vatnage Pro2 Plus
Operating System: Windows 7/10

AutoStart under Windows

Post by stevendt »

Hi,
I have just downloaded the latest version of CumulusMX and am trying to get it set up under Windows

The program will run on a machine that runs other Weather Software, currently, everything is running through VirtualVP and started/monitored by StartWatch.I would like Cumulus to auto-start on Windows startup, but I am struggling to get StartWatch to do this. Can anyone help please?

I have seen that Cumulus needs to run as Administrator but I can't find a way for StartWatch to do that. I tried enabling "Run this program as Administrator", but this brings up the UAC dialog which I don't want and StartWatch fails to run the program. I also saw that I can enter a netsh command to allow Cumulus to run without Admin privs. I did that and StartWatch can start the program and the web pages can be used locally and remotely, but the data is not being saved, i.e., the data logs are not being updated so the graphs are not being updated.

Can anyone help me set this up please?
regards
Dave

stevendt
Posts: 33
Joined: Sat 23 May 2020 4:19 pm
Weather Station: Davis Vatnage Pro2 Plus
Operating System: Windows 7/10

Re: AutoStart under Windows

Post by stevendt »

Hi,
an update . . . .

It seems that my lack of logging was due to errors on my station hardware. I am in the middle of repairing some problems and installing Cumulus was something that I have started to do as part of the bigger task of getting the station all operational again. I turned on debugging and saw that the errors in the data seemed to be stopping Cumulus from logging (by design). I found the NoSensorCheck .ini file option and that seems to have got rid of the lack of logging/trending issue. (I will turn it off when I get the station repaired).

I still need to know the best way to do unattended startup of Cumulus though.

regards
Dave

sfws
Posts: 809
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Modified Fine Offset
Operating System: Win. 10 PC
Location: The Marches, UK

Re: AutoStart under Windows

Post by sfws »

Just to say that MX does not have to run as administrator on Windows. It does have to be given permission to create the web server that runs the admin interface. Please see https://cumuluswiki.org/a/Cumulus_MX#Re ... on_Windows for the relevant documentation.

I have to say that I am struggling with automatic unattended start-up of MX myself on Windows, because of a couple of factors not directly related to MX, these are my web server no longer starting unattended and interruptions to my power supply by a contractor working on cables.

As elsewhere in that Wiki documentation states, I was previously successfully starting MX by an entry in the startup folder windows uses for each user. But I also run my own web server, and if MX starts without that apache server running correctly, it used to be okay. For some reason I don't understand, that Apache server is now displaying a prompt every time it is automatically asked to start, and does not actually start until the okay on that message has been clicked, so it will not work unattended! If MX needs to do a FTP to my web server before Apache is actually running there will be a failure.

All went wrong when I set MX to update the standard monthly database table, as it tries to do that as soon as it starts, consequently an automatically started MX crashes with a message "Please zip up your MXDiags and press ENTER to close". I have not mentioned this issue before, because I took the MX out of the start-up folder and started to start MX manually. That way it works perfectly, but I now have to remember to restart it if my PC has been off for any reason (and I'm having my home rewired which does not help).

Phil23
Posts: 471
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: AutoStart under Windows

Post by Phil23 »

sfws wrote:
Sat 23 May 2020 8:28 pm
I have to say that I am struggling with automatic unattended start-up of MX myself on Windows,
I've always had Cumulus start unattended from the XP/Cumulus1 days.

From memory MX has run here on Vista?, Win7 & Currently Win8.

Win8 presented issues with using the Startup Group due to UAC, but I got past that by launching it with Task Scheduler.
For a period I did need to run the task with administrative privileges, but that period now seems to have passed.

The task is set to run at logon (with delay from memory) & I have AutoAdminLogon configured on that PC.
In my case I also have addition triggers for my daily restarts.

For a long time the program to run was simply C:\CumulusMX\CumulusMX.exe,
but during the last week I have changed it to the way Mark recently suggested.

Essentially:-
C1.JPG
C2.JPG
C3.JPG
At this point I can probably reduce my Shutdown/Restarts for WeatherLink to once a day.
Only thing is that would require some timing changes as the download time for WeatherLink to retrieve data would be increased.

Edit:- I also have my Desktop Icon for CMX pointing to the Scheduled Task rather than the CMX exe as this allows it to be always started with the same window properties.
You do not have the required permissions to view the files attached to this post.

Phil23
Posts: 471
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: AutoStart under Windows

Post by Phil23 »

Further to the above,

Details on using AutoAdminLogon can be found here.

Also the Primary noticeable between staring it with just the CumulusMX.exe Vs Cmd.exe as Mark suggested is how the task behaves.

With the first method the Task stays in the running state, So last Run Status alwasy shows as 0x41301 (Running) instead of the Task showing the completed status of 0x0.

Phil.

sfws
Posts: 809
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Modified Fine Offset
Operating System: Win. 10 PC
Location: The Marches, UK

Re: AutoStart under Windows

Post by sfws »

Thanks Phil.

Actually, I saw the exchange between you and Mark, and as I was using Task Scheduler at the time, I changed just as you did.
I basically have what you post (except where it says Configure for Vista, at bottom of screen I had Windows 10).

Yes, I did autostart C1 when I had Vista, and I did use Task Scheduler (TS) then, my reason for using TS was so C1 started regardless of which user I had logged on as. Thus the AppData way of starting was not useful back then.

However since I swapped to W10, I rarely use the user with admin authority, just clicking as necessary run as administrator in my standard user.
Hence when I first moved to MX I started using the "AppData" start method I previously mentioned and explain in the Wiki.

When I first had problems with my web server start up taking longer than it used to, I tried using task scheduler as I could specify in that a delay before it attempted to start MX. I set up the task with configure for W10 as that is what I was using.

But as I said I have further problems with autostart of my web server, now it displays a message that it is taking a long time, and that has to be manually clicked. Again as I said, that meant MX was crashing (not because of the use of TS, but because of the web server issue). Consequently, I disabled the MX autostart, and as my previous post says, currently start it manually.

I will read up on autoadminlogon and so on, sometime, but at the moment it is the weekend, there is nobody turning my power on/off so I can leave everything running.

A higher priority for me is understanding why my web server starter is taking so long it has to give a message now, and that has to be clicked before it finishes. I tried downloading an update (just a minor one), and installing that, but it made no difference. There are various alternative commands I can use for starting the web server to explore and I have done some experimenting already, but most days at present I am out in my garden as much as possible from dawn onwards, so further experimenting on PC needs to wait.

Post Reply