###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
modules
folder - Clone repository
git clone https://github.com/bernardpletikosa/MMM-DHT-Sensor
- Go to newly created directory
- Execute
npm install
to install the node dependencies.
Add it to the modules array in the config/config.js
file:
modules: [
...
{
module: 'MMM-DHT-Sensor',
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
|
titleText |
Widget title text
Type: string
Default: DHT
|
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