Write to File Action

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Post Reply
Vyza
Posts: 11
Joined: 07 Feb 2013 02:03

Write to File Action

Post by Vyza » 01 Mar 2013 02:36

Request that the File Settings support variables. Would like to create the file name using a variable within a script and use this variable as the file name to Write to File.

inReinbek
Posts: 95
Joined: 02 Feb 2013 22:04

Re: Write to File Action

Post by inReinbek » 01 Mar 2013 17:50

Set your variable-filename in {} and go on.

saherr1969
Posts: 27
Joined: 01 Dec 2012 08:13

Re: Write to File Action

Post by saherr1969 » 02 Mar 2013 21:21

As an example, I use the following, /mnt/sdcard/Automagic/Mileage/{global_todayYearYYYY}, to save a file to a folder with the current year in its name.

global_todayYearYYYY holds 2013 right now.

Vyza
Posts: 11
Joined: 07 Feb 2013 02:03

Re: Write to File Action

Post by Vyza » 03 Mar 2013 01:15

The Write to File Action does not seem to support variables within the File setting - that's what I'm requesting.

If varFileName="Test.txt" and /mnt/sdcard/LOGS/{varFileName} is entered into the File setting, a file named {varFileName} instead of Test.txt is created in directory /mnt/sdcard/LOGS/.

User avatar
Martin
Posts: 4413
Joined: 09 Nov 2012 14:23

Re: Write to File Action

Post by Martin » 04 Mar 2013 08:58

Variable support for this field should be in the next update.

Post Reply