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.

Cumulus + Weatherlink Script.

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
Phil23
Posts: 470
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Cumulus + Weatherlink Script.

Post by Phil23 »

Ok,

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
"C:\WeatherLink\WeatherLink 6.0.3.exe" -d
ping -n 5 localhost
C:\CumulusMX\CumulusMX.exe
The AutoHotKey Script:-

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
WinActivate, C:\CumulusMX\CumulusMX.exe
Send ^c
Return

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?

Cheers.

Post Reply