PROJECT_STATUS: ACTIVE // DISCORD-CONTROLLED PI KIOSK
A Discord-controlled dashboard that runs on a Raspberry Pi with a 3.5" screen. The Pi screen acts as a kiosk display; a Discord bot listens for commands and switches the view in real time. The backend is a single Flask app that serves the web UI, exposes JSON APIs, and runs the Discord bot in a background thread.
All secrets (API keys, tokens, URLs) are passed via environment variables in the deployment yaml — the code itself contains no credentials.
I used Kilo Code to vibe-code the entire project. The key lesson was decomposition: breaking work into small, focused tasks let Kilo run them flawlessly for free. Larger, monolithic tasks caused issues, so keeping each step scoped and clear was essential.
Type !? or !menu in Discord for the live command list. Key views:
!arr — upcoming airings
!new [days] — grabbed in last N days
!next [days] — upcoming window
!news [query] — news feed
!weather — local forecast
!system — TrueNAS CPU/RAM/net
!hack <target> — terminal view
!rain [speed] — digital rain
!dvd — DVD screensaver
!stars — galaxy fly-through
!image <query> [n] — Pixabay gallery
!8ball / !8 — shake + purple magic overlay, answer shown on screen then posted to Discord
current_view, query params, etc.)
src to /{view} and handles overlays (e.g. 8-ball shake/magic)
The main Flask + Discord bot application and the HTML templates it serves. Secrets are read from environment variables at runtime.
Click to download individual view templates (served from templates/ by Flask):
Runs as a container on the Pi (port 8090). All configuration via env vars in docker-compose. Private values are redacted below.
DISCORD_BOT_TOKEN, SONARR_URL, SONARR_API_KEY (and others as needed)
PIXABAY_API_KEY, TRUENAS_URL, TRUENAS_API_KEY, API_NINJAS_KEY, WEATHER_LATITUDE/LONGITUDE