0.1.2 • Published 6 months ago

tsic-sensor v0.1.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
6 months ago

TSIC Digital Sensor library

This library aims at enabling to easily read the temperature of TSIC sensors via the Zacwire protocol with a Raspberry Pi.

⚠️ Currently, this library is only able to read TSIC 206 sensors. As this is the only sensor I have at home, I'm not able to test and verify other sensors. Please feel free to contact me or open a PR for other sensors. From reading their datasheets, it should be a fairly simple process to enable them.

Usage

First, require the package as a dependency

npm install tsic-sensor

Smaple usage:

import { Tsic } from 'tsic-sensor';

// The GPIO pin number to which the sensor (data pin) is connected
const gpioPin = x;
const tsic = new Tsic(gpioPin);

tsic
  .getTemperature()
  .then((temperature) => console.log('Temperature: %d C', temperature))
  .catch(console.error);

pigpio and why privileged?

This library is based on pigpio. Please check out their documentation, if you are getting errors related to this.\ See: https://github.com/fivdi/pigpio#readme

Also, pigpio requires scripts to be run with sudo/root privileges to access hardware.\ See: https://github.com/fivdi/pigpio#limitations

0.1.0

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago