/foglamp-south-dht11

Simple Python plugin to support a DHT11 temperature sensor connected to the GPIO pins of a Raspberry Pi

Primary LanguagePythonApache License 2.0Apache-2.0

foglamp-south-dht11 (Raspberry Pi)

FogLAMP South Plugin for DHT11 temperature and humidity sensor, for Raspberry Pi.

Hardware

A DHT11 plugged directly into the GPIO pins of a Raspberry Pi, the default configuration is to use GPIO4 for the data.

Installation

The plugin can be installed with given requirements.sh or with below manual steps:

$ pip3 install -Ir python/requirements-dht11.txt --no-cache-dir

Sensor GPIO access

To access the GPIO pins foglamp must be able to access /dev/gpiomem, the default access for this is owner and group read/write. Either FogLAMP must be added to the group or the permissions altered to allow FogLAMP access to the sensor.