FTP event path **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
stevem
Senior Boarder
Senior Boarder
Posts: 60
Joined: Mon Sep 21, 2015 10:38 am

FTP event path **solved**

Post by stevem »

Hi,

Very nice product which I’ve had running since 2015.

I am wondering if it is possible to include limited tag substation in the FTP Event path name so that a template can be used to create a series of “moment in time“ snap shots with unique file names. I understand that MySQL can be used to achieve the same end result. I’m just looking for something a little simpler.

I’m thinking that an FTP output file name could be weather[yyyy][mm][dd][HH][MM].dat and this would produce a
file name like weather202001171400.dat on the FTP server.

Alternatively it could simply be a [timestamp] tag or even [seqNo] - anything that makes it unique, since the real time can be included in the template itself.

Regards
Steve
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: FTP event path

Post by admin »

strftime syntax should work on the path as well as template variables. Did you try?
stevem
Senior Boarder
Senior Boarder
Posts: 60
Joined: Mon Sep 21, 2015 10:38 am

Re: FTP event path

Post by stevem »

No, but I will. Perhaps an example in the docs?
Thanks for help.
Rgds Steve
stevem
Senior Boarder
Senior Boarder
Posts: 60
Joined: Mon Sep 21, 2015 10:38 am

Re: FTP event path

Post by stevem »

Hi,
I see now that the FTP camera event example in the docs demonstrates the use of the strftime substitution variables :-)
Rgds
stevem
Senior Boarder
Senior Boarder
Posts: 60
Joined: Mon Sep 21, 2015 10:38 am

Re: FTP event path **solved**

Post by stevem »

Yes, the variables work fine.
Rgds
Steve

Ps. Now all we need is auto mkdir if the complete directory structure is not present as many security cameras do.
Post Reply