Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.2.4 build 3060 - 10 December 2019.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    Cumulus + Weatherlink Script.

    Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

    Moderator: mcrossley

    Post Reply
    Posts: 347
    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 » Thu 20 Jun 2019 11:18 pm


    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
    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

    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?


    Post Reply