Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.6.6 (build 3082) - 1 June 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.

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: 471
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
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.

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

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

sfws
Posts: 818
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Modified Fine Offset
Operating System: Win. 10 PC
Location: The Marches, UK

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: 6487
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster 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: 471
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
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.

sfws
Posts: 818
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Modified Fine Offset
Operating System: Win. 10 PC
Location: The Marches, UK

Re: Extra Webfiles Missing

Post by sfws »

Phil23 wrote:
Sat 23 May 2020 7:56 am
It's actually incorrect in the source for Today.ini, but correct for the main ini.
Thanks very much for correcting me. Sorry I blamed you.

I must admit that I have been processing a lot of text recently (see Wiki), using two screens with source on one and destination on other. I found when I copied/pasted some text, I was managing to (mostly) wipe out (but add sometimes) letters by accidentally pressing a key with wrong screen having focus, so my eyes are in proof reading mode at present.

Post Reply