Just wanted to thank you for this post, you sir are a gentlemen and a scholar ![Smile :)]()
I have used lirc on Debian Jessie and have switched to IR-keytable with evdev in python, as I had plenty of issues with lirc and Stretch/Buster onward.
Just tested it on Raspberry Pi OS and Dietpi, both worked very well, even better than IR-Keytable/evdev, which would produce wrong key presses from time to time. So far I recorded and mapped Yamaha, AppleTV and Kaleidescape remotes, which worked flawlessly.
I just needed the data[2] from keypress.split, so i shortened your code a bit for testing and it worked great.

I have used lirc on Debian Jessie and have switched to IR-keytable with evdev in python, as I had plenty of issues with lirc and Stretch/Buster onward.
Just tested it on Raspberry Pi OS and Dietpi, both worked very well, even better than IR-Keytable/evdev, which would produce wrong key presses from time to time. So far I recorded and mapped Yamaha, AppleTV and Kaleidescape remotes, which worked flawlessly.
I just needed the data[2] from keypress.split, so i shortened your code a bit for testing and it worked great.
Code:
#!/usr/bin/python3import lircconn = lirc.LircdConnection()conn.connect()print("Listening...")try: while True: try: keypress = conn.readline() except TimeoutError: keypress="" if (keypress != "" and keypress != None): data = keypress.split() command = data[2] print(command)except KeyboardInterrupt: print ("\nShutting down...") conn.close()
Statistics: Posted by zvonimir256 — Fri Nov 29, 2024 11:35 am