Skip to content

sgrankin/netatmo-otel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.