Page 1 of 1

Pro2 FTP Export Event

Posted: Thu Oct 16, 2025 7:14 pm
by Car54
I tried to FTP a CSV export CSV file to a NAS. Here is the Service Settings:

Image

If I click on the "Test FTP" button, it correctly uploads the test-upload file to the NAS.

Here are the Events:

Image

When Event 2 runs, it generates the 4 files: export_2.txt, lastexport.exp, lastexport.txt and standard-imp-YYYYMMDD-min.txt. All 4 files contain the same correct data. (The Per-Minute Data is enabled).

When Event 3 runs, nothing happens and there is nothing shown on the log file.

What am I doing wrong?

Re: Pro2 FTP Export Event

Posted: Fri Oct 17, 2025 4:33 am
by Mattk
I am not sure what the Path(File) substitute %y-%m-%d is meant to represent? Are you trying to export a file as Year-Month-Day.csv? If so then "y" (lower case) is not a variable for year, "m" (lower) is for minute as one or two digit number, no leading zeros and "d" (lower case) as a single letter is not a variable and "%"?

Try a filename using [YYYY]-[MM]-[DD].csv

Re: Pro2 FTP Export Event

Posted: Fri Oct 17, 2025 8:01 am
by admin
Mattk wrote: Fri Oct 17, 2025 4:33 am I am not sure what the Path(File) substitute %y-%m-%d is meant to represent? Are you trying to export a file as Year-Month-Day.csv? If so then "y" (lower case) is not a variable for year, "m" (lower) is for minute as one or two digit number, no leading zeros and "d" (lower case) as a single letter is not a variable and "%"?

Try a filename using [YYYY]-[MM]-[DD].csv
The syntax in path is the gnu c "strftime" syntax, which Meteobridge should support. Data/time information is from the point in time when the upload is done. Using the Meteobridge date/time syntax, like "[YYYY]-[MM]-[DD]", the creation time of the export data is used. But both will be pretty close when creation of the file directly triggers the upload.

Re: Pro2 FTP Export Event

Posted: Fri Oct 17, 2025 8:04 am
by admin
Car54 wrote: Thu Oct 16, 2025 7:14 pm
Image

When Event 2 runs, it generates the 4 files: export_2.txt, lastexport.exp, lastexport.txt and standard-imp-YYYYMMDD-min.txt. All 4 files contain the same correct data. (The Per-Minute Data is enabled).

When Event 3 runs, nothing happens and there is nothing shown on the log file.

What am I doing wrong?
Event #3 is lacking the path information you specified as "test path" on service definition tab. Please try adding this.

Re: Pro2 FTP Export Event

Posted: Fri Oct 17, 2025 1:15 pm
by Mattk
I would have thought the FTP is linked to the FTP config Host/User as Test Path: can in effect be blank and just requiring a preceding / (as minimum)before the Path (File): input of the actual event and totally dependent on how the server FTP is configured?

Re: Pro2 FTP Export Event

Posted: Fri Oct 17, 2025 8:02 pm
by Car54
The solution was to include the directory path in the path name. Below is what worked.

Thanks for your help.

Image