b36_exporter

command module
v0.0.0-...-83ebf21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

What is it

  • A tool to programtically read the live data from air quality measurement device B36 and provide exporter api for prometheus server to read.
  • So in the end, you can use prometheus+grafana to draw charts on air quality data
  • This tool can only run on Linux so far

How to build

  • Install latest golang
  • Build
go build

How to use

  • Connect the B36 device to the USB port of a Linux machine
  • Run this command on Linux
# need root priviledge to read serial port
sudo ./b36_exporter
  • Help
$ sudo ./b36_exporter --help 
Usage of ./b36_exporter:
  -debug
        whether to print raw data on console
  -listen-address string
        The address to listen on for prometheus request. (default ":9301")
  -serial string
        the file path of the serial port (default "/dev/ttyUSB0")

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址