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

Cumulus External Programs Feature

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
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:

Cumulus External Programs Feature

Post by mcrossley »

Steve

Do the external programs (realtime & update intervals) get called before or after Cumulus processes any files on Internet|Files dialog?
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: Cumulus External Programs Feature

Post by mcrossley »

User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus External Programs Feature

Post by steve »

It does all the processing of the files, creates images etc, and then it initiates the ftp connection, at which point the ftp process goes asynchronous. At this point it invokes the external program.
Steve
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: Cumulus External Programs Feature

Post by bigmac »

Hi Steve,

Is there a log of any sort that records the action of the External Program section? Appreciate it can't log what the external program is actually doing, I'm just looking to see if it has invoked the call to an external program.

Reason I ask is that I am using an SFTP connection to another website so I am calling a script to run from WinSCP, but looking at the data presented on the website, it doesn't appear to work everytime as the timestamp is sometimes different to the website I upload to from the main FTP connection screen.
Hope that makes sense?

Cheers
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: Cumulus External Programs Feature

Post by mcrossley »

I'd put the logging in the script itself. If you are creating a batch script then you can log the command outputs to a file

Code: Select all

rem log the time first
echo %time% >logfile.txt
somecommand params >>logfile.txt 2>&1
anothercommand params >>logfile.txt 2>&1
etc
That will recreate the log file each run, if you want to append then change the first command to
echo %time% >>logfile.txt

edit: change time command to log the seconds as well
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: Cumulus External Programs Feature

Post by bigmac »

Thanks Mark, of course, that is a simple check. I was over complicating it and looking for other logging solutions. I'll give that a go.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus External Programs Feature

Post by steve »

Cumulus logs a message to the diags log, but only if it gets an error back from ShellExecute.
Steve
Post Reply