You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weewx-netatmo/install.py

30 lines
1.0 KiB

# $Id: install.py 1484 2016-04-25 16:20:31Z mwall $
# installer for netatmo driver
# Copyright 2015 Matthew Wall
from setup import ExtensionInstaller
def loader():
return NetatmoInstaller()
class NetatmoInstaller(ExtensionInstaller):
def __init__(self):
super(NetatmoInstaller, self).__init__(
version="0.2",
name='netatmo',
description='Driver for netatmo weather stations.',
author="Matthew Wall",
author_email="mwall@users.sourceforge.net",
config={
'Station': {
'station_type': 'netatmo'},
'netatmo': {
'mode': 'cloud',
'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'])]
)