42 lines
523 B
Bash
Executable File
42 lines
523 B
Bash
Executable File
#!/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 update
|
|
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 $URL_APP &
|
|
}
|
|
|
|
case $1 in
|
|
-h|help)
|
|
usage
|
|
exit 0
|
|
;;
|
|
|
|
*)
|
|
d_schlange_wuerge
|
|
meh_energieverbruche
|
|
website_ufmache
|
|
exit 0
|
|
;;
|
|
esac
|