https://github.com/webduinoio/webduino-bit-module-dht
🔌 Block Module for DHT sensor of Webduino:bit.
https://github.com/webduinoio/webduino-bit-module-dht
dht module webduino-bit
Last synced: 3 months ago
JSON representation
🔌 Block Module for DHT sensor of Webduino:bit.
- Host: GitHub
- URL: https://github.com/webduinoio/webduino-bit-module-dht
- Owner: webduinoio
- License: mit
- Created: 2018-06-27T07:02:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T01:46:29.000Z (over 6 years ago)
- Last Synced: 2025-03-14T16:49:37.152Z (3 months ago)
- Topics: dht, module, webduino-bit
- Language: JavaScript
- Homepage: https://webduino.io
- Size: 10.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webduino-bit-module-dht
Block Module for DHT11 of Webduino:bit.
## Installation
#### bower
```sh
bower install https://github.com/webduinoio/webduino-bit-module-dht.git
```
#### Node.js
```sh
$ npm install webduino-bit-module-dht
```## Usage
```javascript
require('webduino-blockly');
require('webduino-bit-module-dht');const opts = {
board: 'Bit',
device: 'device_id',
transport: 'mqtt'
};boardReady(opts, function (board) {
board.samplingInterval = 250;
const dht = getDht(board, bitGPIO(11));
dht.read(function(evt){
console.log(dht.temperature);
}, 1000);
});```
## License
This project is licensed under the MIT license, see [LICENSE](LICENSE) for more information.