-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmusq.conf
115 lines (96 loc) · 2.2 KB
/
musq.conf
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# mqtt_server: "192.168.0.149"
mqtt_server: "localhost"
mqtt_port: 1883
mqtt_client_id: "musq-default-41239"
mqtt_keepalive: 20
musq_id_extra_salt: 12345678
subscriptions:
- /example/#
inputs:
'beep-test':
topic: /test/beep-simple
scripts:
- /usr/bin/beep
'beep-test-2':
topic: /test/beep-simple-2
scripts:
- /usr/bin/beep -f 880 -l 50
'test-w215':
topic: /test/w215
ip: 192.168.x.x
pin: 000000
module: w215
'beep-with-arg':
topic: /test/beep
extract_payload: 1
scripts:
- /usr/bin/beep -f $ -l 100
'dorel-test':
topic: /test/dorel
extract_payload: 1
payload_escape: $musq_arg$
scripts:
- /bin/echo dorel $musq_arg$
'lights-full-path':
topic: /test/lights/1230/status
scripts:
- "/bin/bash /home/arha/musq/scripts/test-lights.bash 3333"
- "/bin/bash /home/arha/musq/scripts/test-lights.bash 6666"
'lights-partial-expansion':
topic: /test/lights/+/status
scripts:
- /bin/bash /home/arha/musq/scripts/test-lights.bash
'buttons-full-expansion':
topic: /test/buttons/#
scripts:
- /bin/bash /home/arha/musq/scripts/test-lights.bash
'example-orange-pi':
topic: /test/rpi/gpio/2
action: RPI.write $value
'example-raspberry-pi':
topic: /test/rpi/gpio/2
action: OPI.write $value
'example-nanopi-neo':
topic: /test/rpi/gpio/2
action: NEO.write $value
'test module':
topic: /test/module/demo/#
module: demo
'dummy module':
topic: /test/module/dummy/#
module: dummy
'unicorn-module':
topic: /test/mod/unicorn/#
offmodule: unicorn
'file-logger':
topic: /test/#
filename: /home/musq/musq.log
module: log_file
'fork-test':
topic: /test/module/thread/#
module: thread_test
thread: 1
outputs:
'testpipe':
path: '/home/pi/fifo1'
type: offpipe
topics:
- /test/lol
create: 1
'testpipe-2':
path: '/home/pi/fifo2'
type: off
topics:
- /test/prog
create: 1
'testserial':
type: 'serial'
device: '/dev/ttyS0'
baudrate: 9600
topics:
- /test/prog
'example-rpi-button':
type: 'rpi-gpio'
pin: 17
topics:
- /test/rpi/button