Author Topic: Cumulus + Weatherlink Script.  (Read 304 times)

0 Members and 1 Guest are viewing this topic.

Offline Phil23

  • Senior Contributor
  • ****
  • Posts: 165
    • Phil's Backyard
Cumulus + Weatherlink Script.
« on: June 21, 2019, 05:21:47 PM »
Also posted in Cumulus forums and the Weatherlink forum here,

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 that the launch task is constantly sitting in the running state, (0x41301) until Cumulus is terminated.

Have had multiple tries over the years without complete success.

For example this task,

Code: [Select]
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]
#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.

 

anything