A simple RESTful service built on top of the SenseHAT Python API module, that runs on Docker.
Before installing make sure that the Sense Hat is attached to your Raspberry and that I2C is enabled:
sudo raspi-config
-> Interfacing options
-> I2C
Setting up the container:
docker run -d -p 8000:8000 --privileged --name sense-api --restart on-failure tanasegabriel/sense-api
Access http://localhost:8000
in your browser:
You can use the UI to understand how the API works and to test it out, but programatic requests should be issued on http://localhost:8000/senseapi/v1/<endpoint>
.