sgrankin / netatmo-otel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export netatmo weather data into VictoriaMetrics.

Install

Build from source or go install sgrankin.dev/netatmo-otel@latest.

Run

To access the API, create an application in Netatmo Connect and generate a token with a read_station scope.

Pass the tokens via flags, environment, or config file. (See -help.)

The destination host is expected to be VictoriaMetrics: the OTLP routes are used for teh data export, and the Prometheus query routes are used to check what the last sample written was (for incremental sends).

Run as a cron job every 5 minutes; that's the frequency the stations will upload at. Mind the rate limits.

About

License:GNU Affero General Public License v3.0


Languages

Language:Go 100.0%