forked from grebleem/weewx-weatherlinkliveudp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
57 lines (54 loc) · 2.09 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Installer file for WeatherLink Live (WeatherLinkLiveUDP) driver for WeeWX
# Copyright 2020 Bastiaan Meelberg
# Modified 2021/2023 Werner Krenn (leaf/soil/Extra2..4,ISS2,Wind,Rain,Batlevel,Signal)
# 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.5.2',
name='WeatherLinkLiveUDP',
description='Periodically poll weather data from a WeatherLink Live device',
author="Bastiaan Meelberg, Werner Krenn",
config={
'WeatherLinkLiveUDP': {
'wll_ip': '1.2.3.4',
'poll_interval': 30,
'driver': 'user.weatherlinkliveudp',
'#txid_iss' : 1,
'#extra_id': 2,
'#extra_id2': 0,
'#extra_id3': 0,
'#extra_id4': 0,
'#leaf': 0,
'#soil': 0,
'#wind': 0,
'#txid_rain': 0,
'#txid_iss2': 0,
'#did': '001D0A61F5E8',
'log': 0,
}
'RadiationDays': {
'min_sunshine': '120',
'sunshine_coeff': '0.95',
'sunshine_min': '18',
'sunshine_loop': '1',
'rainDur_loop': '0',
'sunshine_log': '0',
'rainDur_log': '0',
'rain2': '1',
'sunshine2': '0',
'sunshine2_loop': '1',
'rainDur2_loop': '0',
'sunshine2_log': '0',
'rainDur2_log': '0',
},
},
files=[
('bin/user', [
'bin/user/weatherlinkliveudp.py',
'bin/user/sunrainduration.py',
]),
)