Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juergenhoetzel/flowercare_exporter
Xiaomi MiFlora JSON/Prometheus/Graphite Exporter
https://github.com/juergenhoetzel/flowercare_exporter
flowercare grafana graphite miflora prometheus
Last synced: 11 days ago
JSON representation
Xiaomi MiFlora JSON/Prometheus/Graphite Exporter
- Host: GitHub
- URL: https://github.com/juergenhoetzel/flowercare_exporter
- Owner: juergenhoetzel
- License: mit
- Created: 2024-10-23T19:19:08.000Z (14 days ago)
- Default Branch: master
- Last Pushed: 2024-10-26T13:59:48.000Z (11 days ago)
- Last Synced: 2024-10-26T16:21:24.591Z (11 days ago)
- Topics: flowercare, grafana, graphite, miflora, prometheus
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Xiaomi MiFlora JSON/Prometheus/Graphite Exporter
================================================# Export targets
* JSON
* [Grafana Graphite metrics](https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-graphite/)
* [Prometheus pushgateway](https://github.com/prometheus/pushgateway)# Tested Devices
* Xiaomi Mi Flora plant sensor
# Example Usage
Push to Graphite
```bash
flowercare_exporter -l DEBUG -t 120 \
-a "C4:7C:8D:6C:10:9B=Alyssum" \
-a "C4:7C:8D:6C:10:C2=Acacia" \
-a "C4:7C:8D:6C:10:4D=Alcea" \
-g "https://graphite-prod-13-prod-us-east-0.grafana.net/graphite/metrics" metrics
```
Push to Prometheus pushgateway```bash
flowercare_exporter -l DEBUG -t 120 \
-a "C4:7C:8D:6C:10:9B=Alyssum" \
-a "C4:7C:8D:6C:10:C2=Acacia" \
-a "C4:7C:8D:6C:10:4D=Alcea" \
-p http://herakles:9091/metrics/job/some_job metrics
```Blink LED to identify device
```bash
flowercare_exporter -l DEBUG -t 120 \
-a "C4:7C:8D:6C:10:9B=Alyssum" \
-a "C4:7C:8D:6C:10:C2=Acacia" \
-a "C4:7C:8D:6C:10:4D=Alcea" \
blink
```