docs / launcher

Deployment (the Pi)

Production home for the launcher server: a Raspberry Pi running alvidaa.service (systemd, Restart=always), listening on a fixed port (8770 here β€” 8765 was taken by another service; any port works, but note the installed TV app points at a specific one).

rsync -a --exclude venv --exclude .git ~/repos/alvidaa/ pi:alvidaa/
ssh pi 'cd ~/alvidaa/server && python3 -m venv venv && ./venv/bin/pip install paho-mqtt'
# unit: /etc/systemd/system/alvidaa.service -> venv/bin/python vidaa_server.py <tv-ip> 8770

Rules

Watching it work

The server logs client IP + Host header per request β€” the journal is the fastest way to confirm the TV is asking the right host after a cutover:

ssh pi 'journalctl -u alvidaa -f'