Add random phrases when an optional pi camera detects motion.

Fix LED paths for more recent pi-image operating systems.

FossilOrigin-Name: 95bda0bf25a4c8760c07217545106e4a5116a2a6e01463d5189551eb83bfa0f7
This commit is contained in:
Mahlon E. Smith 2023-05-24 03:08:39 +00:00
parent 65ac4ce493
commit 74bfdfac57
9 changed files with 135 additions and 19 deletions

View file

@ -1,7 +1,7 @@
# RPi Theremin
This is a quick-n-dirty Theremin daemon for use on the RaspberryPi.
This is a quick-n-dirty "Theremin" daemon for use on the RaspberryPi.
It is designed to be used with a couple of these distance sensors:
@ -9,12 +9,25 @@ It is designed to be used with a couple of these distance sensors:
Use 'raspi-config' to configure your default sound output (HDMI, 3.5", etc).
This is intended to be run from daemontools or runit. Quick setup as root:
This is intended to be run from daemontools or runit. Quick setup:
# apt install ruby espeak fluidsynth runit
# apt install ruby espeak fluidsynth runit motion netcat
# systemctl stop/disable/mask motion
# gem install -Ng
# ln -s /etc/service /service
# ln -s /path/to/here/theremin /etc/service
# ln -s /path/to/here/motion /etc/motion
# ln -s /path/to/here/fluidsynth /etc/service
For this project, there was an available Pi camera (v2). After enabling it in
raspi-config, I also fired up 'motion' with the included configuration file, to
capture people using the theremin and to say hello.
# ln -s /path/to/here/motion /etc/service
# (enable motion support in the config file)
It will save images for 2 weeks with the current motion.conf. Season to taste.
This was mounted on a manniquin named "Maude" (the bod), as a goofy/fun
interactive instrument.