Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukeyeager/adafruit-sht4x-trinkey-exporter
Prometheus exporter for an Adafruit SHT4X Trinkey
https://github.com/lukeyeager/adafruit-sht4x-trinkey-exporter
Last synced: 8 days ago
JSON representation
Prometheus exporter for an Adafruit SHT4X Trinkey
- Host: GitHub
- URL: https://github.com/lukeyeager/adafruit-sht4x-trinkey-exporter
- Owner: lukeyeager
- License: mit
- Created: 2024-08-01T15:22:17.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T15:34:48.000Z (3 months ago)
- Last Synced: 2024-09-18T10:10:27.081Z (about 2 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prometheus exporter for an Adafruit SHT4X Trinkey
## Usage
```console
$ go build ./...
$ sudo ./adafruit-sht4x-trinkey-exporter -port-name /dev/ttyABCD
2024/08/01 10:33:08 Opening serial connection to /dev/ttyABCD with BaudRate 115200 ...
2024/08/01 10:33:08 Listening for HTTP traffic on :8080 ...
```
```console
$ curl -fsS localhost:8080/metrics | grep adafruit
# HELP adafruit_relative_humidity Relative humidity reading, in %%, from an Adafruit SHT4X trinkey
# TYPE adafruit_relative_humidity gauge
adafruit_relative_humidity 36.06
# HELP adafruit_temp_celsius Temperature reading, in degrees C, from an Adafruit SHT4X trinkey
# TYPE adafruit_temp_celsius gauge
adafruit_temp_celsius 30.77
```## Product documentation
https://learn.adafruit.com/adafruit-sht4x-trinkey