Integrate Netatmo Weather station into TIG stack

Posted by Markus Benning on August 29, 2017

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:

https://dev.netatmo.com/

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:

https://github.com/benningm/docker-telegraf-netatmo

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

https://hub.docker.com/r/benningm/telegraf-netatmo/

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