temperature

command module
v0.0.0-...-2e8d5ef Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 9 Imported by: 0

README

Temperature

Reads temperature, humidity, pressure and altitude from a BME280 sensor and exposes as a Prometheus endpoint on http://:9090/metrics.

Metrics are updated every 10 seconds.

The BME280 should be connected via the I2C interface. Tested on a Raspberry Pi Zero but should work Arduino by passing the device as a command line argument, e.g../temperature -device /dev/tty.usbmodem1421. This is not required on the RPI.

Building

Run go build on the target platform. Download any missing dependencies with go get <package>.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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