Steve
Do the external programs (realtime & update intervals) get called before or after Cumulus processes any files on Internet|Files dialog?
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
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
- 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
Actually, it looks like 'after'...
https://cumulus.hosiene.co.uk/viewtopic.p ... ram#p45277
https://cumulus.hosiene.co.uk/viewtopic.p ... ram#p45277
- 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
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
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
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
bigmac
Menston Weather
Menston Weather
- 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
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
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
Code: Select all
rem log the time first
echo %time% >logfile.txt
somecommand params >>logfile.txt 2>&1
anothercommand params >>logfile.txt 2>&1
etcecho %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
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.
bigmac
Menston Weather
Menston Weather
- 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
Cumulus logs a message to the diags log, but only if it gets an error back from ShellExecute.
Steve