Skip to content

Commit

Permalink
[gpio] Added instructions in case raspi-config is not available (open…
Browse files Browse the repository at this point in the history
…hab#9899)

Signed-off-by: Seb Boulet <SebBoulet@users.noreply.github.com>
  • Loading branch information
SebBoulet authored and Techni-Git committed Feb 17, 2021
1 parent 484f283 commit 22d6a95
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion bundles/org.openhab.binding.gpio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 22d6a95

Please sign in to comment.