matterbridge 1.0.6 → 1.1.3
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 +60 -0
- package/LICENSE +202 -21
- package/README.md +160 -5
- package/Screenshot devices page.png +0 -0
- package/Screenshot home page.png +0 -0
- package/dist/AirQualityCluster.d.ts +22 -0
- package/dist/AirQualityCluster.d.ts.map +1 -1
- package/dist/AirQualityCluster.js +23 -1
- package/dist/AirQualityCluster.js.map +1 -1
- package/dist/ColorControlServer.d.ts +20 -3
- package/dist/ColorControlServer.d.ts.map +1 -1
- package/dist/ColorControlServer.js +20 -3
- package/dist/ColorControlServer.js.map +1 -1
- package/dist/TvocCluster.d.ts +262 -0
- package/dist/TvocCluster.d.ts.map +1 -0
- package/dist/TvocCluster.js +114 -0
- package/dist/TvocCluster.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -1
- package/dist/index.js.map +1 -1
- package/dist/matterbridge.d.ts +188 -17
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +762 -224
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +65 -11
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -1
- package/dist/matterbridgeAccessoryPlatform.js +73 -39
- package/dist/matterbridgeAccessoryPlatform.js.map +1 -1
- package/dist/matterbridgeComposed.d.ts +43 -0
- package/dist/matterbridgeComposed.d.ts.map +1 -0
- package/dist/matterbridgeComposed.js +58 -0
- package/dist/matterbridgeComposed.js.map +1 -0
- package/dist/matterbridgeController.d.ts +2 -0
- package/dist/matterbridgeController.d.ts.map +1 -0
- package/dist/matterbridgeController.js +309 -0
- package/dist/matterbridgeController.js.map +1 -0
- package/dist/matterbridgeDevice.d.ts +209 -4
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +587 -51
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +65 -11
- package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -1
- package/dist/matterbridgeDynamicPlatform.js +73 -39
- package/dist/matterbridgeDynamicPlatform.js.map +1 -1
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +33 -0
- package/dist/utils.js.map +1 -0
- package/frontend/build/Matterbridge.jpg +0 -0
- package/frontend/build/asset-manifest.json +6 -6
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/css/main.6d93e0db.css +2 -0
- package/frontend/build/static/css/main.6d93e0db.css.map +1 -0
- package/frontend/build/static/js/main.b5a876cf.js +3 -0
- package/frontend/build/static/js/{main.a000062f.js.LICENSE.txt → main.b5a876cf.js.LICENSE.txt} +2 -0
- package/frontend/build/static/js/main.b5a876cf.js.map +1 -0
- package/package.json +16 -12
- package/.eslintrc.json +0 -45
- package/.gitattributes +0 -2
- package/.prettierignore +0 -2
- package/.prettierrc.json +0 -12
- package/frontend/README.md +0 -70
- package/frontend/build/static/css/main.8b969fd5.css +0 -2
- package/frontend/build/static/css/main.8b969fd5.css.map +0 -1
- package/frontend/build/static/js/main.a000062f.js +0 -3
- package/frontend/build/static/js/main.a000062f.js.map +0 -1
- package/frontend/package-lock.json +0 -18351
- package/frontend/package.json +0 -40
- package/frontend/public/favicon.ico +0 -0
- package/frontend/public/index.html +0 -15
- package/frontend/public/manifest.json +0 -15
- package/frontend/public/matter.png +0 -0
- package/frontend/public/robots.txt +0 -3
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Matterbridge",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.js",
|
|
@@ -20,15 +20,18 @@
|
|
|
20
20
|
"matter",
|
|
21
21
|
"matter.js"
|
|
22
22
|
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"matterbridge": "./dist/index.js"
|
|
25
|
+
},
|
|
23
26
|
"engines": {
|
|
24
27
|
"node": "^18.19.0 || ^20.11.0"
|
|
25
28
|
},
|
|
26
29
|
"scripts": {
|
|
27
30
|
"build": "tsc",
|
|
28
31
|
"watch": "tsc --watch",
|
|
29
|
-
"start": "node ./dist/index.js -bridge",
|
|
32
|
+
"start:bridge": "node ./dist/index.js -bridge",
|
|
33
|
+
"start:childbridge": "node ./dist/index.js -childbridge",
|
|
30
34
|
"start:help": "node ./dist/index.js -help",
|
|
31
|
-
"start:add": "node ./dist/index.js -add ../matterbridge-example-accessory-platform && node ./dist/index.js -add ../matterbridge-example-dynamic-platform",
|
|
32
35
|
"test": "jest",
|
|
33
36
|
"test:verbose": "jest --verbose",
|
|
34
37
|
"test:watch": "jest --watch",
|
|
@@ -45,21 +48,22 @@
|
|
|
45
48
|
"updateMatter": "npm install @project-chip/matter.js@dev && npm install @project-chip/matter-node.js@dev && npm install @project-chip/matter.js-tools@dev && npm install @project-chip/matter-node-ble.js@dev"
|
|
46
49
|
},
|
|
47
50
|
"devDependencies": {
|
|
48
|
-
"@stylistic/eslint-plugin": "^1.6.
|
|
51
|
+
"@stylistic/eslint-plugin": "^1.6.3",
|
|
49
52
|
"@tsconfig/node-lts": "^20.1.1",
|
|
50
53
|
"@types/express": "^4.17.21",
|
|
51
|
-
"@types/node": "^20.11.
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
53
|
-
"@typescript-eslint/parser": "^7.
|
|
54
|
+
"@types/node": "^20.11.25",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
56
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
54
57
|
"eslint-config-prettier": "^9.1.0",
|
|
55
58
|
"eslint-plugin-prettier": "^5.1.3",
|
|
56
59
|
"prettier": "^3.2.5",
|
|
57
|
-
"typescript": "^5.
|
|
60
|
+
"typescript": "^5.4.2"
|
|
58
61
|
},
|
|
59
62
|
"dependencies": {
|
|
60
63
|
"@project-chip/matter-node.js": "^0.7.5",
|
|
61
|
-
"express": "^4.18.
|
|
62
|
-
"
|
|
63
|
-
"node-
|
|
64
|
+
"express": "^4.18.3",
|
|
65
|
+
"matter-history": "^1.0.9",
|
|
66
|
+
"node-ansi-logger": "^1.9.2",
|
|
67
|
+
"node-persist-manager": "^1.0.4"
|
|
64
68
|
}
|
|
65
69
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"plugins": [
|
|
3
|
-
"@typescript-eslint",
|
|
4
|
-
"@stylistic",
|
|
5
|
-
"prettier"
|
|
6
|
-
],
|
|
7
|
-
"parser": "@typescript-eslint/parser",
|
|
8
|
-
"parserOptions": {
|
|
9
|
-
"ecmaVersion": "latest",
|
|
10
|
-
"sourceType": "module"
|
|
11
|
-
},
|
|
12
|
-
"env": {
|
|
13
|
-
"browser": true,
|
|
14
|
-
"es2021": true,
|
|
15
|
-
"node": true
|
|
16
|
-
},
|
|
17
|
-
"extends": [
|
|
18
|
-
"eslint:recommended",
|
|
19
|
-
"plugin:@typescript-eslint/eslint-recommended",
|
|
20
|
-
"plugin:@typescript-eslint/recommended",
|
|
21
|
-
"prettier"
|
|
22
|
-
],
|
|
23
|
-
"rules": {
|
|
24
|
-
"prettier/prettier": ["error"],
|
|
25
|
-
"indent": ["error", 2],
|
|
26
|
-
"max-len": ["warn", 180],
|
|
27
|
-
"no-console": ["warn"],
|
|
28
|
-
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
|
|
29
|
-
"comma-spacing": ["error", { "before": false, "after": true }],
|
|
30
|
-
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
|
|
31
|
-
"keyword-spacing": ["error", { "before": true, "after": true }],
|
|
32
|
-
"no-multi-spaces": "error",
|
|
33
|
-
"object-curly-spacing": ["error", "always"],
|
|
34
|
-
"@typescript-eslint/type-annotation-spacing": ["error", {
|
|
35
|
-
"before": false,
|
|
36
|
-
"after": true,
|
|
37
|
-
"overrides": {
|
|
38
|
-
"arrow": {
|
|
39
|
-
"before": true,
|
|
40
|
-
"after": true
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}]
|
|
44
|
-
}
|
|
45
|
-
}
|
package/.gitattributes
DELETED
package/.prettierignore
DELETED
package/.prettierrc.json
DELETED
package/frontend/README.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Getting Started with Create React App
|
|
2
|
-
|
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `npm start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
|
13
|
-
|
|
14
|
-
The page will reload when you make changes.\
|
|
15
|
-
You may also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `npm test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `npm run build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `npm run eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
|
35
|
-
|
|
36
|
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
|
39
|
-
|
|
40
|
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
47
|
-
|
|
48
|
-
### Code Splitting
|
|
49
|
-
|
|
50
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
|
51
|
-
|
|
52
|
-
### Analyzing the Bundle Size
|
|
53
|
-
|
|
54
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
|
55
|
-
|
|
56
|
-
### Making a Progressive Web App
|
|
57
|
-
|
|
58
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
|
59
|
-
|
|
60
|
-
### Advanced Configuration
|
|
61
|
-
|
|
62
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
|
63
|
-
|
|
64
|
-
### Deployment
|
|
65
|
-
|
|
66
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
|
67
|
-
|
|
68
|
-
### `npm run build` fails to minify
|
|
69
|
-
|
|
70
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.main-background{background-color:#9e9e9e}.nav-link{font-size:20px;margin:0 10px}.table-header{height:30px;padding:0 10px}table{border-collapse:collapse;box-shadow:5px 5px 10px #888;width:100%}td,th{border:1px solid #ddd;padding:5px;text-align:left}th{background-color:#4caf50;color:#fff}tr:nth-child(odd){background-color:#9e9e9e}tr:nth-child(2n){background-color:#bdbdbd}
|
|
2
|
-
/*# sourceMappingURL=main.8b969fd5.css.map*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/css/main.8b969fd5.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF,CCTA,iBACE,wBACF,CAGA,UAEE,cAAe,CADf,aAEF,CAGA,cACE,WAAY,CAGZ,cACF,CAGA,MACE,wBAAyB,CAEzB,4BAA6B,CAD7B,UAEF,CAEA,MACE,qBAAsB,CACtB,WAAY,CACZ,eACF,CAEA,GACE,wBAAyB,CACzB,UACF,CAEA,kBACE,wBACF,CAEA,iBACE,wBACF","sources":["index.css","App.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","/* App.css */\n\n/* Table header style */\n.main-background {\n background-color: #9e9e9e;\n}\n\n/* Navigation in Header.js style */\n.nav-link {\n margin: 0 10px;\n font-size: 20px;\n}\n\n/* Table header style */\n.table-header {\n height: 30px;\n padding: 0px;\n padding-right: 10px;\n padding-left: 10px;\n}\n\n/* Table style */\ntable {\n border-collapse: collapse;\n width: 100%;\n box-shadow: 5px 5px 10px #888; \n}\n\nth, td {\n border: 1px solid #ddd;\n padding: 5px;\n text-align: left;\n}\n\nth {\n background-color: #4CAF50;\n color: white;\n}\n\ntr:nth-child(odd) {\n background-color: #9e9e9e;\n}\n\ntr:nth-child(even) {\n background-color: #bdbdbd;\n}\n\n"],"names":[],"sourceRoot":""}
|