Skip to content

bernardpletikosa/MMM-DHT-Sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published