AutoBrightness

Forum to discuss everything related to the current development build of Automagic.

Moderator: Martin

Locked
User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

AutoBrightness

Post by bichlepa » 19 Apr 2014 12:35

This flow automatically sets the brightness of the screen using the light sensor.

Please ensure that the options for this flow are set as following:
- Skip execution when an older instance is already running
- Automatic emergency stop: specific: 2000

The parameters In the script "Calculate screen brightness" are optimized for my Glaxy S2 plus. You may change these or invent an other calculation. If you have found the perfect formula for your device, post an answer. I will add them into this post.

Download:
https://www.dropbox.com/s/01ai42mx7ab1g ... htness.xml

Formulas for different devices in script "Calculate screen brightness":
  • Galaxy S2 plus:

    Code: Select all

    br= pow(light_level,0.4)*20
Last edited by bichlepa on 20 Apr 2014 22:10, edited 3 times in total.

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: AutoBrightness

Post by Nerey » 20 Apr 2014 19:19

It raises emergency stop in my case
And there is interesting behavior when I turning screen on and off fast :)

I think better way is to use trigger timer and second flow which turn it on and off
Sorry for bad english, my native is russian.

User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: AutoBrightness

Post by bichlepa » 20 Apr 2014 20:06

OK. I've updated the flow yesterday in the evening because there was a bug and I have set the emergency stop setting to a higher level.
On my phone there is no strange behavior when I turn the screen on and off quickly.

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: AutoBrightness

Post by Nerey » 20 Apr 2014 20:39

The flow will be executed more than one time
Sorry for bad english, my native is russian.

User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: AutoBrightness

Post by bichlepa » 20 Apr 2014 22:05

Thanks for that I didn't mention following in the description:
You can prevent this by setting in the options of the flow: "Skip execution when an instance is already running".
I've updated the description.

Locked