From f79ebe01f5d18ed1eeee3f7ff8b777e39517370f Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Thu, 7 Feb 2019 15:15:10 -0500 Subject: [PATCH] insert stanza into weewx config during install, not just reconfigure --- bin/user/netatmo.py | 2 +- changelog | 3 +++ install.py | 11 ++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/bin/user/netatmo.py b/bin/user/netatmo.py index 1390bb5..d5a892d 100644 --- a/bin/user/netatmo.py +++ b/bin/user/netatmo.py @@ -43,7 +43,7 @@ import weewx.wxformulas import weeutil.weeutil DRIVER_NAME = 'netatmo' -DRIVER_VERSION = "0.13" +DRIVER_VERSION = "0.14" INHG_PER_MBAR = 0.0295299830714 MPH_TO_KPH = 1.60934 diff --git a/changelog b/changelog index 34c6ca4..73a92fb 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,6 @@ +0.14 07feb2019 +* insert default stanza into weewx configuration file + 0.13 20dec2018 * deal with 'dashboard_data' not existing when lost contact with sensors diff --git a/install.py b/install.py index 53303ba..8e7e045 100644 --- a/install.py +++ b/install.py @@ -10,10 +10,19 @@ def loader(): class NetatmoInstaller(ExtensionInstaller): def __init__(self): super(NetatmoInstaller, self).__init__( - version="0.13", + version="0.14", name='netatmo', description='Driver for netatmo weather stations.', author="Matthew Wall", author_email="mwall@users.sourceforge.net", + config={ + 'netatmo': { + 'username': 'INSERT_USERNAME_HERE', + 'password': 'INSERT_PASSWORD_HERE', + 'client_id': 'INSERT_CLIENT_ID_HERE', + 'client_secret': 'INSERT_CLIENT_SECRET_HERE', + 'driver': 'user.netatmo', + } + }, files=[('bin/user', ['bin/user/netatmo.py'])] )