Pro2 FTP Export Event

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
Car54
Junior Boarder
Junior Boarder
Posts: 27
Joined: Tue Dec 22, 2020 4:57 am

Pro2 FTP Export Event

Post 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?
VP2+ Nano SD & Pro2
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1399
Joined: Mon Sep 22, 2014 3:24 am

Re: Pro2 FTP Export Event

Post 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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7877
Joined: Mon Oct 01, 2007 10:51 pm

Re: Pro2 FTP Export Event

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7877
Joined: Mon Oct 01, 2007 10:51 pm

Re: Pro2 FTP Export Event

Post 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.
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1399
Joined: Mon Sep 22, 2014 3:24 am

Re: Pro2 FTP Export Event

Post 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?
Car54
Junior Boarder
Junior Boarder
Posts: 27
Joined: Tue Dec 22, 2020 4:57 am

Re: Pro2 FTP Export Event

Post by Car54 »

The solution was to include the directory path in the path name. Below is what worked.

Thanks for your help.

Image
VP2+ Nano SD & Pro2
Post Reply