Skip to content

jeremybz/waveplus_exporter

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

waveplus_exporter

Prometheus exporter for the Airthings Waveplus air sensor, based on their library

Raspberry Pi Setup

This worked for me on a raspberry pi 3.

System Setup

$ sudo systemctl start hciuart
$ sudo bluetoothctl
[bluetooth]# power on
[bluetooth]# show
...
	Powered: yes
...

Python Setup

$ sudo apt install python-pip libglib2.0-dev
$ sudo pip2 install bluepy==1.2.0 prometheus_client

Prometheus Setup

A raspberry pi has more than enough compute to run a prometheus instance, this exporter, and plenty more. See the example config file.

$ prometheus --config.file example_prometheus_config.yml

Usage

usage: waveplus_exporter.py [-h] [--port [PORT]] [--bind [BIND]] [--periodseconds [PERIODSECONDS]] --serialnumber [SERIALNUMBER]

optional arguments:
  -h, --help            show this help message and exit
  --port [PORT]         The TCP port to listen on (default: 9744)
  --bind [BIND]         The interface/IP to bind to (default: 0.0.0.0)
  --periodseconds [PERIODSECONDS] number of seconds to wait between sampling (default: 60)

Dashboard

Grafana dashboard

License

The original reader from Airthings uses the MIT License, and so does this.

About

Simple exporter for the Airthings Waveplus air sensor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages