-
Notifications
You must be signed in to change notification settings - Fork 2
/
wurb_rec_start.sh
29 lines (24 loc) · 843 Bytes
/
wurb_rec_start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# This is needed to detect USB devices
# when using the udevil utility.
###( sleep 5 && sudo -u pi devmon ) &
sleep 5
sudo -u pi devmon &
# Activate the virtual environment (venv) for Python.
cd /home/pi/cloudedbats_wurb_2020
source venv/bin/activate
# Defined environment variables.
# export WURB_REC_HOST=0.0.0.0
# export WURB_REC_PORT=8000
# export WURB_REC_LOG_LEVEL=info
# export WURB_REC_INPUT_DEVICE=hifiberry
# export WURB_REC_INPUT_DEVICE_FREQ_HZ=192000
# export WURB_REC_OUTPUT_DEVICE=Headphones
# export WURB_REC_OUTPUT_DEVICE_FREQ_HZ=48000
# Launch control by GPIO and/or computer mouse.
# It is running in it's own process.
# Note: Removed due to problems with Debian 11, Bullseye.
# See also requirements.txt
### python3 wurb_rpi/control_via_rpi.py &
# Launch the WURB detector.
python3 wurb_rec_start.py