Captures temperature and humidity and exposes data using flask webserver.
330
docker run --privileged -e SENSOR_MODEL=22 -e GPIO_PIN=17 -p 5000:5000 mcopjan/adafruit-dht:tag
Note GPIO_PIN=17 refers to Pin.no 11 from the picture below

curl "http://localhost:5000/sensor" --insecure
{"humidity":59.099998474121094,"temperature":24.5}
Content type
Image
Digest
sha256:44debd9a8…
Size
123.1 MB
Last updated
over 2 years ago
docker pull mcopjan/adafruit-dht