Sign inSign up

vremenar/netatmo-energy-exporter

By vremenar

•Updated over 1 year ago

Netatmo Energy exporter for Prometheus.

Image
0

3.3K

vremenar/netatmo-energy-exporter repository overview

⁠Netatmo Energy Prometheus Exporter

This is a Netatmo Energy exporter for Prometheus. It only works with Netatmo⁠ Energy (Comfort) products: Thermostat⁠, Valves, etc. It has been tested with Netatmo Smart Thermostat.

Images are based on the work of tipok and his netatmo_energy_exporter⁠. I have forked it as it was not maintained and as such vulnerable.

Images are built and pushed monthly to include latest security patches for base image as well as for packages. Images are multi-arch and can be executed on linux/amd64, linux/arm64 and linux/arm/v7 systems.

GitHub repo: https://github.com/vremenar/netatmo_energy_exporter⁠

⁠Grafana Dashboard

Dashboard is available on Grafana website⁠

⁠How to run

⁠Credentials

In order to access the Netatmo data you will need an active Netatmo account and you'll need to create Client ID, Client Secret and Refresh Token on Netatmo Developer Portal⁠.

⁠Easiest way to run it

docker run -d -p 2112:2112 vremenar/netatmo-energy-exporter:arm64 \
   --client-id=${CLIENT_ID} --client-secret=${CLIENT_SECRET} \
   --username=${USERNAME} --password=${PASSWORD} \
   --refresh-token=${REFRESH_TOKEN}

⁠Docker Compose

services:
  netatmo-exporter:
    container_name: netatmo-exporter
    image: vremenar/netatmo-energy-exporter:arm64
    command:
      - '--client-id=${CLIENT_ID}' 
      - '--client-secret=${CLIENT_SECRET}'
      - '--refresh-token=${REFRESH_TOKEN}'
      - '--username=${USERNAME}'
      - '--password=${PASSWORD}'
    logging:
      driver: "json-file"
      options:
        max-size: "5k"
        max-file: "5"
    healthcheck:
      test: ["CMD", "wget", "--tries=1", "--spider", "http://localhost:2112/metrics"]
      interval: 300s
      retries: 5
      timeout: 10s
    restart: always

Tag summary

Content type

Image

Digest

sha256:d0b20e028…

Size

10.4 MB

Last updated

over 1 year ago

docker pull vremenar/netatmo-energy-exporter