Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.03 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.03 KB

Xiaomi MiFlora JSON/Prometheus/Graphite Exporter

Export targets

Tested Devices

  • Xiaomi Mi Flora plant sensor

Example Usage

Push to Graphite

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

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

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