Flask server for displaying a quick development HUD (built specifically for use with FRC1721's code environment.
pipenv shell
flask run --debug
Deployment is handled with docker.
# Example Docker Compose File
services:
project_hud:
image: ghcr.io/frc-1721/project_hud-bot:main
environment:
TZ: America/New_York
GITHUB_TOKEN: YOUR_TOKEN
GITHUB_REPOS: YOUR,REPOS
USERNAME_MAP: username:realname,
#!/bin/bash
unclutter -idle 0.1 -grab -root &
while :
do
until curl --output /dev/null --silent --head --fail "http://10.17.21.81:5000"; do
printf '.'
sleep 5
done
xrandr --auto
chromium \
--no-first-run \
--start-maximized \
--disable \
--disable-translate \
--disable-infobars \
--disable-suggestions-service \
--disable-save-password-bubble \
--disable-session-crashed-bubble \
--incognito \
--kiosk "http://10.17.21.81:5000"
sleep 5
done &