Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Extra Webfiles Missing

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

Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Extra Webfiles Missing

Post by Phil23 »

For anyone that has need to close CMX from the Scheduler in Windows here's an updated copy of the utility from AutoHotkey.

It's got a few pop-up boxes that were just for debug & can be removed & recompiled, (Need Ahk installed to compile).

The EXE just runs, & the dialog boxes time out in a second or two.

CumulusShutdown.ahk Script below.

Complied Stadalone exe in the Attached zip.

Cheers

Phil.

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.

if WinExist("ahk_exe CumulusMX.exe")
WinActivate  ; Uses the last found window.

MsgBox, 1,"CMX Will Be Closed", Would you like to continue?,1

IfMsgBox Cancel
{
MsgBox,,"Cumulus Shutdow Utility" , "You pressed Cancel.",3
    Return
}

IfMsgBox Ok
    MsgBox, ,"Cumulus Shutdow Utility", "You pressed Ok.",3

else
{
MsgBox, ,"Cumulus Shutdow Utility", "Message Box Timed Out",1
    Send ^c
    WinWaitClose
MsgBox, ,"Cumulus Shutdow Utility","Cumulus Closed",3
    Return
}
You do not have the required permissions to view the files attached to this post.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Extra Webfiles Missing

Post by Phil23 »

Just noticed a string of errors at the end of the log in a test Start/Stop.

May not mean much as many have duplicated time stamps.

Full log file attached.

On the surface all seems to be running fine & no issues.

Cheers.

Code: Select all

2020-05-22 06:53:47.275 Normal running
Exiting system due to external: Ctrl-C
2020-05-22 06:57:16.118 Cumulus closing
2020-05-22 06:57:16.134 Writing Cumulus.ini file
2020-05-22 06:57:16.196 Completed writing Cumulus.ini file
2020-05-22 06:57:16.196 Station stopping
2020-05-22 06:57:16.212 Closing connection
2020-05-22 06:57:16.212 !!! loop data not received, Comm port is closed
2020-05-22 06:57:16.212 Station stopped
2020-05-22 06:57:16.212 Writing today.ini file
2020-05-22 06:57:16.227 WakeVP: Error - System.InvalidOperationException: The port is closed.
   at System.IO.Ports.SerialPort.DiscardInBuffer()
   at CumulusMX.DavisStation.WakeVP(SerialPort serialPort)
2020-05-22 06:57:16.227 WakeVP: Error - System.InvalidOperationException: The port is closed.
   at System.IO.Ports.SerialPort.DiscardInBuffer()
   at CumulusMX.DavisStation.WakeVP(SerialPort serialPort)
   
 etc
 etc 
You do not have the required permissions to view the files attached to this post.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Extra Webfiles Missing

Post by Phil23 »

Partially reproduced the above by closing with Ctrl-C on the keyboard; but only one instance of the error message.

Maybe on a timing boundary.

Phil

Code: Select all

Exiting system due to external: Ctrl-C
2020-05-22 09:08:19.062 Cumulus closing
2020-05-22 09:08:19.094 Writing Cumulus.ini file
2020-05-22 09:08:19.172 Completed writing Cumulus.ini file
2020-05-22 09:08:19.172 Station stopping
2020-05-22 09:08:19.172 Closing connection
2020-05-22 09:08:19.172 Station stopped
2020-05-22 09:08:19.172 Writing today.ini file
2020-05-22 09:08:19.187 !!! loop data not received, Comm port is closed
2020-05-22 09:08:19.187 Comleted writing today.ini file
2020-05-22 09:08:19.187 Station shutdown complete
Cumulus has shutdown
2020-05-22 09:08:19.187 WakeVP: Error - System.InvalidOperationException: The port is closed.
   at System.IO.Ports.SerialPort.DiscardInBuffer()
   at CumulusMX.DavisStation.WakeVP(SerialPort serialPort)
Edit:-

Just to add to the above, the Shutdown at 9:00:30, performed by the script was much like the above with only 1 error line.

Code: Select all

2020-05-22 09:00:32.782 Comleted writing today.ini file
2020-05-22 09:00:32.782 Station shutdown complete
Cumulus has shutdown
2020-05-22 09:00:32.923 WakeVP: Error - System.InvalidOperationException: The port is closed.
   at System.IO.Ports.SerialPort.DiscardInBuffer()
   at CumulusMX.DavisStation.WakeVP(SerialPort serialPort)
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Extra Webfiles Missing

Post by sfws »

You introduced a typo in those pasting operations, Phil, you've managed to change the spelling of "completed" in the second paste. It is correct in your source, Mark, don't worry, this is not another 'p' issue.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Extra Webfiles Missing

Post by mcrossley »

You can safely ignore errors after the Cumulus Shutdown message. They are usually like this one where a thread that hasn't terminates is trying to read from a port that Cumulus has already closed. The shutdown code could do with some loving to tidy up a bit better, but it's low priority.
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Extra Webfiles Missing

Post by Phil23 »

sfws wrote: Fri 22 May 2020 5:54 am You introduced a typo in those pasting operations, Phil, you've managed to change the spelling of "completed" in the second paste.
It's actually incorrect in the source for Today.ini, but correct for the main ini.

Didn't think Mark needed to bother chasing a missing p at this point.
I can live with that.

Phil.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Post Reply