Add basic sct 'night time' wrapper

master
Hektor Misplon 2020-12-10 18:37:27 +01:00
parent f503c0ee72
commit 2f8df9de1e
1 changed files with 14 additions and 0 deletions

14
.bin/dusk Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
max_temperature=6500
min_temperature=4500
temperature=$max_temperature
step_size=100
if [ ! -e "/usr/bin/sct" ]; then echo "sct not found"; exit 1; fi
until [ $temperature -eq $min_temperature ]; do
temperature=$((${temperature}-${step_size}))
sct "$temperature"
sleep 0.5
done