Skip to content

vetinari/ee895-exporter

Repository files navigation

EE895-exporter

A simple prometheus exporter for reading sensor data from a EE895-M16HV2 module such as this Raspberry PI Board.

It can additionally send the data to an MQTT broker, see MQTT section on how to configure the broker and topics.

Based on the ee895 python example.

Config

Run the exporter with --config.file=/path/to/config.yml, one example is available

MQTT

The MQTT broker is configured in the mqtt section. An example config looks like:

mqtt:
  enabled: true
  broker:
    host: 192.168.5.33
    port: 1883
    username: brickd
    password: brickd_pass
    client_id: brickd_exporter
  topic: i2c/ee895

Note: if you're running multiple exporter each one must get a unique client_id.

The mqtt.topic sets the (full) topic where the metrics are reported to.

Building for Raspberry

Checkout the repo and run

GOARCH=arm GOARM=6 go build

and copy over to your raspberry :)

About

A simple prometheus exporter for the EE895-M16HV2 CO2 sensor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages