Hi,
I used this guide (with the the modifications that are commented below by me) to install my bridge and lirc. It is currently offline but maybe it comes back:
https://itquickie.de/raspberry-pi-infrarot-sender-und-empfaenger-ueber-ccu2-nutzen
I know that there is already a service, because I start lirc with “sudo systemctl start lircd”. Is this using systemd so the config I have to create (and also the “system”-folder in the systemd directory) will be effective? I am using Raspian on the RaspberryPis.
Now I am at home, so my complete config in the /etc/lirc/lirc_options.conf-file is:
[lircd]
nodaemon = False
#driver = devinput
#device = auto
driver = default
device = /dev/lirc0
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
#effective-user =
listen = 0.0.0.0:8700
#connect = host[:port]
#loglevel = 6
#uinput = ...
#release = ...
#logfile = ...
[lircmd]
uinput = False
nodaemon = False
There is already the statement for the listener parameter. So why do I have to define it again in the service config file?
Edit: I found my comment of the linked guide above on my local PC how I setup the software part (in German). That also means, that the listener configuration is the default for the current lirc version! So here it is:
Dies gilt für: Raspbian Stretch und Lirc 0.9.4c-9
1. sudo apt-get install lirc
2. Zu /etc/modules folgendes hinzufügen:
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17
3. Die Datei /etc/lirc/hardware.conf anlegen und mit folgendem Inhalt füllen:
LIRCD_ARGS="--uinput"
LOAD_MODULES=true
DRIVER="default"
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
4. Folgende Datei in /boot/config.txt hinzufügen (oder wenn dtoverlay bereits existiert, die Parameter hinzufügen)
dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
5. In der /etc/lirc/lirc_options.conf die Zeilen beginnend mit driver und device wie folgt ändern:
driver = default
device = /dev/lirc0
6. Neustarten
[...]
Starten: sudo systemctl start lircd
Stoppen: sudo systemctl stop lircd
[...]