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

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 »

The backup is not currently configurable. It saves the last ten days rollover backups, plus the last ten Cumulus startup backups.

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 »

Should probably kick myself in the arse for not employing such a simple script from day one.
Classic case of over thinking, but not outside the square.

Code: Select all

Robocopy C:\CumulusMX C:\CmxBackup *.* /s
Robocopy C:\CumulusMX \\phils-i7\Xternal\Backups\CmxBackup *.* /s
Only catch is if there's a locked file when it's scheduled at 9:05am.
(None showing as failed, so assume RC opens read only).

Phil.

Phil23
Posts: 471
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Cumulus INI Corrupted.

Post by Phil23 »

It's happened again....

More specifically:-

Some of the Extra Webfiles entries are missing, but I think the fir 10 stayed intact.
The NOAA monthly figures were gone.
Additional Uploads to other services were gone.
Realtime Gauges upload was off again.

I'm fairly sure it's related to my routine shutdown/restart that happens 4 times a day.

Due to the backup script I mentioned above, I now have a total history of the ini file, so will take a look at all those & can upload a few if that's of help.

freddie
Posts: 728
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: Ubuntu 18.04 (LXC container)
Location: Dorrington, Shropshire, UK
Contact:

Re: Cumulus INI Corrupted.

Post by freddie »

Hi Phil,
Phil23 wrote:
Mon 27 Apr 2020 9:30 am
I'm fairly sure it's related to my routine shutdown/restart that happens 4 times a day.
Can I ask why do you need to restart 4 times a day?
Freddie
Image

Phil23
Posts: 471
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: Cumulus INI Corrupted.

Post by Phil23 »

freddie wrote:
Mon 27 Apr 2020 10:43 am
Can I ask why do you need to restart 4 times a day?
I put those restarts in place a year or so back in order to download data to Weatherlink by running it with the download option

Code: Select all

"C:\WeatherLink\WeatherLink 6.0.5.exe" -d
There was a graph involving EVT I was interested in which I could not get in MX.
Basically EVT, Rain & Temp on a strip graph.

The 4 times a day gave me the "AS of 9:00am" point we use here & also kept the number of records Weatherlink needed to download each time to a minimum.

It's all managed with Task Scheduler.

freddie
Posts: 728
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: Ubuntu 18.04 (LXC container)
Location: Dorrington, Shropshire, UK
Contact:

Re: Extra Webfiles Missing

Post by freddie »

That sounds fair enough.
How are the restarts done?
Freddie
Image

freddie
Posts: 728
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: Ubuntu 18.04 (LXC container)
Location: Dorrington, Shropshire, UK
Contact:

Re: Extra Webfiles Missing

Post by freddie »

freddie wrote:
Mon 27 Apr 2020 8:06 pm
How are the restarts done?
Oops sorry - you answered that already.
You're on Windows so I don't know if I can add anything useful, sorry.
Freddie
Image

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 »

From your log files I don't see the last message I would expect to see after "Writing Cumulus.ini file". The Davis VP2 station should write a log entry - "Closing connection".

It would seem the method of terminating CMX perhaps isn't giving it sufficient time to close properly before it kills the process.

How are you terminating Cumulus? Are you using a third party tool to send a Ctrl-C, Ctrl-Break, or CloseMainWindow event?

The shutdown logging is a bit sparse, I'll add a few more messages for the next release.

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:
Mon 27 Apr 2020 9:30 am
I'm fairly sure it's related to my routine shutdown/restart
Another way might be to set task scheduler start task to stop after 5 hours 50 minutes, if you do that I am unsure how it stops the task, I don't know.

When Cumulus is asked to close normally, it takes a while to close as it is writing out to files including Cumulus.ini.
Last edited by sfws on Wed 20 May 2020 12:16 pm, edited 1 time in total.

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:
Mon 27 Apr 2020 8:44 pm

My guess FWIW, is that your scheduled shut down is terminating the Cumulus process using "Taskkill" rather than asking the Cumulus software to close. Off the top of my head I can't say how you send a control C to close the Cumulus task window, but someone will know
For the Shutdown, I use a complied script From AutoHotkey.
https://www.autohotkey.com/

It basically put the focus on the focus on the CMX Window & then sends Ctrl-C.

Simple script, that is complied into an exe so I don't need AutoHotkey running in the background.

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

Cheers.

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:
Tue 28 Apr 2020 1:24 am
sends Ctrl-C.
Ok, you initiate a proper close down.
Phil23 wrote:
Mon 27 Apr 2020 9:30 am
I'm fairly sure it's related to my routine shutdown/restart that happens 4 times a day.
If your shutdown script is just that hotkey routine....Could you use a WinWaitClose to wait until the MX window closes before you do the return.

If your shutdown script is more than that routine, what does it do next, perhaps it needs a delay there?
Last edited by sfws on Wed 20 May 2020 12:17 pm, edited 1 time in total.

cliftonweather
Posts: 4
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro

Re: Extra Webfiles Missing

Post by cliftonweather »

Have a look at VirtualVP, http://www.softwx.com/weather/virtualvp.html
It basiclly allows you to connect upto 8 programs to single Vantage Pro console. You then won't need to keep stopping & starting MX. I've been using it for years on Windows 7 with no problems. It's free for 30 days so enough time to see if it cures your problem.

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 »

cliftonweather wrote:
Tue 28 Apr 2020 7:30 am
Have a look at VirtualVP
That's something I've looked at over the years, but it's support has stopped, circa 2012.

From what I read on WXforums it can be hit & miss to get it working these days.
For just that reason they no longer take paid registrations.

See http://www.softwx.com/purchase.html
Something to do with the cost associated with registering updated Digitally Signed Drivers.

Cheers.

cliftonweather
Posts: 4
Joined: Sat 14 Nov 2009 12:34 pm
Weather Station: Vantage pro

Re: Extra Webfiles Missing

Post by cliftonweather »

That is one of the downsides, you have to run your pc permanently in Test Mode, but I've not found it to be a problem, supposedly it can be a security issue though.

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 »

VirtualVP doesn't support the Loop2 command either.

Post Reply