-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
36 lines (33 loc) · 1.37 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
# installer for OpenSensMap Rest uploader
# Copyright 2021-
# Distributed under the terms of the MIT License
from weecfg.extension import ExtensionInstaller
def loader():
return OpenSenseMapInstaller()
class OpenSenseMapInstaller(ExtensionInstaller):
def __init__(self):
super(OpenSenseMapInstaller, self).__init__(
version="0.1",
name='OpenSenseMap',
description='Upload weather data to OpenSenseMap.',
author="sbsrouteur",
author_email="[email protected]",
restful_services='user.opensensemap.OpenSenseMap',
config={
'StdRESTful': {
'OpenSenseMap': {
'SensorId': 'INSERT_SENSORBOX_ID_HERE',
'AuthKey': 'INSERT_AUTH_KEY_HERE',
'UsUnits':'False',
'enable':'True',
'Sensors':{
'outTemp':{
'SensorId':'ENTER_OUT_TEMP_SENSOR_ID'
},
'outHumidity':{
'SensorId':'ENTER_OUT_Humidity_SENSOR_ID'
}
}
}}},
files=[('bin/user', ['bin/user/opensensemap.py'])]
)