Python service to control lights, for example LED stripes
Using the PiGPIO lib to control N-channel MOSFETs, with inspiration from David Ordnung
The repo has built in support for Google Actions (used by the Google Home).
Requirements:
- service account key placed in
controller
folder calledsmart-home-key.json
- OAuth server; this repo comes with Auth0 support
- To use, set the
AUTH_DOMAIN
andAPI_AUDIENCE
envs
- To use, set the
This repo comes with 2 sets of docker-compose files. One for x86 and one for ARM.
Prebuilt arm images can be found here
- Docker.arm
- ARMv6 & ARMv7 support
- Docker
- AMD64/x86 support
docker run --rm -it --network=host --privileged lights
- exec into the container and run
pigpiod
docker-compose up --build -d
- First time,
exec
into container and run pigpiod
In order to use SSL, make sure to put the key.pem
and cert.pem
files into the webserver
folder