add start script

This commit is contained in:
2022-07-17 17:16:31 +02:00
parent d76c628394
commit 65bb184c7c
2 changed files with 49 additions and 0 deletions

41
start_app.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/bash
URL_APP="http://127.0.0.1:5000"
usage(){
cat << EOF
Usage: $0 [-h]
Schäbig isch gäbig.
EOF
}
d_schlange_wuerge(){
pipenv install
pipenv run python main.py &
}
meh_energieverbruche(){
DISPLAY=:0 xset s off
DISPLAY=:0 xset s noblank
DISPLAY=:0 xset -dpms
}
website_ufmache(){
chromium-browser --kiosk --disable-translate --incognito $SRF_LINK &
}
case $1 in
-h|help)
usage
exit 0
;;
*)
d_schlange_wuerge
meh_energieverbruche
website_ufmache
exit 0
;;
esac