joeferner / unisonht

Unified home theatre control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development

Raspberry Pi

  1. Write the latest "Raspberry Pi OS Lite" to an SD Card (enable SSH, SSH key authentication, and note the hostname)

  2. Start the Raspberry Pi, open a command prompt and ping <hostname>.local

  3. Open a terminal

    ssh <username>@<host>.local
    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/unisonht.git
    ./unisonht/scripts/raspberry-pi-setup.sh
    
  4. Install "Remote Development" extension pack for VSCode.

  5. Connect VSCode via ssh (Ctrl+Shift+P -> Remote-SSH: Connect to Host...) <username>@<host>.local

Development

RUST_BACKTRACE=1 RUST_LOG=debug cargo run

IR Remote Control

ir-keytable # find gpio_ir_recv and note the rcX and use it in the next command
ir-keytable -s rc1 -t -c -p all

About

Unified home theatre control

License:MIT License


Languages

Language:Rust 91.6%Language:Shell 8.4%