iot-root / garden-of-eden

Truly own that which is yours!
GNU General Public License v3.0
22 stars 6 forks source link

telegraf to collect sensor data #16

Open iot-root opened 11 months ago

iot-root commented 11 months ago

Telegraf is an agent for collecting, processing, aggregating, and writing metrics. Based on a plugin system to enable developers in the community to easily add support for additional metric collection. There are four distinct types of plugins:

Input Plugins collect metrics from the system, services, or 3rd party APIs Processor Plugins transform, decorate, and/or filter metrics Aggregator Plugins create aggregate metrics (e.g. mean, min, max, quantiles, etc.) Output Plugins write metrics to various destinations https://github.com/influxdata/telegraf/blob/master/plugins/inputs/multifile/README.md

This example shows a BME280 connected to a Raspberry Pi, using the sample config.

multifile pressure=101.343285156,temperature=20.4,humidityrelative=48.9 1547202076000000000

To reproduce this, connect a BMP280 to the board's GPIO pins and register the BME280 device driver

cd /sys/bus/i2c/devices/i2c-1
echo bme280 0x76 > new_device