Set Door audio volume to 70%

This commit is contained in:
Stefan Haun 2024-05-01 12:26:59 +02:00
parent 19c77a63ed
commit 0695984e6a

View file

@ -1,11 +1,13 @@
#!/bin/sh #!/bin/sh
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games' PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games'
echo 'set PCM volume'
sudo amixer set "PCM" "70%"
echo 'start i2c-foo' echo 'start i2c-foo'
sudo modprobe i2c_dev sudo modprobe i2c_dev
sudo modprobe i2c_bcm2708 sudo modprobe i2c_bcm2708
echo 'starting log' echo 'starting log'
tmux new-session -s status -d 'sudo less /var/log/shuttercontrol.log' tmux new-session -s status -d 'sudo less /var/log/shuttercontrol.log'
cd /home/pi/netz39_rollladensteuerung/raspberry/shuttercontrol cd /home/pi/netz39_rollladensteuerung/raspberry/shuttercontrol
echo 'switch-on.sh' echo 'switch-on.sh'
../switch-on.sh ../switch-on.sh
cd /home/pi cd /home/pi