Add accelerated sky preview

This commit is contained in:
vini 2026-07-19 14:22:19 -03:00
parent c9aca2ed50
commit b659ae09ab
2 changed files with 57 additions and 2 deletions

11
toggle-sky-timelapse.sh Executable file
View 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