###Work in progress
This an extension for the MagicMirror.
It monitors temperature and humidity from DHT11 sensor.
Used on my personal Smart mirror project
- Navigate into your MagicMirror's
modulesfolder - Clone repository
git clone https://github.com/bernardpletikosa/MMM-DHT-Sensor - Go to newly created directory
- Execute
npm installto install the node dependencies.
Add it to the modules array in the config/config.js file:
modules: [
...
{
module: 'MMM-DHT-Sensor',
header: 'Indoor',
config: {
// See below for more information.
}
}
...
]Configurations properties
| Property | Description |
|---|---|
sensorType |
Supports DHT11, DHT22 and AM2302 sensors
Type: int
Values: 11|22
Default: 11
|
sensorPIN |
The BCM pin your sensor is connected to
Type: int
Default: 4
|
updateInterval |
Wait interval between readings of temperature and humidity values
Type: int
Default: 2000 ms
|
animationSpeed |
Animation of changes
Type: int
Default: 0
|
units |
Unit system to use
Type: string
Default: from default configuration
|
For more details abput BCM pin numbers check here
- dht-sensor (installed via
npm install)
Thanks for the library
