|
|
|
netatmo - weewx driver for netatmo weather stations
|
|
|
|
Copyright 2015 Matthew Wall
|
|
|
|
Distributed under terms of the GPLv3
|
|
|
|
|
|
|
|
This driver has two modes of operation. It can use the netatmo API to obtain
|
|
|
|
data from the netatmo servers, or it can parse the packets sent from a netatmo
|
|
|
|
station. The latter works only with netatmo firmware 101 (circa early 2015).
|
|
|
|
Firmware 102 introduced arbitrary encryption in response to a poorly chosen
|
|
|
|
decision to include the wifi password in network traffic sent to the netatmo
|
|
|
|
servers. Unfortunately, the encryption blocks end-users from accessing their
|
|
|
|
data, while the netatmo stations might still send information such as the wifi
|
|
|
|
password to the netatmo servers.
|
|
|
|
|
|
|
|
By default this driver will operate in 'cloud' mode.
|
|
|
|
|
|
|
|
Communication with the netatmo servers requires 4 things: username, password,
|
|
|
|
client_id, and client_secret. The username and password are the credentials
|
|
|
|
used to access data at netatmo.com. The client_id and client_secret must be
|
|
|
|
obtained via the dev.netatmo.com web site. Using these 4 things, the driver
|
|
|
|
automatically obtains and updates the tokens needed to get data from the
|
|
|
|
server.
|
|
|
|
|
|
|
|
[bricebou]
|
|
|
|
This fork aims to be compatible with weewx 4.* and has been "rewritten" in Python 3 thanks to the `2to3` tool.
|
|
|
|
[/bricebou]
|
|
|
|
|
|
|
|
|
|
|
|
===============================================================================
|
|
|
|
Installation instructions:
|
|
|
|
|
|
|
|
1) download the driver:
|
|
|
|
|
|
|
|
wget -O weewx-netatmo.zip https://github.com/bricebou/weewx-netatmo/archive/master.zip
|
|
|
|
2) install the driver:
|
|
|
|
|
|
|
|
sudo wee_extension --install weewx-netatmo.zip
|
|
|
|
|
|
|
|
3) select and configure the driver:
|
|
|
|
|
|
|
|
sudo wee_config --reconfigure
|
|
|
|
|
|
|
|
[bricebou]
|
|
|
|
It seems that the configuration isn't written so you have to manually edit the ``/etc/weewx/weewx.conf` file.
|
|
|
|
[/bricebou]
|
|
|
|
|
|
|
|
4) start weewx:
|
|
|
|
|
|
|
|
sudo /etc/init.d/weewx start
|