Switch projectors on and off at a specified time
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Demmelbauer b90f1e0adb add timer on off 3 years ago
README.md add timer on off 3 years ago
datenblatt-154380-kingbright-l-934f3bt-ir-emitter-940-nm-50-3-mm-radial-bedrahtet.pdf rm time 3 years ago
ir-remote-timer.py add timer on off 3 years ago
ir-remote-timer.service first try 3 years ago
requirements.txt v1 3 years ago

README.md

remote control devices via infra-red using a timer and web requests.

sudo apt install git python3-pip lirc

Clone this repo

cd /home/pi
git clone https://git.notice.at/redplanet/ir-remote-timer.git
cd ir-remote-timer

install pip modules

pip3 install -r requirements.txt

add systemd service

sudo cp ir-remote-timer.service /lib/systemd/system/ir-remote-timer.service
sudo systemctl daemon-reload
sudo systemctl enable ir-remote-timer.service

Setting up the infrared

Use irrecord to create a lirc Config file. You need an ir receiver for that. sudo irrecord -d /dev/lirc0 and copy the generated file in /etc/lirc/lircd.conf.d/your-remotes-name.lircd.conf

remove devinput mv /etc/lirc/lircd.conf.d/devinput.lircd.conf /etc/lirc/lircd.conf.d/devinput.lircd.conf.dist

Add following lines to /etc/modules

lirc_dev
lirc_rpi gpio_out_pin=22

https://indibit.de/raspberry-pi-mit-lirc-infrarot-befehle-senden-irsend/