Page 1 of 1
Noise Trigger/condition
Posted: 12 Feb 2014 09:37
by TML
Is it possible to ad a Trigger/condition for noise?
Example:
Trigger:
Phone is ringing
Condition:
Noise > 100db
Action:
Set Ringtone Volume to max
Trigger:
Noise > 100db
Action:
Set volume to max
Thank you and best regards,
Tim
Re: Noise Trigger/condition
Posted: 12 Feb 2014 13:08
by MURTUMA
I think phone's microphone is way too unpredictable when measuring decibels. Not only because of mostly poor quality of the mic but also the way it's located physically. When there's anything covering the mic, the volume of the sound it receives, decreases drastically.
Re: Noise Trigger/condition
Posted: 12 Feb 2014 13:14
by TML
Somebody already made an app for that:
https://play.google.com/store/apps/deta ... gnetringer
So it is possible...
Re: Noise Trigger/condition
Posted: 12 Feb 2014 17:55
by Martin
The last time I tested this trigger it caused a huge battery drain because it has to keep the device awake and record the audio all the time in the background.
Perhaps I will include it as an experimental feature in a future version when the trigger still works on newer devices.
Re: Noise Trigger/condition
Posted: 12 Feb 2014 18:26
by kintrupf
Martin wrote:The last time I tested this trigger it caused a huge battery drain because it has to keep the device awake and record the audio all the time in the background.
Why should it record all the time? I guess a simple condition "noise level now", which could be used within a flow triggered by "phone ringing", would work in this case.
Re: Noise Trigger/condition
Posted: 12 Feb 2014 19:22
by MURTUMA
You could add some periodic timing option to the trigger to counter the battery drain. Condition couldn be better, though, as it could be used with already present periodic timer trigger.
Re: Noise Trigger/condition
Posted: 12 Feb 2014 20:17
by Martin
Argh, somehow I was reading 'trigger' only, probably because this one already exists internally
A condition should be fairly easy to add and should not cause battery drain. I certainly add this to the todo-list.