diff options
Diffstat (limited to 'v4l-tool/settings-setter.sh')
| -rw-r--r-- | v4l-tool/settings-setter.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/v4l-tool/settings-setter.sh b/v4l-tool/settings-setter.sh new file mode 100644 index 0000000..2c2d53a --- /dev/null +++ b/v4l-tool/settings-setter.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +#this daemon will keep the brightness, contrast, saturation of the webcam set based on the time of day + +#brightness. highest during darkest +b_mx=245 +b_mn=145 + +#contrast. highest during darkest +c_mx=160 +c_mn=100 + +#saturation. constant for now + +while [[ true ]]; do + th=`date +%H` + tm=`date +%M` + p=$(((60*${th}+${tm})/1440)) #percent through day + + sleep 15 +done |
