@matter/examples 0.13.1-alpha.0-20250511-74ef153aa → 0.13.1-alpha.0-20250516-6288f3c54
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/README.md +2 -0
- package/package.json +6 -6
- package/src/device-onoff/README.md +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,8 @@ Some command line parameters, for example those used to set the level of logging
|
|
|
52
52
|
* `--mdns-networkinterface=...` or environment variable `MATTER_MDNS_NETWORKINTERFACE` or `environment.vars.set('mdns.networkInterface', "...")` allows to limit the DNS announcements and scanning to one network interface. By default, all available interfaces are used.
|
|
53
53
|
Additionally, all command line parameters now require to start with two dashes!
|
|
54
54
|
|
|
55
|
+
(if using `npm run ...` to run examples then an additional "--" if needed to separate commandline parameters between the npm run and the executed script. Please see the relevant examples README too.)
|
|
56
|
+
|
|
55
57
|
## Development on basis of the examples
|
|
56
58
|
|
|
57
59
|
The code of the examples is written so that you can use them as basis for your own scripts also outside of this library in your own package. If you import from `@matter/main` then matter.js loads platform extensions such as those for node.js automatically. If you import directly from our other packages then you should add a dependency on `@matter/nodejs`. The examples use `@matter/main` imports to ease adoption.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matter/examples",
|
|
3
|
-
"version": "0.13.1-alpha.0-
|
|
3
|
+
"version": "0.13.1-alpha.0-20250516-6288f3c54",
|
|
4
4
|
"description": "Matter.js examples and reference implementations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iot",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"matter-controller": "dist/esm/controller/ControllerNode.js"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@matter/main": "0.13.1-alpha.0-
|
|
59
|
-
"@matter/nodejs": "0.13.1-alpha.0-
|
|
60
|
-
"@matter/tools": "0.13.1-alpha.0-
|
|
61
|
-
"@project-chip/matter.js": "0.13.1-alpha.0-
|
|
58
|
+
"@matter/main": "0.13.1-alpha.0-20250516-6288f3c54",
|
|
59
|
+
"@matter/nodejs": "0.13.1-alpha.0-20250516-6288f3c54",
|
|
60
|
+
"@matter/tools": "0.13.1-alpha.0-20250516-6288f3c54",
|
|
61
|
+
"@project-chip/matter.js": "0.13.1-alpha.0-20250516-6288f3c54",
|
|
62
62
|
"esbuild": "^0.25.2"
|
|
63
63
|
},
|
|
64
64
|
"optionalDependencies": {
|
|
65
|
-
"@matter/nodejs-ble": "0.13.1-alpha.0-
|
|
65
|
+
"@matter/nodejs-ble": "0.13.1-alpha.0-20250516-6288f3c54"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=18.0.0"
|
|
@@ -33,7 +33,7 @@ or when starting from TS files:
|
|
|
33
33
|
```bash
|
|
34
34
|
npm run matter-device -- --type socket --on="echo 255 > /sys/class/leds/led1/brightness" --off="echo 0 > /sys/class/leds/led1/brightness"
|
|
35
35
|
```
|
|
36
|
-
(Please note the "--" to separate commandline parameters between the npm run and the executed script.
|
|
36
|
+
(Please note the "--" to separate commandline parameters between the npm run and the executed script.)
|
|
37
37
|
|
|
38
38
|
**If you want to start multiple parallel processes please make sure to use different storage locations, different network port and ideally also different passcodes for each process!**
|
|
39
39
|
|