lirc

LIRC - How to use as keyboard command?

守給你的承諾、 提交于 2021-02-07 10:29:58
问题 i have a question about LIRC in Debian. I searched now for some days and could not find any solution for my problem. Is it possible to use an IR-Remote to send keyboard commads? I will explain: I use the "read" function in a shell script. So i.e. i press the "T" key something happens. Now i want to send via LIRC the same "T" so that the shell script is working with the remote, too. The other way is, not in a shell script but at my sources of the C-program. Here i use a code like this: case 't

Python Lirc blocks code even when blocking is off

两盒软妹~` 提交于 2019-12-24 02:31:56
问题 I'm trying to set up a scrolling weather feed using the OWN (Open Weather Network )on my Raspberry Pi B+ running the latest Rasbian Wheezy distro and I'm having trouble adding IR support using Python LIRC (Linux Infrared Remote Control) . What I'm trying to do: There are four weather variables: condition, temperature, humidity, and wind speed . They will appear on my 16x2 LCD screen, centered with their title on the top line and value on the second. They will stay on the screen for five

Python LIRC blocking Signal workaround not working

纵然是瞬间 提交于 2019-12-11 16:16:05
问题 I've been having trouble with the Python LIRC function lirc.nextcode() . I turned off blocking, which allows the code lirc.nextcode() to be skipped if the LIRC queue is empty, by initializing with lirc.init("program", blocking=False) and tried lirc.set_blocking(False, sockid) . Neither worked and the code would always hang, waiting for a button press, when it should continue on. I found this workaround that puts a time limit on raw_input('prompt') . So even if my lirc.nextcodde() waits for a

Setup IR Remote Control Using LIRC for the Raspberry PI (RPi)

佐手、 提交于 2019-12-10 19:03:33
问题 After much searching I was surprised and dismayed about the conflicting information on how to setup IR remote control for my RPi project. I thought it would be easy but setting up Linux InfraRed Control (LIRC) has been problematic for a long time But much changed in June 2019 with the release of the Buster version of Raspbian making much of the tutorials out there worthless. Many tutorials have you create a hardware.conf file but LIRC does not need nor want it and the lirc-rpi module has been

How to use irrecord with 2ms timing instead of the default 5ms?

穿精又带淫゛_ 提交于 2019-12-05 07:54:55
问题 I'm trying to teach lirc on my Raspberry Pi the remote-codes for my heat pump - a Mitsubishi Electric MSZ-GE60VA (remote is SG10A 1833) I run irrecord as follows: sudo /etc/init.d/lirc stop irrecord -d /dev/lirc0 heatpump I get the usual cruft about pushing buttons, etc, and duly do so. After several dots (not always the same number), irrecord bails with the following error message: irrecord: could not find gap. irrecord: gap not found, can't continue Now, I've found elsewhere that the sample

How to use irrecord with 2ms timing instead of the default 5ms?

故事扮演 提交于 2019-12-03 21:19:49
I'm trying to teach lirc on my Raspberry Pi the remote-codes for my heat pump - a Mitsubishi Electric MSZ-GE60VA (remote is SG10A 1833) I run irrecord as follows: sudo /etc/init.d/lirc stop irrecord -d /dev/lirc0 heatpump I get the usual cruft about pushing buttons, etc, and duly do so. After several dots (not always the same number), irrecord bails with the following error message: irrecord: could not find gap. irrecord: gap not found, can't continue Now, I've found elsewhere that the sample rate might be wrong, and to look at the waveform using xmode2 - which I've done. I'm pretty sure I'd