Skip to content
No description, website, or topics provided.
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Jan 11, 2017
MMM-DHT-Sensor.css Code clean up. Support for DHT 11/22 Jan 12, 2017
MMM-DHT-Sensor.js Code clean up. Support for DHT 11/22 Jan 12, 2017
README.md Code clean up. Support for DHT 11/22 Jan 12, 2017
node_helper.js Code clean up. Support for DHT 11/22 Jan 12, 2017
package.json
widget.jpg

README.md

MMM-DHT-Sensor

###Work in progress

This an extension for the MagicMirror.

It monitors temperature and humidity from DHT11 sensor.

Used on my personal Smart mirror project

Installation

  1. Navigate into your MagicMirror's modules folder
  2. Clone repository git clone https://github.com/bernardpletikosa/MMM-DHT-Sensor
  3. Go to newly created directory
  4. Execute npm install to install the node dependencies.

Using the module

Add it to the modules array in the config/config.js file:

modules: [
	...
	{
		module: 'MMM-DHT-Sensor',
		config: {
			// See below for more information.
		}
	}
	...
]

Configuration options

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

Developer Notes

For more details abput BCM pin numbers check here

Dependencies

Thanks

Thanks for the library

roland-vachter

momenso

You can’t perform that action at this time.