th02js
A javascript library for the TH02 temperature and humidity sensor
Last updated 6 years ago by mjreich .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install th02js 
SYNC missed versions from official npm registry.

th02js

A Javascript Library for reading from the TH02 Temperature + Humidity Sensor.

Install

> npm install th02js

Usage

var TH02 = require('th02js');

var bus = 6; //Note: this works for Edison, for Raspberry Pi you may need to use MRAA I2C bus 0

var sensor = new TH02(bus);

Temperature

var farenheit = sensor.getFarenheitTemp()
var celsius = sensor.getCelsiusTemp()

Humidity

var humidity = sensor.getHumidity()

Current Tags

  • 0.0.2                                ...           latest (6 years ago)

2 Versions

  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Total 190
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 2
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |