Page 1 of 1

Cumulus + Weatherlink Script.

Posted: Thu 20 Jun 2019 11:18 pm
by Phil23

So I have a Scheduled Task that starts Cumulus on boot & it runs happily.

Periodically I shut it down & update Weatherlink Via a shortcut that point to:-
"C:\WeatherLink\WeatherLink 6.0.3.exe" -d

Then Start Cumulus again with the Desktop link that points to:-
C:\Windows\System32\schtasks.exe /run /tn "\Weather Tasks\Start Cumulus"
The Task that starts it on login.

Would like to automate it so it happens at least every day, but always seem to get in a know athe the launch task is constantly sitting in the running state, (0x41301) untile Cumulus is terminated.

Have had multiple tries over the years without complete success.

For example this task,

Code: Select all

C:\CumulusMX\CumulusShutdown.exe (That exe is an AutoHotKey complied script that focuses on the MX window & sends it Ctrl-C)
ping -n 5 localhost
ping -n 5 localhost
The AutoHotKey Script:-

Code: Select all

#Warn  ; Enable warnings to assist with detecting common errors.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
WinActivate, C:\CumulusMX\CumulusMX.exe
Send ^c

Everything seems to get caught in the loop if tasks being still running while Cumulus is running.

It shouldn't be that hard as I have a means to shutdown Cumulus, & a command line to download the WL data then exit.
The pings above are a simple delay so the task don't execute too quickly.

Any thoughts or suggestions?