matterbridge 3.2.1-dev-20250807-1aeddad → 3.2.1-dev-20250811-8836577
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 +2 -2
- package/frontend/build/static/js/main.b4cc32cf.js.map +1 -1
- package/npm-shrinkwrap.json +5 -5
- package/package.json +1 -2
- package/docs/404.html +0 -107
- package/docs/HomeAssistant.svg +0 -2
- package/docs/README-DEV.md +0 -377
- package/docs/README-DOCKER.md +0 -208
- package/docs/README-NGINX.md +0 -235
- package/docs/README-PODMAN.md +0 -109
- package/docs/README-SERVICE.md +0 -212
- package/docs/README.md +0 -618
- package/docs/Shelly.svg +0 -1
- package/docs/Somfy.svg +0 -1
- package/docs/Zigbee2MQTT.svg +0 -1
- package/docs/_config.yml +0 -86
- package/docs/bmc-button.svg +0 -22
- package/docs/index.html +0 -774
- package/docs/matterbridge.svg +0 -50
- package/docs/robots.txt +0 -4
package/docs/README-SERVICE.md
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
# <img src="frontend/public/matterbridge.svg" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge systemd configuration
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/matterbridge)
|
|
4
|
-
[](https://www.npmjs.com/package/matterbridge)
|
|
5
|
-
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
6
|
-
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
[](https://codecov.io/gh/Luligu/matterbridge)
|
|
10
|
-
|
|
11
|
-
[](https://www.npmjs.com/package/matter-history)
|
|
12
|
-
[](https://www.npmjs.com/package/node-ansi-logger)
|
|
13
|
-
[](https://www.npmjs.com/package/node-persist-manager)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# Advanced configuration
|
|
18
|
-
|
|
19
|
-
## Run matterbridge as a daemon with systemctl (Linux only)
|
|
20
|
-
|
|
21
|
-
The easiest way to add systemctl is to use [Matterbridge service cli for linux](https://github.com/Luligu/mb-service-linux).
|
|
22
|
-
|
|
23
|
-
If your setup is too complex or you prefer to do it manually follow this method. You can still use mb-service to manage systemd after.
|
|
24
|
-
|
|
25
|
-
### First create the Matterbridge directories
|
|
26
|
-
|
|
27
|
-
This will create the required directories if they don't exist
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
cd ~
|
|
31
|
-
mkdir -p ./Matterbridge
|
|
32
|
-
mkdir -p ./.matterbridge
|
|
33
|
-
sudo chown -R $USER:$USER ./Matterbridge ./.matterbridge
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Then create a systemctl configuration file for Matterbridge
|
|
37
|
-
|
|
38
|
-
Create a systemctl configuration file for Matterbridge
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
sudo nano /etc/systemd/system/matterbridge.service
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Add the following to this file, replacing 3 times (!) USER with your user name (e.g. WorkingDirectory=/home/pi/Matterbridge, User=pi and Group=pi):
|
|
45
|
-
|
|
46
|
-
You may need to adapt the configuration to your setup:
|
|
47
|
-
|
|
48
|
-
- execStart on some linux distribution can also be ExecStart==/usr/bin/matterbridge -service
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
[Unit]
|
|
52
|
-
Description=matterbridge
|
|
53
|
-
After=network-online.target
|
|
54
|
-
|
|
55
|
-
[Service]
|
|
56
|
-
Type=simple
|
|
57
|
-
ExecStart=matterbridge -service
|
|
58
|
-
WorkingDirectory=/home/<USER>/Matterbridge
|
|
59
|
-
StandardOutput=inherit
|
|
60
|
-
StandardError=inherit
|
|
61
|
-
Restart=always
|
|
62
|
-
User=<USER>
|
|
63
|
-
Group=<USER>
|
|
64
|
-
|
|
65
|
-
[Install]
|
|
66
|
-
WantedBy=multi-user.target
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
If you use the frontend with -ssl -frontend 443 and get an error message: "Port 443 requires elevated privileges",
|
|
70
|
-
add this:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
[Service]
|
|
74
|
-
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
If you use the matterbridge-bthome plugin add this:
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
[Service]
|
|
81
|
-
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_NET_ADMIN
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
If you modify matterbridge.service after, then run:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
sudo systemctl daemon-reload
|
|
88
|
-
sudo systemctl restart matterbridge.service
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Start Matterbridge
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
sudo systemctl start matterbridge
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Stop Matterbridge
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
sudo systemctl stop matterbridge
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### Show Matterbridge status
|
|
104
|
-
|
|
105
|
-
```bash
|
|
106
|
-
sudo systemctl status matterbridge.service
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### Enable Matterbridge to start automatically on boot
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
sudo systemctl enable matterbridge.service
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### Disable Matterbridge from starting automatically on boot
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
sudo systemctl disable matterbridge.service
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### View the log of Matterbridge in real time (this will show the log with colors)
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
sudo journalctl -u matterbridge.service -n 1000 -f --output cat
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Delete the logs older then 3 days (all of them not only the ones of Matterbridge!)
|
|
128
|
-
|
|
129
|
-
Check the space used
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
sudo journalctl --disk-usage
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
remove all log older then 3 days
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
sudo journalctl --rotate
|
|
139
|
-
sudo journalctl --vacuum-time=3d
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Prevent the journal logs to grow
|
|
143
|
-
|
|
144
|
-
If you want to make the setting permanent to prevent the journal logs to grow too much, run
|
|
145
|
-
|
|
146
|
-
```bash
|
|
147
|
-
sudo nano /etc/systemd/journald.conf
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
add
|
|
151
|
-
|
|
152
|
-
```bash
|
|
153
|
-
Compress=yes # Compress logs
|
|
154
|
-
MaxRetentionSec=3days # Keep logs for a maximum of 3 days.
|
|
155
|
-
MaxFileSec=1day # Rotate logs daily within the 3-day retention period.
|
|
156
|
-
ForwardToSyslog=no # Disable forwarding to syslog to prevent duplicate logging.
|
|
157
|
-
SystemMaxUse=100M # Limit persistent logs in /var/log/journal to 100 MB.
|
|
158
|
-
RuntimeMaxUse=100M # Limit runtime logs in /run/log/journal to 100 MB.
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
save it and run
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
sudo systemctl restart systemd-journald
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Verify that with your distro you can run sudo npm install -g matterbridge without the password
|
|
168
|
-
|
|
169
|
-
Run the following command to verify if you can install Matterbridge globally without being prompted for a password:
|
|
170
|
-
|
|
171
|
-
```bash
|
|
172
|
-
sudo npm install -g matterbridge
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
If you are not prompted for a password, no further action is required.
|
|
176
|
-
|
|
177
|
-
If that is not the case, open the sudoers file for editing using visudo
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
sudo visudo
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
verify the presence of of a line
|
|
184
|
-
|
|
185
|
-
```
|
|
186
|
-
@includedir /etc/sudoers.d
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
exit and create a configuration file for sudoers
|
|
190
|
-
|
|
191
|
-
```bash
|
|
192
|
-
sudo nano /etc/sudoers.d/matterbridge
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
add this line replacing USER with your user name (e.g. radxa ALL=(ALL) NOPASSWD: ALL)
|
|
196
|
-
|
|
197
|
-
```
|
|
198
|
-
<USER> ALL=(ALL) NOPASSWD: ALL
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
or if you prefers to only give access to npm without password try with (e.g. radxa ALL=(ALL) NOPASSWD: /usr/bin/npm)
|
|
202
|
-
|
|
203
|
-
```
|
|
204
|
-
<USER> ALL=(ALL) NOPASSWD: /usr/bin/npm
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
save the file and reload the settings with:
|
|
208
|
-
|
|
209
|
-
```bash
|
|
210
|
-
sudo chmod 0440 /etc/sudoers.d/matterbridge
|
|
211
|
-
sudo visudo -c
|
|
212
|
-
```
|