-
Notifications
You must be signed in to change notification settings - Fork 22
/
install.py
25 lines (22 loc) · 856 Bytes
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# installer for influx
# Copyright 2016-2021 Matthew Wall
# Distributed under the terms of the GNU Public License (GPLv3)
from weecfg.extension import ExtensionInstaller
def loader():
return InfluxInstaller()
class InfluxInstaller(ExtensionInstaller):
def __init__(self):
super(InfluxInstaller, self).__init__(
version="0.17",
name='influx',
description='Upload weather data to Influx.',
author="Matthew Wall",
author_email="[email protected]",
restful_services='user.influx.Influx',
config={
'StdRESTful': {
'Influx': {
'database': 'INSERT_DATABASE_HERE',
'host': 'INSERT_HOST_HERE'}}},
files=[('bin/user', ['bin/user/influx.py'])]
)