Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying the location of the lirc daemon #12

Open
michaelarnauts opened this issue Aug 28, 2018 · 0 comments
Open

Allow specifying the location of the lirc daemon #12

michaelarnauts opened this issue Aug 28, 2018 · 0 comments

Comments

@michaelarnauts
Copy link
Owner

It seems that on OSMC, the lirc daemon is not on the default /var/run/lircd socket.

You need to change the code like this:

diff --git a/bridge.py b/bridge.py
index 7be2d11..387f570 100755
--- a/bridge.py
+++ b/bridge.py
@@ -192,7 +192,7 @@ def ir_listen_thread():


 def ir_send(remote, key):
-    subprocess.call(["irsend", "SEND_ONCE", remote, key])
+    subprocess.call(["irsend", "--device=/run/lirc/lircd-lirc0", "SEND_ONCE", remote, key])


 def cec_refresh():

This needs to be a configuration option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant