telldus2graphite
Version:
Fetches sensor values from Telldus Live and forwards it to Graphite
51 lines (37 loc) • 1.55 kB
Markdown
# telldus2graphite
Fetches sensor values from Telldus Live and forwards them to Graphite.
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [](https://github.com/ashpool/telldus2graphite/actions) [](https://github.com/ashpool/telldus2graphite/actions)
_Sensors in Telldus Live ..._

_... will come out like this in Graphite_

## Install
```bash
npm install telldus2graphite
```
## Setup
Environment variables
```bash
format=client.sensor.type
hostedGraphiteKey=... (optional)
telldusPrivateKey=...
telldusPublicKey= ...
telldusToken=...
telldusTokenSecret:...
url=plaintext://127.0.0.1:2003/
```
### Formatting
* ``client.sensor.type => home.freezer.temp`` (default)
* ``client.type.sensor => home.temp.freezer``
* ``sensor.type => freezer.temp``
## Usage
```bash
crontab -e
```
Add this line to update sensors every minute
```bash
* * * * * node <path to>/telldus2graphite/node_modules/.bin/telldus2graphite
```
[npm-url]: https://npmjs.org/package/telldus2graphite
[downloads-image]: http://img.shields.io/npm/dm/telldus2graphite.svg
[npm-image]: http://img.shields.io/npm/v/telldus2graphite.svg