From c6d972fc89862b7623c0251403e141081375f523 Mon Sep 17 00:00:00 2001 From: Markus Becker Date: Wed, 19 Feb 2025 09:12:55 +0100 Subject: [PATCH 1/2] Developer documentation: /data & Ipv4 group limits --- DEVELOPMENT.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 158261ea..db27d1c1 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -6,6 +6,7 @@ Development is only possible on a (recent) Linux or MacOS machine. Other operati - Download/clone the repo to your local machine. - Set-up the development environment: `scripts/setup.sh` +- Create the `/data` directory if it does not exist with permissions for the user running the python-matter-server. ## Start Matter server @@ -19,6 +20,12 @@ Use `--help` to get a list of possible log levels and other command line argumen The server runs a Matter Controller and includes all logic for storing node information, interviews and subscriptions. To interact with this controller we've created a small Websockets API with an RPC-like interface. The library contains a client as reference implementation which in turn is used by Home Assistant. Splitting the server from the client allows the scenario where multiple consumers can communicate to the same Matter fabric and the Matter fabric can keep running while the consumer (e.g. Home Assistant is down). +If you happen to get `OSError: [Errno 105] No buffer space available.`, increase the IPv4 group limits with: +``` +echo "net.ipv4.igmp_max_memberships=1024" >> sysctl.conf +sudo sysctl -p sysctl.conf +``` + ## Python client library only There is also a Python client library hosted in this repository (used by Home Assistant), which consumes the Websockets API published from the server. From c74d1631732616528ef3e3808764cbe971e1e863 Mon Sep 17 00:00:00 2001 From: Markus Becker Date: Mon, 3 Mar 2025 08:22:27 +0100 Subject: [PATCH 2/2] Update DEVELOPMENT.md Co-authored-by: Zack Elia --- DEVELOPMENT.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index db27d1c1..dd49ff81 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -22,8 +22,8 @@ The server runs a Matter Controller and includes all logic for storing node info If you happen to get `OSError: [Errno 105] No buffer space available.`, increase the IPv4 group limits with: ``` -echo "net.ipv4.igmp_max_memberships=1024" >> sysctl.conf -sudo sysctl -p sysctl.conf +echo "net.ipv4.igmp_max_memberships=1024" | sudo tee -a /etc/sysctl.d/local.conf +sudo service procps force-reload ``` ## Python client library only