Simple web based API driven buzzer/led for a RasberryPI. Only tested on version 4. Uses flask and the gpiozero library.
- Buzzer is expected to be on pin 17
To execute from docker on a PI, use:
#currently not working with temp sensor! Investigating how to deal with this
docker run --device /dev/gpiomem -p 5000:5000/tcp elongstreet88/api-driven-pi-buzzer
#not recommended but will work:
docker run --privileged -p 5000:5000/tcp elongstreet88/api-driven-pi-buzzer
docker buildx create --name mybuilder
docker buildx use mybuilder
docker buildx inspect --bootstrap
./build.sh
./run.sh