forked from matthewwall/weewx-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.py
24 lines (21 loc) · 795 Bytes
/
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
# installer for MQTT
# Copyright 2014-2020 Matthew Wall
# Distributed under the terms of the GNU Public License (GPLv3)
from weecfg.extension import ExtensionInstaller
def loader():
return MQTTInstaller()
class MQTTInstaller(ExtensionInstaller):
def __init__(self):
super(MQTTInstaller, self).__init__(
version="0.23",
name='mqtt',
description='Upload weather data to MQTT server.',
author="Matthew Wall",
author_email="mwall@users.sourceforge.net",
restful_services='user.mqtt.MQTT',
config={
'StdRESTful': {
'MQTT': {
'server_url': 'INSERT_SERVER_URL_HERE'}}},
files=[('bin/user', ['bin/user/mqtt.py'])]
)