Noob question: How to save data to a file

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
aximili
Posts: 23
Joined: 28 Jun 2018 11:14

Noob question: How to save data to a file

Post by aximili » 22 Jul 2018 10:51

I am new to Automagic and I'm not sure where to start with this. Hoping someone could guide me in the right direction.

I am creating my own auto-brightness formula, so I want to be able to create a CSV file like this:

AmbientLight,ScreenBright
0.0,-30
1.0,1
165.0,14
6800.0,100

and so on

How can I create a shortcut on Home screen, which when tapped, add a line to the CSV file with the current ambient light and the current screen brightness?
(so I am planning to adjust the screen brightness to a desired brightness (using Display Brightness) then press that shortcut to save my preference)

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Noob question: How to save data to a file

Post by anuraag » 22 Jul 2018 13:24

Try following flow
It will create a text file with format you want
http://automagic4android.com/flow.php?i ... f8140ad053

User avatar
aximili
Posts: 23
Joined: 28 Jun 2018 11:14

Re: Noob question: How to save data to a file

Post by aximili » 24 Jul 2018 11:07

Wow so easy! Thanks very much anuraag!

Post Reply