/docker-pisense-flask-api

Docker container for Raspberry Pi Sensehat with Flask API for getting temp/humidity

Primary LanguagePython

Docker container for Raspberry Pi Sensehat with Flask API for getting temp/humidity

docker build -t sensehat .
docker run --privileged --name sensehat -ti sensehat bash
python test.py

Running test.py validates the installation. See the SenseHat API docs for more SenseHat calls.

/temp route needs this Docker container config:

Devices: /dev/vchiq:/dev/vchiq

ENV: LD_LIBRARY_PATH=/opt/vc/lib PATH=$PATH:/opt/vc/bin

Volumes: /opt/vc:/opt/vc (read-only)