scuhu: modify service to run exp/i2s looping 10 min recordings

This commit is contained in:
Trek Hopton 2024-02-16 16:18:19 +10:30
parent 98140fe2b1
commit bc9e251fdd
2 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ func main() {
}
log.Println("Recording stopped.")
fileName := "recordings/audio-" + time.Now().Format("2006-01-02_15-04-05") + ".wav"
fileName := "/home/pi/recordings/audio-" + time.Now().Format("2006-01-02_15-04-05") + ".wav"
file, err := os.Create(fileName)
if err != nil {
log.Println("failed to create file:", err)

View File

@ -1,7 +1,7 @@
#!/bin/sh -e
# This script configures and runs a binary on a pi, intended to run at boot time.
BINNAME=rvcl
ARGS="-config-file config-scuhu.json"
BINNAME=i2s
ARGS=""
echo Set kernel parameters:
# kernel settings to improve performance on Raspberry Pi
@ -29,7 +29,7 @@ echo Our IP addresses:
sudo ip addr show | grep inet
# capture stdout and stderr to a secondary log file (just in case)
exec 2> /var/log/netsender/stream.log
exec 2>> /var/log/netsender/stream.log
exec 1>&2
# set env, working dir and run as pi user