-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
72 lines (66 loc) · 2.78 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
# installer for the 'SguWeewx' skin
# February 2023, Sally Woolrich
from weecfg.extension import ExtensionInstaller
#-------- extension info -----------
VERSION = "2.2g"
NAME = 'SguWeewx'
DESCRIPTION = 'A bespoke skin used to interface the Scottish Gliding Center weather station with the Pilot\'s Wiki'
AUTHOR = "Sally Woolrich"
AUTHOR_EMAIL = "shunracats<at>gmail.com"
#-------- main loader -----------
def loader():
return SguWeewxInstaller()
class SguWeewxInstaller(ExtensionInstaller):
def __init__(self):
super(SguWeewxInstaller, self).__init__(
version=VERSION,
name=NAME,
description=DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
config={
'StdReport': {
'SguWeewxReport': {
'skin': 'SguWeewx',
'enable' : 'True',
'lang': 'en',
'HTML_ROOT':'/var/www/html/weewx/dokuwiki',
},
'PolarWindPlot': {
'skin': 'PolarWindPlot',
'enable' : 'True',
'HTML_ROOT':'/var/www/html/weewx/dokuwiki',
},
'Defaults': {
'Units': {
'Groups': {
'group_altitude': 'meter',
'group_pressure': 'hPa',
'group_rain': 'mm',
'group_rainrate': 'mm_per_hour',
'group_temperature': 'degree_C',
'group_speed': 'knot',
'group_speed2': 'knot2',
'unused': 'unused',
},
},
},
},
},
files=[('bin/user', ['bin/user/sguweewx.py', 'bin/user/polarwindplot.py']),
('skins/SguWeewx',
['skins/SguWeewx/font/FreeMonoBold.ttf',
'skins/SguWeewx/font/OpenSans-Regular.ttf',
'skins/SguWeewx/font/OpenSans-Bold.ttf',
'skins/SguWeewx/lang/en.conf',
'skins/SguWeewx/pages/weather/noaa/noaa-YYYY.txt.tmpl',
'skins/SguWeewx/pages/weather/noaa/noaa-YYYY-MM.txt.tmpl',
'skins/SguWeewx/pages/weather/weather_stats_incl.txt.tmpl',
'skins/SguWeewx/sguweewx.html.tmpl',
'skins/SguWeewx/skin.conf',
]),
('skins/PolarWindPlot',
['skins/PolarWindPlot/font/OpenSans-Bold.ttf',
'skins/PolarWindPlot/skin.conf',]),
]
)