Change in display brightness as a trigger

Darshan

New member
I am trying to implement a macro where the wallpaper changes based on the brightness of the phone. But currently I do not see a trigger based on the brightness change. Hence, requesting this trigger to be added into Macrodroid. Thanks! :)
 

tanutanu

Active member
I am trying to implement a macro where the wallpaper changes based on the brightness of the phone. But currently I do not see a trigger based on the brightness change. Hence, requesting this trigger to be added into Macrodroid. Thanks! :)
you can get the device brightness like this. However you need to use another trigger like stopwatch or interval instead of screen on in the attached picture when you want to change the wall paper continuously on non-rooted/non-ADB hacked device.
 

Attachments

  • IMG_20211014_032751.jpg
    IMG_20211014_032751.jpg
    293.9 KB · Views: 7

Darshan

New member
Thanks, this helps. When I use an interval as a trigger, would it have a significant impact on the battery drain, even if my brightness is not changing constantly (it usually changes a few times a day). I am currently using an interval of 5 seconds, so I'm not sure if the Macro would run every 5 seconds and drain the battery, or it would only run when the other condition of variable change is also met?
 

tanutanu

Active member
Thanks, this helps. When I use an interval as a trigger, would it have a significant impact on the battery drain, even if my brightness is not changing constantly (it usually changes a few times a day). I am currently using an interval of 5 seconds, so I'm not sure if the Macro would run every 5 seconds and drain the battery, or it would only run when the other condition of variable change is also met?
Well, I'm not so crazy to save the battery, so it is my opinion, if you worry about the battery drain, I recommend you to move your brightness slider to the left around a 1/4 inch, and set it fixed, turning off automatic adjustment. It can cover entire energy to execute the macro and more;)

Anyway, you can store the brightness value as the history and compare it to new one on next loop. If it is in a specific range, just exit the macro. I think 5 sec. interval loop is not so frequent though.
 
Top