Skip to content

Commit ab497b8

Browse files
author
Nick Veys
committed
Removing cpp in favor of node-dht-sensor
1 parent 2dca85c commit ab497b8

17 files changed

+28
-872
lines changed

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
build
22
node_modules
3-
test-user-root
43
.tool-versions

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,37 @@
22

33
DHT11/22 plugin for [Homebridge][homebridge] running on a Raspberry Pi GPIO pin. Provides temperature and relative humidity.
44

5+
## Requirements
6+
7+
Uses the [node-dht-sensor][node-dht-sensor] library to communicate w/sensors, it uses the [BCM2835 library][bcm2835-lib] to communicate, and that must be installed before installing the NPM module.
8+
59
## Installation
610

11+
1. Install [BCM2835 library][bcm2835-lib]
712
1. Install this plugin using: npm install -g homebridge-dht-rpi
813
1. Edit ``config.json`` and add the sensor(s).
914
1. Run Homebridge
1015

1116
### Config.json Example
1217

13-
...
18+
```json
19+
{
20+
...
21+
"accessories": [
22+
{
23+
"accessory": "dht-rpi",
24+
"name": "My DHT"
25+
}
26+
],
27+
...
28+
}
29+
```
1430

1531
#### Optional Parameters
1632

1733
* `type` type of device, either `"DHT11"` or `"DHT22"`
1834
* `pin` GPIO pin number, default `4`
1935

20-
[homebridge]: https://github.com/nfarina/homebridge
36+
[bcm2835-lib]: http://www.airspayce.com/mikem/bcm2835
37+
[homebridge]: https://github.com/nfarina/homebridge
38+
[node-dht-sensor]: https://github.com/momenso/node-dht-sensor

binding.gyp

Lines changed: 0 additions & 18 deletions
This file was deleted.

dht.cpp

Lines changed: 0 additions & 68 deletions
This file was deleted.

dht/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

dht/Raspberry_Pi/pi_dht_read.c

Lines changed: 0 additions & 158 deletions
This file was deleted.

dht/Raspberry_Pi/pi_dht_read.h

Lines changed: 0 additions & 32 deletions
This file was deleted.

dht/Raspberry_Pi/pi_mmio.c

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)