Switch projectors on and off at a specified time
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

4 年前
4 年前
4 年前
4 年前
4 年前
4 年前
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ```
  2. sudo apt install git python3-pip lirc
  3. ```
  4. ### Clone this repo
  5. ```
  6. cd /home/pi
  7. git clone https://git.notice.at/redplanet/ir-remote-timer.git
  8. cd ir-remote-timer
  9. ```
  10. ### install pip modules
  11. ```
  12. pip3 install -r requirements.txt
  13. ```
  14. ### add systemd service
  15. ```
  16. sudo cp ir-remote-timer.service /lib/systemd/system/ir-remote-timer.service
  17. sudo systemctl daemon-reload
  18. ```
  19. ### Setting up the infrared
  20. Use `irrecord` to create a lirc Config file. You need an ir receiver for that.
  21. `sudo irrecord -d /dev/lirc0`
  22. and copy the generated file in
  23. `/etc/lirc/lircd.conf.d/your-remotes-name.lircd.conf`
  24. remove devinput
  25. `mv /etc/lirc/lircd.conf.d/devinput.lircd.conf /etc/lirc/lircd.conf.d/devinput.lircd.conf.dist`
  26. Add following lines to `/etc/modules`
  27. ```
  28. lirc_dev
  29. lirc_rpi gpio_out_pin=22
  30. ```
  31. https://indibit.de/raspberry-pi-mit-lirc-infrarot-befehle-senden-irsend/