-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from Luligu/dev
Release 1.5.2
- Loading branch information
Showing
37 changed files
with
778 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# <img src="https://github.com/Luligu/matterbridge/blob/main/frontend/public/matterbridge%2064x64.png" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge | ||
|
||
[![npm version](https://img.shields.io/npm/v/matterbridge.svg)](https://www.npmjs.com/package/matterbridge) | ||
[![npm downloads](https://img.shields.io/npm/dt/matterbridge.svg)](https://www.npmjs.com/package/matterbridge) | ||
[![Docker Version](https://img.shields.io/docker/v/luligu/matterbridge?label=docker%20version&sort=semver)](https://hub.docker.com/r/luligu/matterbridge) | ||
[![Docker Pulls](https://img.shields.io/docker/pulls/luligu/matterbridge.svg)](https://hub.docker.com/r/luligu/matterbridge) | ||
![Node.js CI](https://github.com/Luligu/matterbridge/actions/workflows/build.yml/badge.svg) | ||
|
||
[![power by](https://img.shields.io/badge/powered%20by-matter--history-blue)](https://www.npmjs.com/package/matter-history) | ||
[![power by](https://img.shields.io/badge/powered%20by-node--ansi--logger-blue)](https://www.npmjs.com/package/node-ansi-logger) | ||
[![power by](https://img.shields.io/badge/powered%20by-node--persist--manager-blue)](https://www.npmjs.com/package/node-persist-manager) | ||
|
||
--- | ||
|
||
# Advanced configuration | ||
|
||
## Run matterbridge as a daemon with systemctl (Linux only) | ||
|
||
Create a systemctl configuration file for Matterbridge | ||
|
||
``` | ||
sudo nano /etc/systemd/system/matterbridge.service | ||
``` | ||
|
||
Add the following to this file, replacing twice (!) USER with your user name (e.g. WorkingDirectory=/home/pi/Matterbridge and User=pi): | ||
|
||
You may need to adapt the configuration to your setup: | ||
- execStart on some linux distribution can also be ExecStart==/usr/bin/matterbridge -service | ||
|
||
``` | ||
[Unit] | ||
Description=matterbridge | ||
After=network-online.target | ||
[Service] | ||
Type=simple | ||
ExecStart=matterbridge -service | ||
WorkingDirectory=/home/<USER>/Matterbridge | ||
StandardOutput=inherit | ||
StandardError=inherit | ||
Restart=always | ||
RestartSec=10s | ||
TimeoutStopSec=30s | ||
User=<USER> | ||
[Install] | ||
WantedBy=multi-user.target | ||
``` | ||
|
||
If you modify it after, then run: | ||
|
||
``` | ||
sudo systemctl daemon-reload | ||
``` | ||
|
||
### Start Matterbridge | ||
|
||
``` | ||
sudo systemctl start matterbridge | ||
``` | ||
|
||
### Stop Matterbridge | ||
|
||
``` | ||
sudo systemctl stop matterbridge | ||
``` | ||
|
||
### Show Matterbridge status | ||
|
||
``` | ||
sudo systemctl status matterbridge.service | ||
``` | ||
|
||
### View the log of Matterbridge in real time (this will show the log with colors) | ||
|
||
``` | ||
sudo journalctl -u matterbridge.service -f --output cat | ||
``` | ||
|
||
### Delete the logs older then 3 days (all of them not only the ones of Matterbridge!) | ||
|
||
``` | ||
sudo journalctl --vacuum-time=3d | ||
``` | ||
|
||
### Enable Matterbridge to start automatically on boot | ||
|
||
``` | ||
sudo systemctl enable matterbridge.service | ||
``` | ||
|
||
### Disable Matterbridge from starting automatically on boot | ||
|
||
``` | ||
sudo systemctl disable matterbridge.service | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"files": { | ||
"main.css": "/static/css/main.ee3183e2.css", | ||
"main.js": "/static/js/main.4c5271fd.js", | ||
"main.css": "/static/css/main.1cf003ae.css", | ||
"main.js": "/static/js/main.cfcfbb06.js", | ||
"static/js/453.abd36b29.chunk.js": "/static/js/453.abd36b29.chunk.js", | ||
"index.html": "/index.html", | ||
"main.ee3183e2.css.map": "/static/css/main.ee3183e2.css.map", | ||
"main.4c5271fd.js.map": "/static/js/main.4c5271fd.js.map", | ||
"main.1cf003ae.css.map": "/static/css/main.1cf003ae.css.map", | ||
"main.cfcfbb06.js.map": "/static/js/main.cfcfbb06.js.map", | ||
"453.abd36b29.chunk.js.map": "/static/js/453.abd36b29.chunk.js.map" | ||
}, | ||
"entrypoints": [ | ||
"static/css/main.ee3183e2.css", | ||
"static/js/main.4c5271fd.js" | ||
"static/css/main.1cf003ae.css", | ||
"static/js/main.cfcfbb06.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.4c5271fd.js"></script><link href="/static/css/main.ee3183e2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.cfcfbb06.js"></script><link href="/static/css/main.1cf003ae.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.