https://github.com/joeferner/raspberry-pi-ir-hat
Raspberry PI IR Tx/Rx
https://github.com/joeferner/raspberry-pi-ir-hat
Last synced: 6 months ago
JSON representation
Raspberry PI IR Tx/Rx
- Host: GitHub
- URL: https://github.com/joeferner/raspberry-pi-ir-hat
- Owner: joeferner
- Created: 2020-09-11T14:48:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T22:22:38.000Z (over 1 year ago)
- Last Synced: 2025-02-08T02:25:49.897Z (over 1 year ago)
- Language: Rust
- Size: 48.3 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Environment variables
- `LOG_LEVEL`
- `MQTT_ID` (default: `pi-ir`)
- `MQTT_HOST`
- `MQTT_PORT` (default: 1883)
- `MQTT_TOPIC_PREFIX` (default: `home/ir`)
# MQTT
- `${MQTT_TOPIC_PREFIX}/receive/raw` - raw IR data (see LircEvent)
- `${MQTT_TOPIC_PREFIX}/receive/decode` - decoded IR data (see DecodeResult)
# Setup Raspberry Pi
1. Install rpi-imager locally
1. Edit Settings
- hostname: ir
- set username/password
- (optional) configure wireless lan
- set locale settings
- enable ssh
1. Start the Raspberry Pi, open a command prompt and `ping ir.local`
1. Open a terminal
ssh @ir.local
sudo apt update
sudo apt -y install git
# copy id_rsa from host computer
chmod 600 ~/.ssh/id_rsa
ssh-keygen -p -f ~/.ssh/id_rsa # remove password
git clone git@github.com:joeferner/raspberry-pi-ir-hat.git
./raspberry-pi-ir-hat/scripts/raspberry-pi-setup.sh
# Raspberry Pi development
1. Install "Remote Development" extension pack for VSCode.
1. Connect VSCode via ssh (Ctrl+Shift+P -> Remote-SSH: Connect to Host...) `@ir.local`
1. Stop service `sudo systemctl stop raspberry-pi-ir-hat-network-bridge`
1. Run `RUST_BACKTRACE=1 LOG_LEVEL=debug cargo run`