-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.py
44 lines (35 loc) · 1.32 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2024 Raymon de Looff <raydelooff@gmail.com>
# This extension is open-source software licensed under the GPLv3 license.
__version__ = '2.0.1'
from setup import ExtensionInstaller
def loader():
"""Installs the WeeWX Pusher extension."""
return PusherInstaller()
class PusherInstaller(ExtensionInstaller):
"""Installs the WeeWX Pusher extension."""
def __init__(self):
super(PusherInstaller, self).__init__(
version=__version__,
name='pusher',
description='Send realtime weather data to Pusher.',
author='Raymon de Looff',
author_email='raydelooff@gmail.com',
restful_services='user.wxpusher.Pusher',
config={
'StdRESTful': {
'Pusher': {
'enable': 'True',
'app_id': 'replace_me',
'key': 'replace_me',
'secret': 'replace_me',
'cluster': 'replace_me',
'channel': 'replace_me',
'event': 'replace_me',
'post_interval': 5
}
}
},
files=[('bin/user', ['bin/user/wxpusher.py'])]
)