From cb9a11858149267b9a2c8dd7fc3a26b14b2e439a Mon Sep 17 00:00:00 2001 From: Seb Boulet Date: Wed, 17 Feb 2021 10:47:42 +0000 Subject: [PATCH] [gpio] Added instructions in case raspi-config is not available (#9899) Signed-off-by: Seb Boulet --- bundles/org.openhab.binding.gpio/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.gpio/README.md b/bundles/org.openhab.binding.gpio/README.md index e935a735f..622cf4835 100644 --- a/bundles/org.openhab.binding.gpio/README.md +++ b/bundles/org.openhab.binding.gpio/README.md @@ -22,12 +22,25 @@ sudo raspi-config -> Interfacing Options --> Remote GPIO --> YES --> OK --> Finish +Note: if you are setting this up on a Raspberry Pi without `raspi-config` you can create the service config file manually: + +``` +sudo mkdir -p /etc/systemd/system/pigpiod.service.d/ +sudo nano /etc/systemd/system/pigpiod.service.d/public.conf +``` + [Service] + ExecStart= + ExecStart=/usr/bin/pigpiod +``` +sudo systemctl daemon-reload +``` +Now that Remote GPIO is enabled, get the daemon going: ``` sudo systemctl enable pigpiod sudo systemctl start pigpiod ``` -Set `host` to the address of the pi and the `port` to the port of pigpio (default: 8888). +In openHAB, set `host` to the address of the pi and the `port` to the port of pigpio (default: 8888). ## Channels