Integrate Netatmo Weather station into TIG stack

To integrate my netatmo weather station with custom esp8266 based weather sensors i decided to setup a TIG stack.

The components of the stack are

  • Telegraf – collects data from different sources and pushes them to influxdb
  • Influxdb – a metric database
  • Grafana – a visualization and dashboard application

The netatmo weather stations have no direct interface to capture the collected data, but there is an API server provided by Netatmo to retrieve data from it.

To access the API you must log into the developer website with your netatmo account and register an application:

After you created an application on their website an client_id and client_secret is assigned to this application. You need this information together with your account credentials to access your stations data within the API.

I wrote an integration script to read the data from the API and output it as JSON suitable for telegrafs exec input:

The script could be used directly or as a docker container:

See the github page or docker hub page for usage instruction.

2 Replies to “Integrate Netatmo Weather station into TIG stack”

  1. Hallo Markus,
    Ich habe auch eine Netatmo und versuche sie in Grafana einzubinden. Allerdings bis jetzt ohne Erfolg. Ich bekomme die ersten Schritte einfach nicht hin. Muss ich eine PHP Datei auf meinem Server anlegen um die Daten in die influx zu bekommen?


Leave a Reply

Your email address will not be published. Required fields are marked *