This commit is contained in:
albert 2024-06-18 12:54:17 +09:00
parent 8d8fc06801
commit 73b3ffc1be
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -54,9 +54,11 @@
systemctl --user start get-theme-times.service
fi
echo "Getting dates:"
SUNRISE=$(date -d "$(cat /tmp/wttr.sunset)" +%s)
sr=$(cat /tmp/wttr.sunrise)
ss=$(cat /tmp/wttr.sunset)
SUNRISE=`date -d $sr +%s`
echo "Sunrise: $SUNRISE"
SUNSET=$(date -d "$(cat /tmp/wttr.sunset)" +%s)
SUNSET=`date -d $ss +%s`
echo "Sunset: $SUNSET"
CURRENT=`date +%s`
echo "Current: $CURRENT"