Skip to content

TsingJyujing/bme680-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bme680-exporter

Introduction

A prometheus exporter to export BME680 sensor data.

Hardware

For my option, I'm using RaspberryPiZero + BME680 (with I2C protocol).

Connect you sensor module to pi, and enable your I2C

Software

It support 2 ways to collect your data:

Install

pip3 install git+https://github.com/TsingJyujing/bme680-exporter.git

Public Parameters

These parameters both works on push/pull service.

name required default type example comment
-u/--update-period no 5.0 float(second) 3.0 The time gap to update/push the data
-i/--i2c-address no null str 0x76 The I2C address of your BME680 chip, default will auto select
-n/--sensor-name yes - str home The name of sensor, it will effect metrics name
-l/--label no str key1=value1,key2=value2 Metric labels key-value pairs

Start Server

bme680-exporter-pull [options]
name required default type example comment
--port no 8080 int 8080 The port to listen
--host no 0.0.0.0 str 127.0.0.1 The host name to listen

Start Push Service

bme680-exporter-push [options]
name required default type example comment
-s/--service yes - str http://pushgateway.xxx.com/metrics/job/my_job The URL to push

Reference

About

A prometheus exporter to export BME680 sensor data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages