-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.py
75 lines (72 loc) · 3.49 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# installer for davishealthapi
from weecfg.extension import ExtensionInstaller
def loader():
return DavisHealthAPIInstaller()
class DavisHealthAPIInstaller(ExtensionInstaller):
def __init__(self):
super(DavisHealthAPIInstaller, self).__init__(
version='0.10',
name='davishealthapi',
description='Collect and display station health information from the Davis WeatherLink API.',
author='uajqq',
author_email='',
data_services='user.davishealthapi.DavisHealthAPI',
files=[('bin/user', ['bin/user/davishealthapi.py'])],
config={
'davishealthapi': {
'data_binding': 'davishealthapi_binding',
'station_id': '',
'api_key': '',
'api_secret': ''
},
'DataBindings': {
'davishealthapi_binding': {
'database': 'davishealthapi_sqlite',
'table_name': 'archive',
'manager': 'weewx.manager.DaySummaryManager',
'schema': 'user.davishealthapi.schema'
}
},
'Databases': {
'davishealthapi_sqlite': {
'database_type': 'SQLite',
'database_name': 'davishealthapi.sdb'}
},
'StdReport': {
'Defaults': {
'Labels': {
'Generic': {
'signalQuality': 'Signal Quality',
'supercapVolt': 'Supercapacitor',
'solarVolt': 'Solar Cell',
'packetStreak': 'Good Packets Streak',
'txID': 'Transmitter ID',
'txBattery': 'Transmitter Battery',
'rainfallClicks': 'Bucket Tips',
'solarRadVolt': 'Solar Radiation Sensor Solar Cell',
'txBatteryFlag': 'Transmitter Battery Status',
'errorPackets': 'Error Packets',
'afc': 'AFC',
'rssi': 'Signal Strength',
'resynchs': 'Re-synchronizations',
'uvVolt': 'UV Sensor Solar Cell',
'consoleBattery': 'Console Battery',
'rapidRecords': 'Rapid Records',
'firmwareVersion': 'Firmware Version',
'uptime': 'Uptime',
'touchpadWakeups': 'Touchpad Wakeups',
'bootloaderVersion': 'Bootloader Version',
'localAPIQueries': 'Local API Queries',
'rxBytes': 'Data Received',
'healthVersion': 'Davis Health Version',
'radioVersion': 'Radio Version',
'espressIFVersion': 'EspressIF Version',
'linkUptime': 'Link Uptime',
'consolePower': 'Console AC Power',
'txBytes': 'Data Transmitted',
}
}
}
}
}
)