Add accelerated sky preview
This commit is contained in:
parent
c9aca2ed50
commit
b659ae09ab
2 changed files with 57 additions and 2 deletions
11
toggle-sky-timelapse.sh
Executable file
11
toggle-sky-timelapse.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
STATE_FILE=/tmp/skeledance-sky-timescale
|
||||
|
||||
if [ "$(cat "$STATE_FILE" 2>/dev/null)" = "360" ]; then
|
||||
printf '1\n' > "$STATE_FILE"
|
||||
printf 'Céu em tempo real\n'
|
||||
else
|
||||
printf '360\n' > "$STATE_FILE"
|
||||
printf 'Céu acelerado 360x (1 hora a cada 10 segundos)\n'
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue