Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Windows 10 Cumulus MX and hiberantion

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

Post Reply
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Windows 10 Cumulus MX and hiberantion

Post by oldeflyer »

Hello,
Just installed Cumulus MX and it and the local Webserver are working.
I don't have a computer that I can use as a 24/7 machine. My home computer does the hibernate/sleep thing according to the power plan.
I have searched for 'hibernate' and 'Cumulus MX' and only found Version 1 references and the threads just ended without a resolution.

During my experiments with this I had missing data that I recovered by using the backup files (per the Wiki) and restarting MX.
That got rid of my data gaps but I need an automated way to force the MX to read the Davis Pro 2 logger automatically, or to pick up where it left off.

So, is there a way to have MX stop and restart from where it left off after Windows hibernates?

Wayne
The PIT
Posts: 265
Joined: Thu 10 Dec 2009 6:15 pm
Weather Station: Davis VP2 Wireless
Operating System: Windows 7 32 bit
Location: England
Contact:

Re: Windows 10 Cumulus MX and hiberantion

Post by The PIT »

you should be able to create either a batch file or powershell script to close it on a shedule.
Based in Sunny Old Sheffield South Yorkshire England

www.sheffieldweather.co.uk
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Windows 10 Cumulus MX and hiberantion

Post by oldeflyer »

Poking around on the Wiki I found a section on installing the MX as a service.
That worked. It also said that if a sleep/hibernation occurred it would stop the service.
Good so far.
It gave a reference to a PowerShell file CreateCmxResumeFromStandbyTask.ps1 that is supposed to create a task in the Scheduler that will restart MX on resume.
Script will not run as it says it is unsigned?
I can read the script but I don't know what most of it means. I used to work with mainframes, not PCs ;)
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Windows 10 Cumulus MX and hiberantion

Post by mcrossley »

I do not have a public code signing certificate so my scripts are unsigned.

You can run unsigned scripts by using the command line...

Code: Select all

powershell.exe -ExecutionPolicy Bypass -File C:\CreateCmxResumeFromStandbyTask.ps1
You will need to run the CreateCmxResumeFromStandbyTask.ps1 script from an administrative command prompt (run as Administrator).
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Windows 10 Cumulus MX and hiberantion

Post by oldeflyer »

Windows has a document that discusses changing a policy scope and type. Used that to allow me to run the script.
There is now a task in the Scheduler to restart MX on resume.
Will test and log results so the process can be documented for future searches.
oldeflyer
Posts: 72
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Windows 10 Cumulus MX and hiberantion

Post by oldeflyer »

mcrossley,
Our posts crossed paths :)
I just used the policy scope of process so nothing was changed permanently.
It appears that this method works!! :D :D
I have set a short hibernation time and have run through several iterations and lost zero data.

Thanks for the Program help.
Wayne
Post Reply