Thread: Decibel Meter ?
View Single Post
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#79
Originally Posted by zimon View Post
A feature request:
When sound level over some configurable time frame exceeds some configurable limit, application will alarm and/or optionally will run configurable system command (can be anything which can be run on a CLI)
Well, it seems like, "executing 'foo' on volume level 'bar'" is a popular demand.
I uploaded version 0.6.1 to extras-devel which implements a very simple "trigger command x on reaching volume y" feature.

To enable this feature open the settings dialog via the menu, set a "Trigger Value" bigger than 0, and enter a "Trigger Command" which shall be executed.
Of course too small values for trigger value actually do not make any sense as this yields in some kind of infinite execution.
For a start you can test this feature e.g. by setting a "command" like:
Code:
/bin/sh -c "echo 'foo' >> /home/user/bar.txt"
A trigger value of 0 disables the execution feature.
If you set values higher than 0 a dark yellow line will indicate the current setting in the GUI.

A current issue is that the scale of the horizontal bar widget seems not to be scaled correctly.

Last edited by Wonko; 2010-12-08 at 00:35.
 

The Following 7 Users Say Thank You to Wonko For This Useful Post: