/HttpSensors

Quick and dirty REST API to expose phisycal world metrics via HTTP and consume them in homebridge and have them available using Homekit.

Primary LanguagePython

DHT REST Client

Python REST client developed in flask. Exposes an enpoint /temperaturehumidity that returns the current read of the attached DHT11 sensor on GPIO4

docker run -d -p 5000:5000 --device /dev/gpiomem --privileged sensor:latest

TODOs:

  • properly setup privileges to avoid running the container in privileged mode (makes it safer and swarm-friendly)
  • allow automated build on upstream container. currently is locally built and pushed to remote.
  • cache readings to prevent DHT saturation. This will require background cache refresh. All the thing in a raspberry pi zero GPIO is slow