mirror of https://bitbucket.org/ausocean/av.git
38 lines
1.4 KiB
Markdown
38 lines
1.4 KiB
Markdown
# NAME
|
|
test-audio/looper/README.md
|
|
|
|
# AUTHORS
|
|
Ella Pietraroia <ella@ausocean.org>
|
|
|
|
# Pi Setup:
|
|
- pull master
|
|
- navigate to /go/src/bitbucket.org/auscean/av/cmd/audio-player/looper
|
|
$sudo nano main.go
|
|
- chage file variable at top of function to be wav file that you have put onto the pi (hint: spc command to put a new file on the pi)
|
|
- Build using $ go build -tags pi0 or $ go build -tags pi3
|
|
- edit rc.local to run looper at boot
|
|
$sudo nano /etc/rc.local
|
|
- paste this in after comments but before 'exit 0': -----------------------------------------------------------
|
|
|
|
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
|
|
exec 1>&2 # send stdout to the same log file
|
|
printf "rc.local started" # show start of execution
|
|
set -x # tell sh to display commands before execution
|
|
|
|
PLAYERPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/audio-player/looper
|
|
cd $PLAYERPATH
|
|
|
|
./looper &
|
|
-----------------------------------------------------------------------------------------------------------------
|
|
$systemctl enable rc-local
|
|
$sudo systemctl start rc-local.service
|
|
- after starting the service the looping should start straight away
|
|
|
|
# Useful commands:
|
|
$cat /tmp/rc.local.log
|
|
$sudo systemctl status rc-local.service
|
|
$cat audio.log (in looper directory)
|
|
|
|
# On computer
|
|
$scp something.wav pi@192.168.1.106:/home/pi
|