-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.py
More file actions
32 lines (29 loc) · 1.02 KB
/
install.py
File metadata and controls
32 lines (29 loc) · 1.02 KB
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
# Carter Humphreys
# https://github.com/HumphreysCarter/weewx-fastapi
from weecfg.extension import ExtensionInstaller
def loader():
return WeeWxApiInstaller()
class WeeWxApiInstaller(ExtensionInstaller):
def __init__(self):
# Create weewx config
super(WeeWxApiInstaller, self).__init__(
version='0.1.0',
name='weewx-fastapi',
description='An API interface to WeeWX utilizing the FastAPI framework.',
author='Carter Humphreys',
author_email='carter.humphreys@lake-effect.dev',
data_services='user.api_server.DataAPI',
config={
'DataAPI': {
'enable': 'True',
'server_host': 'localhost',
'server_port': 8000,
'prism_normals': 'False',
},
},
files=[
(
'bin/user/', ['bin/user/api_server.py', 'bin/user/api_router.py']
),
]
)