matterbridge 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +189 -171
- package/README.md +379 -297
- package/TODO.md +7 -0
- package/dist/AirQualityCluster.d.ts +134 -104
- package/dist/AirQualityCluster.d.ts.map +1 -1
- package/dist/AirQualityCluster.js +43 -26
- package/dist/AirQualityCluster.js.map +1 -1
- package/dist/EveHistoryCluster.d.ts +446 -0
- package/dist/EveHistoryCluster.d.ts.map +1 -0
- package/dist/EveHistoryCluster.js +170 -0
- package/dist/EveHistoryCluster.js.map +1 -0
- package/dist/TvocCluster.d.ts +364 -148
- package/dist/TvocCluster.d.ts.map +1 -1
- package/dist/TvocCluster.js +115 -32
- package/dist/TvocCluster.js.map +1 -1
- package/dist/cli.js +6 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/matterbridge.d.ts +9 -1
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +338 -150
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeController.d.ts.map +1 -1
- package/dist/matterbridgeController.js +9 -0
- package/dist/matterbridgeController.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +1254 -9
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +372 -91
- package/dist/matterbridgeDevice.js.map +1 -1
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/matterbridge 32x32.png +0 -0
- package/frontend/build/matterbridge 64x64.png +0 -0
- package/frontend/build/static/css/main.61f6cf42.css.map +1 -1
- package/frontend/build/static/js/main.6b861489.js +3 -0
- package/frontend/build/static/js/main.6b861489.js.map +1 -0
- package/matterbridge.service +18 -0
- package/package.json +88 -87
- package/frontend/build/Matterbridge.jpg +0 -0
- package/frontend/build/static/js/main.e3553a4d.js +0 -3
- package/frontend/build/static/js/main.e3553a4d.js.map +0 -1
- /package/frontend/build/static/js/{main.e3553a4d.js.LICENSE.txt → main.6b861489.js.LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -1,298 +1,380 @@
|
|
|
1
|
-
# <img src="https://github.com/Luligu/matterbridge/blob/main/frontend/public/matterbridge%2064x64.png" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/matterbridge)
|
|
4
|
-
[](https://www.npmjs.com/package/matterbridge)
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[](https://www.npmjs.com/package/matter-history)
|
|
9
|
-
[](https://www.npmjs.com/package/node-ansi-logger)
|
|
10
|
-
[](https://www.npmjs.com/package/node-persist-manager)
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Matterbridge is a matter.js plugin manager.
|
|
16
|
-
|
|
17
|
-
It allows you to have all your Matter devices up and running in a couple of minutes without
|
|
18
|
-
having to deal with the pairing process of each single device.
|
|
19
|
-
|
|
20
|
-
The developer just focuses on the device development extending the provided classes.
|
|
21
|
-
|
|
22
|
-
Just pair Matterbridge once, and it will load all your registered plugins.
|
|
23
|
-
|
|
24
|
-
This project aims to allow the porting of homebridge plugins to matterbridge plugins without recoding everything.
|
|
25
|
-
|
|
26
|
-
It creates a device to pair in any ecosystem like Apple Home, Google Home, Amazon Alexa, or
|
|
27
|
-
any other ecosystem supporting Matter.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
on
|
|
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
|
-
### mode
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
matterbridge -
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
Matterbridge exposes
|
|
71
|
-
|
|
72
|
-
###
|
|
73
|
-
|
|
74
|
-
```
|
|
75
|
-
matterbridge -
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
matterbridge
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
The
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
The
|
|
241
|
-
|
|
242
|
-
###
|
|
243
|
-
The
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
The method is
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
1
|
+
# <img src="https://github.com/Luligu/matterbridge/blob/main/frontend/public/matterbridge%2064x64.png" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/matterbridge)
|
|
4
|
+
[](https://www.npmjs.com/package/matterbridge)
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
[](https://www.npmjs.com/package/matter-history)
|
|
9
|
+
[](https://www.npmjs.com/package/node-ansi-logger)
|
|
10
|
+
[](https://www.npmjs.com/package/node-persist-manager)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Matterbridge is a matter.js plugin manager.
|
|
16
|
+
|
|
17
|
+
It allows you to have all your Matter devices up and running in a couple of minutes without
|
|
18
|
+
having to deal with the pairing process of each single device.
|
|
19
|
+
|
|
20
|
+
The developer just focuses on the device development extending the provided classes.
|
|
21
|
+
|
|
22
|
+
Just pair Matterbridge once, and it will load all your registered plugins.
|
|
23
|
+
|
|
24
|
+
This project aims to allow the porting of homebridge plugins to matterbridge plugins without recoding everything.
|
|
25
|
+
|
|
26
|
+
It creates a device to pair in any ecosystem like Apple Home, Google Home, Amazon Alexa, or
|
|
27
|
+
any other ecosystem supporting Matter like Home Assistant.
|
|
28
|
+
|
|
29
|
+
You don't need a hub or a dedicated new machine.
|
|
30
|
+
|
|
31
|
+
No complex setup just copa paste the installation scripts.
|
|
32
|
+
|
|
33
|
+
Matterbridge is light weight and run also on slow Linux machine with 512MB of memory.
|
|
34
|
+
|
|
35
|
+
It runs perfectly on Windows too.
|
|
36
|
+
|
|
37
|
+
The project is build on top of https://github.com/project-chip/matter.js.
|
|
38
|
+
|
|
39
|
+
A special thank to Apollon77 for his incredible work.
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
|
|
43
|
+
Follow these steps to install Matterbridge:
|
|
44
|
+
|
|
45
|
+
on Windows:
|
|
46
|
+
```
|
|
47
|
+
npm install -g matterbridge
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
on Linux (you need the necessary permissions):
|
|
51
|
+
```
|
|
52
|
+
sudo npm install -g matterbridge
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Test the installation with:
|
|
56
|
+
```
|
|
57
|
+
matterbridge -bridge
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Now it is possible to open the frontend at the link provided (default: http://localhost:3000)
|
|
61
|
+
|
|
62
|
+
## Usage
|
|
63
|
+
|
|
64
|
+
### mode bridge
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
matterbridge -bridge
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Matterbridge only exposes itself, and you have to pair it scanning the QR code shown in the frontend or in the console.
|
|
71
|
+
|
|
72
|
+
### mode childbridge
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
matterbridge -childbridge
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Matterbridge exposes each registered plugins, and you have to pair each one by scanning the QR code shown in the frontend or in the console.
|
|
79
|
+
|
|
80
|
+
### Use matterbridge -help to see the command line syntax
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
matterbridge -help
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Frontend
|
|
87
|
+
|
|
88
|
+
Matterbridge has a frontend available on http://localhost:3000
|
|
89
|
+
|
|
90
|
+
You can change the default port by adding the frontend parameter when you launch it.
|
|
91
|
+
|
|
92
|
+
Here's how to specify a different port number:
|
|
93
|
+
```
|
|
94
|
+
matterbridge -bridge -frontend [port number]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
matterbridge -childbridge -frontend [port number]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Home page:
|
|
102
|
+

|
|
103
|
+
|
|
104
|
+
Devices page:
|
|
105
|
+

|
|
106
|
+
|
|
107
|
+
## Plugins
|
|
108
|
+
|
|
109
|
+
### Accessory platform example
|
|
110
|
+
|
|
111
|
+
This an example of an accessory platform plugin.
|
|
112
|
+
|
|
113
|
+
It exposes a virtual cover device that continuously moves position and shows how to use the command handlers (you can control the device).
|
|
114
|
+
|
|
115
|
+
An Accessory platform plugin only exposes one device.
|
|
116
|
+
|
|
117
|
+
[See the plugin homepage here](https://github.com/Luligu/matterbridge-example-accessory-platform)
|
|
118
|
+
|
|
119
|
+
### Dynamic platform example
|
|
120
|
+
|
|
121
|
+
This an example of a dynamic platform plugin.
|
|
122
|
+
|
|
123
|
+
It exposes a switch with onOff, a light with onOff-levelControl-colorControl, an outlet with onOff and a WindoweCovering device.
|
|
124
|
+
|
|
125
|
+
All these virtual devices continuously change state and position. The plugin also shows how to use all the command handlers (you can control all the devices).
|
|
126
|
+
|
|
127
|
+
A Dynamic platform plugin exposes as many devices as you need (the limit for the Home app is 150 accessories for bridge).
|
|
128
|
+
|
|
129
|
+
Matterbridge can run as many plugins as you want.
|
|
130
|
+
|
|
131
|
+
[See the plugin homepage here](https://github.com/Luligu/matterbridge-example-dynamic-platform)
|
|
132
|
+
|
|
133
|
+
### Example plugins to show the usage of history in matter
|
|
134
|
+
|
|
135
|
+
[Door plugin with history](https://github.com/Luligu/matterbridge-eve-door)
|
|
136
|
+
|
|
137
|
+
[Motion plugin with history](https://github.com/Luligu/matterbridge-eve-motion)
|
|
138
|
+
|
|
139
|
+
[Energy plugin with history](https://github.com/Luligu/matterbridge-eve-energy)
|
|
140
|
+
|
|
141
|
+
[Weather plugin with history](https://github.com/Luligu/matterbridge-eve-weather)
|
|
142
|
+
|
|
143
|
+
[Room plugin with history](https://github.com/Luligu/matterbridge-eve-room)
|
|
144
|
+
|
|
145
|
+
The history works in both bridge and childbridge mode.
|
|
146
|
+
|
|
147
|
+
The Eve app only shows the history when the plugins run like an AccessoryPlatform in childbridge mode (this means the plugin is paired directly).
|
|
148
|
+
|
|
149
|
+
### Production-level plugins
|
|
150
|
+
|
|
151
|
+
[zigbee2mqtt](https://github.com/Luligu/matterbridge-zigbee2mqtt)
|
|
152
|
+
|
|
153
|
+
## How to install and register a production-level plugin (from npm)
|
|
154
|
+
|
|
155
|
+
To install i.e. https://github.com/Luligu/matterbridge-zigbee2mqtt
|
|
156
|
+
|
|
157
|
+
On windows:
|
|
158
|
+
```
|
|
159
|
+
cd $HOME\Matterbridge
|
|
160
|
+
npm install -g matterbridge-zigbee2mqtt
|
|
161
|
+
matterbridge -add matterbridge-zigbee2mqtt
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
On linux:
|
|
165
|
+
```
|
|
166
|
+
cd ~/Matterbridge
|
|
167
|
+
sudo npm install -g matterbridge-zigbee2mqtt
|
|
168
|
+
matterbridge -add matterbridge-zigbee2mqtt
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## How to install and register a plugin for development (from github)
|
|
172
|
+
|
|
173
|
+
To install i.e. https://github.com/Luligu/matterbridge-example-accessory-platform
|
|
174
|
+
|
|
175
|
+
On windows:
|
|
176
|
+
```
|
|
177
|
+
cd $HOME\Matterbridge
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
On linux:
|
|
181
|
+
```
|
|
182
|
+
cd ~/Matterbridge
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
then clone the plugin
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
git clone https://github.com/Luligu/matterbridge-example-accessory-platform
|
|
189
|
+
cd matterbridge-example-accessory-platform
|
|
190
|
+
npm install
|
|
191
|
+
npm run build
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
then add the plugin to Matterbridge
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
matterbridge -add .\
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## How to add a plugin to Matterbridge
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
matterbridge -add [plugin path or plugin name]
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## How to remove a plugin from Matterbridge
|
|
207
|
+
|
|
208
|
+
```
|
|
209
|
+
matterbridge -remove [plugin path or plugin name]
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## How to disable a registered plugin
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
matterbridge -disable [plugin path or plugin name]
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## How to enable a registered plugin
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
matterbridge -enable [plugin path or plugin name]
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## How to create your plugin
|
|
225
|
+
|
|
226
|
+
The easiest way is to clone:
|
|
227
|
+
|
|
228
|
+
- https://github.com/Luligu/matterbridge-example-accessory-platform if you want to create an Accessory Platform Plugin.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
- https://github.com/Luligu/matterbridge-example-dynamic-platform if you want to create a Dynamic Platform Plugin.
|
|
232
|
+
|
|
233
|
+
Then change the name, version, description and author in the package.json.
|
|
234
|
+
|
|
235
|
+
Add your plugin logic in platform.ts.
|
|
236
|
+
|
|
237
|
+
## MatterbridgeDynamicPlatform and MatterbridgeAccessoryPlatform api
|
|
238
|
+
|
|
239
|
+
### public name: string
|
|
240
|
+
The plugin name.
|
|
241
|
+
|
|
242
|
+
### public type: string
|
|
243
|
+
The plugin platform type.
|
|
244
|
+
|
|
245
|
+
### public config: object
|
|
246
|
+
The plugin config (loaded before the platform constructor is called and saved after onShutdown() is called).
|
|
247
|
+
Here you can store your plugin configuration (see matterbridge-zigbee2mqtt for example)
|
|
248
|
+
|
|
249
|
+
### async onStart(reason?: string)
|
|
250
|
+
The method onStart() is where you have to create your MatterbridgeDevice and add all needed clusters and command handlers.
|
|
251
|
+
|
|
252
|
+
The MatterbridgeDevice class has the create cluster methods already done and all command handlers needed (see plugin examples).
|
|
253
|
+
|
|
254
|
+
The method is called when Matterbridge load the plugin.
|
|
255
|
+
|
|
256
|
+
### async onConfigure()
|
|
257
|
+
The method onConfigure() is where you can configure or initialize your device.
|
|
258
|
+
|
|
259
|
+
The method is called when the platform is commissioned.
|
|
260
|
+
|
|
261
|
+
### async onShutdown(reason?: string)
|
|
262
|
+
The method onShutdown() is where you have to eventually cleanup some resources.
|
|
263
|
+
|
|
264
|
+
The method is called when Matterbridge is shutting down.
|
|
265
|
+
|
|
266
|
+
### async registerDevice(device: MatterbridgeDevice)
|
|
267
|
+
After you created your device, add it to the platform.
|
|
268
|
+
|
|
269
|
+
### async unregisterDevice(device: MatterbridgeDevice)
|
|
270
|
+
You can unregister one or more device.
|
|
271
|
+
|
|
272
|
+
### async unregisterAllDevices()
|
|
273
|
+
You can unregister all devices you added.
|
|
274
|
+
|
|
275
|
+
It can be useful to call this method from onShutdown() if you don't want to keep all the devices during development.
|
|
276
|
+
|
|
277
|
+
## MatterbridgeDevice api
|
|
278
|
+
|
|
279
|
+
# Advanced configuration
|
|
280
|
+
|
|
281
|
+
## Run matterbridge as a daemon with systemctl (Linux only)
|
|
282
|
+
|
|
283
|
+
Create a systemctl configuration file for Matterbridge
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
sudo nano /etc/systemd/system/matterbridge.service
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
Add the following to this file, replacing twice USER with your user name (e.g. pi):
|
|
290
|
+
|
|
291
|
+
```
|
|
292
|
+
[Unit]
|
|
293
|
+
Description=matterbridge
|
|
294
|
+
After=network.target
|
|
295
|
+
|
|
296
|
+
[Service]
|
|
297
|
+
Type=simple
|
|
298
|
+
ExecStart=/usr/bin/matterbridge -bridge
|
|
299
|
+
WorkingDirectory=/home/<USER>/Matterbridge
|
|
300
|
+
StandardOutput=inherit
|
|
301
|
+
StandardError=inherit
|
|
302
|
+
Restart=always
|
|
303
|
+
RestartSec=10s
|
|
304
|
+
TimeoutStopSec=30s
|
|
305
|
+
User=<USER>
|
|
306
|
+
|
|
307
|
+
[Install]
|
|
308
|
+
WantedBy=multi-user.target
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
If you modify it after, then run:
|
|
312
|
+
```
|
|
313
|
+
sudo systemctl daemon-reload
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Start Matterbridge
|
|
317
|
+
```
|
|
318
|
+
sudo systemctl start matterbridge
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Stop Matterbridge
|
|
322
|
+
```
|
|
323
|
+
sudo systemctl stop matterbridge
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Show Matterbridge status
|
|
327
|
+
```
|
|
328
|
+
sudo systemctl status matterbridge.service
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### View the log of Matterbridge (this will keep the log colors)
|
|
332
|
+
```
|
|
333
|
+
sudo journalctl -u matterbridge.service -f --output cat
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Enable Matterbridge to start automatically on boot
|
|
337
|
+
|
|
338
|
+
```
|
|
339
|
+
sudo systemctl enable matterbridge.service
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### Disable Matterbridge to start automatically on boot
|
|
343
|
+
|
|
344
|
+
```
|
|
345
|
+
sudo systemctl disable matterbridge.service
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
# Contribution Guidelines
|
|
349
|
+
|
|
350
|
+
Thank you for your interest in contributing to my project!
|
|
351
|
+
|
|
352
|
+
I warmly welcome contributions to this project! Whether it's reporting bugs, proposing new features, updating documentation, or writing code, your help is greatly appreciated.
|
|
353
|
+
|
|
354
|
+
## Getting Started
|
|
355
|
+
|
|
356
|
+
- Fork this repository to your own GitHub account and clone it to your local device.
|
|
357
|
+
- Make the necessary changes and test them out
|
|
358
|
+
- Commit your changes and push to your forked repository
|
|
359
|
+
|
|
360
|
+
## Submitting Changes
|
|
361
|
+
|
|
362
|
+
- Create a new pull request from my repository and I'll be glad to check it out
|
|
363
|
+
- Be sure to follow the existing code style
|
|
364
|
+
- Add unit tests for any new or changed functionality if possible
|
|
365
|
+
- In your pull request, do describe what your changes do and how they work
|
|
366
|
+
|
|
367
|
+
## Code of Conduct
|
|
368
|
+
|
|
369
|
+
We believe in a welcoming and respectful community for all. Please make sure to follow our [Code of Conduct](LINK_TO_CODE_OF_CONDUCT) in all your interactions with the project.
|
|
370
|
+
|
|
371
|
+
## Support
|
|
372
|
+
|
|
373
|
+
If you find this project helpful and you wish to support the ongoing development, you can do so by buying me a coffee.
|
|
374
|
+
Click on the badge below to get started:
|
|
375
|
+
|
|
376
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
377
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
378
|
+
</a>
|
|
379
|
+
|
|
298
380
|
Thank you for your support!
|