Write to file

gegou

New member
Hi all , i am tring to write some infos on the same file every 10 minutes but with the "write to file" option , it creates a new file every 10 minutes. How it is possible to do the first ?
 

Endercraft

Moderator (& bug finder :D)
I don't see why it would create a new file unless you use magic text but you can try shell scripts to achieve that.
 

Dm114

Well-known member
Hi all , i am tring to write some infos on the same file every 10 minutes but with the "write to file" option , it creates a new file every 10 minutes. How it is possible to do the first ?
@Qarboz is right. What are the names of the created files (from the 1st one)?
 

Dm114

Well-known member
the names is like day-month-year, for example 11/7/2023, 11/7/2023(1), 11/7/2023(2) and go on. It stops every time in file 32, 11/7/2023(32)
I guess the root name (D/M/Y) is given by you (in the Write action). The numerical suffix is created by the system.
Unless you created Read only files (for any reason), @Qarboz is the only way to append data to an original file
 

gegou

New member
Can you please share with me a simple action block or macro that write to a files the current location and time. Just to test what I am doing wrong.
 

Endercraft

Moderator (& bug finder :D)
Here's one (of the first macros I made). Sorry if some content is in French.
 

Attachments

  • State_log.macro
    19.7 KB · Views: 15

Dimlos

Well-known member
I made it in a shell script because permissions are troublesome.
I think a text file with the specified file name will be created in the documents folder and can be appended each time the macro is started.
 

Attachments

  • Macro.jpg
    Macro.jpg
    524.3 KB · Views: 20
  • Location_Log.macro
    3.9 KB · Views: 9

Dm114

Well-known member
Can you please share with me a simple action block or macro that write to a files the current location and time. Just to test what I am doing wrong.
You could share part of you macro (at least a screenshot of the Write to file action) with the Configuration settings because it's really simple to write/append to a file with MD as @Qarboz told previously.
 

gegou

New member
Thank you very much for your answers, i try to change the name as the number of the day and it works. so the problem maybe was the before file name i used. Maybe someone can try this and if this type of file name has problem, make a ticket for fixing ?
 
Top