mirror of
https://github.com/bricebou/weewx-netatmo.git
synced 2025-01-18 03:51:10 +01:00
insert stanza into weewx config during install, not just reconfigure
This commit is contained in:
parent
ed38612d01
commit
f79ebe01f5
3 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
11
install.py
11
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'])]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue