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

Auto stop and restart program

Talk about anything that doesn't fit elsewhere - PLEASE don't put Cumulus queries in here!
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Auto stop and restart program

Post by PaulMy »

I would like to set up a scheduled stop and restart of Yawcam once a day but Windows Task Scheduler has only a Start option, not a Stop. How can I do this?

The reason I want to do this is that quite often the Yawcam FTP to Weather Underground has a connect error and regularly fails to reconnect. A manual stop and restart of Yawcam always fixes it for a few days or so and I would like to automate this.

Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
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: Auto stop and restart program

Post by mcrossley »

In Task Scheduler you can set a job to stop after running for a defined time period. You could use that in combination with a start schedule.
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Auto stop and restart program

Post by PaulMy »

Thanks Mark,
I've now gotten deeper into Task Scheduler and found more setting options and have set to stop after 1438 min (23 hrs 58 min). I'll see tomorrow if this works. Another lesson learned!

Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
hills
Posts: 692
Joined: Sat 26 Dec 2009 8:52 am
Weather Station: Fine Offset WH1091
Operating System: Raspbian Buster
Location: Crafers, South Australia
Contact:

Re: Auto stop and restart program

Post by hills »

YAWCAM seems to be getting worse with FTP so I've changed mine to just store it locally and then downloaded "fling" to do the ftp. Touch wood it has done the ftping and recovered from all connection problems without interaction.

I've also had to change my PHP code and xmlswf slideshow as I now don't have YAWCAM renaming every file each time, but that was no problem.
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Auto stop and restart program

Post by PaulMy »

I may have to wait longer to see if the task scheduler works; my weather computer monitor just seemed to have blown up in front of me. As I was working on some files the monitor just quit and went black. Changed with another monitor and the same thing. I can get a full screen of garbage graphics and the monitor settings to show on top of that so expect a video card failed. Yawcam still seems to be working, as is Cumulus and website updates. What is the best way to shut the computer down without a monitor?
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Auto stop and restart program

Post by beteljuice »

Not sure about new OS, but old stlye was <CNTL>+<ALT>+<DEL> (all together) TWICE
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Auto stop and restart program

Post by PaulMy »

Thanks beteljuice, I should have known that :bash: It is Windows 7 but will try that when I am ready to take it to a shop or something. I guess some type of remote monitoring and access software would have come in handy?

Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Auto stop and restart program

Post by beteljuice »

Hmm ... that might force a soft reboot.

Try <CNTL>+<ALT>+<DEL> then <ALT>+U TWICE
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Auto stop and restart program

Post by PaulMy »

Thanks again beteljuice,
I have noted your suggestion and will let the computer run until I can take the box to an expert (that certainly is not me) to check the video card and replace if needed, likely later in the week, so the least amount of down time.

So far looks like Cumulus is running fine and uploads to WU data and webcam, CWOP, PWS, etc. seems to be okay.

Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
serowe
Posts: 484
Joined: Tue 03 Aug 2010 6:23 am
Weather Station: WM918
Operating System: Win Server 2008 R2
Location: Ferntree Gully, VIC, Oz
Contact:

Re: Auto stop and restart program

Post by serowe »

Why not run the software as a service and then use something like AlwaysUp? I use this for a number of programs on my server (used it when I was using Cumulus) and it has the option to restart an application if it stops, hangs for a predetermined time, uses too much memory or CPU or even force it to restart every day or a particular day of the week (and also allows conditions to be met for this to happen).

Commercial package but reasonably priced ($US40) - only drawback it is tied to a specific computer BUT the author is very quick at getting back if you have to update the PC or move it.

http://www.coretechnologies.com/products/AlwaysUp/

(Nope I have no ties to it, just quite satisfied with its performance and ease of use)
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'
uncle_bob
Posts: 505
Joined: Wed 17 Aug 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

Re: Auto stop and restart program

Post by uncle_bob »

PaulMy wrote: What is the best way to shut the computer down without a monitor?
I just pull the power cord :)
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Auto stop and restart program

Post by PaulMy »

I've now gotten deeper into Task Scheduler and found more setting options and have set to stop after 1438 min (23 hrs 58 min). I'll see tomorrow if this works. Another lesson learned!
It must have worked because the Yawcam upload to WU is still going, as is all the other weather related programs (Cumulus, Toolbox, Sunrecorder, webcam live stream, CWOP and PWS) even though I can't directly access the computer without a working monitor.

I'll have time on Friday to shut down the computer, and hopefully pulling the plug would be my last resort. Not sure what such a stop will do to Cumulus, data and uploads, but will have no other choice. Thanks for your help.

Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
geoffp
Posts: 322
Joined: Tue 28 Jun 2011 2:06 pm
Weather Station: Oregon Scientific WMR 200
Operating System: Windows 7
Location: Harwich, Essex
Contact:

Re: Auto stop and restart program

Post by geoffp »

I always use System Scheduler from http://www.splinterware.com/tour/wincron.htm I use the free version that is plenty good enough for my needs.
Regards,

Geoff

WOW Site No. 147808
AllyCat
Posts: 1132
Joined: Sat 26 Feb 2011 1:58 pm
Weather Station: Fine Offset 1080/1 & 3080
Operating System: Windows XP SP3
Location: SE London

Re: Auto stop and restart program

Post by AllyCat »

uncle_bob wrote:
PaulMy wrote: What is the best way to shut the computer down without a monitor?
I just pull the power cord :)
Hi,

Recent versions of Windows seem more tolerant of "pulling the plug" than early versions, but still a "clean" shut-down is preferable. I remember the days when proper IT support guys could do remarkable things using just keyboard shortcuts and no monitor. I'm still using XP but the following might be worth a try:

<Windows key> (=Start) , <Up Arrow> (= Turn off computer) , <Enter> , <Right Arrow> (=Turn Off) , <Enter> . Maybe Win7 is slightly different , the only flaw I found with my Dell with XP is that the "Cancel" option actually Hibernated the PC. :shock:

If that fails, a slightly cleaner way might be to hold in the power button (for up to 10 seconds).

Cheers, Alan.
serowe
Posts: 484
Joined: Tue 03 Aug 2010 6:23 am
Weather Station: WM918
Operating System: Win Server 2008 R2
Location: Ferntree Gully, VIC, Oz
Contact:

Re: Auto stop and restart program

Post by serowe »

AllyCat wrote:<Windows key> (=Start) , <Up Arrow> (= Turn off computer)
That in Win 7 takes you to Programs...
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'
Post Reply