# temperature-stream

> Temperature values as a stream

Latest version **1.1.2** (published 2019-10-14) · BSD license · 0 weekly downloads

## Install

```sh
npm install temperature-stream
pnpm add temperature-stream
yarn add temperature-stream
bun add temperature-stream
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-10-14 |
| First published | 2013-07-10 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Robert Kowalski |
| Maintainers | robertkowalski |
| Keywords | raspberry, raspi, temperature, gpio |

## Links

- npm: https://www.npmjs.com/package/temperature-stream
- Repository: https://github.com/robertkowalski/temperature-stream
- Homepage: https://github.com/robertkowalski/temperature-stream#readme
- Issues: https://github.com/robertkowalski/temperature-stream/issues
- npm.io page: https://npm.io/package/temperature-stream

## Recent versions

- 1.1.2 (latest) — 2019-10-14
- 1.1.1 — 2013-07-16
- 1.1.0 — 2013-07-13
- 1.0.0 — 2013-07-10

## README

[![Build Status](https://travis-ci.org/robertkowalski/temperature-stream.png?branch=master)](https://travis-ci.org/robertkowalski/temperature-stream)

# temperature-stream

Temperature from a Raspberry Pi GPIO as a stream.

Supports `DS18B20` sensors.

## Usage

```js
var fs = require("fs")
var tsr = require("temperature-stream")

var target = fs.createWriteStream(tempdir + "/temp.txt")
fs.createReadStream("/sys/bus/w1/devices/10-000802824e58/w1-slave")
    .pipe(tsr())
    .pipe(target)
```

Adding a semicolon to the end of the resulting data:

```js
var fs = require("fs")
var tsr = require("temperature-stream")

var target = fs.createWriteStream(tempdir + "/temp.txt")
fs.createReadStream("/sys/bus/w1/devices/10-000802824e58/w1-slave")
    .pipe(tsr(";"))
    .pipe(target) // 22750;
```

## Input / Output

Input:
```
6c 01 4b 46 7f ff 04 10 5d : crc=5d YES
6c 01 4b 46 7f ff 04 10 5d t=22750
```

Output:
```
22750
```

---
_Source: https://npm.io/package/temperature-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
