https://github.com/sgrankin/netatmo-otel
https://github.com/sgrankin/netatmo-otel
netatmo netatmo-api netatmo-weather-station victoriametrics
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sgrankin/netatmo-otel
- Owner: sgrankin
- License: agpl-3.0
- Created: 2023-10-13T16:17:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-13T02:33:54.000Z (about 1 year ago)
- Last Synced: 2025-02-02T02:33:50.131Z (9 months ago)
- Topics: netatmo, netatmo-api, netatmo-weather-station, victoriametrics
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Export netatmo weather data into VictoriaMetrics.
- https://www.netatmo.com
## 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.
- https://dev.netatmo.com/apps
- https://dev.netatmo.com/apidocumentation/oauthPass 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.
- https://dev.netatmo.com/guideline#rate-limits