-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.py
26 lines (22 loc) · 917 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
26
# Installer file for WeatherLink Live (WeatherLinkLiveUDP) driver for WeeWX
# Copyright 2020 Bastiaan Meelberg
# Distributed under the terms of the GNU Public License (GPLv3)
from setup import ExtensionInstaller
def loader():
return weatherlinkliveudpInstaller()
class weatherlinkliveudpInstaller(ExtensionInstaller):
def __init__(self):
super(weatherlinkliveudpInstaller, self).__init__(
version='0.2.6',
name='WeatherLinkLiveUDP',
description='Periodically poll weather data from a WeatherLink Live device',
author="Bastiaan Meelberg",
config={
'WeatherLinkLiveUDP': {
'wll_ip': '1.2.3.4',
'poll_interval': 30,
'driver': 'user.weatherlinkliveudp'
}
},
files=[('bin/user', ['bin/user/weatherlinkliveudp.py'])]
)