Switch projectors on and off at a specified time
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

README.md 988 B

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