summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-07-24 21:29:31 +0200
committerErich Eckner <git@eckner.net>2023-07-24 21:29:31 +0200
commit1f74ba32ad2ee59d6e37a1e57661a41337da8312 (patch)
tree4ddbe81df6135d7737e805069200cf2752cc31db
parent591775caaae7a2670aaa87e53f540f16ec51397a (diff)
downloadBrotbacken-1f74ba32ad2ee59d6e37a1e57661a41337da8312.tar.xz
nun mit Vorhersage, wann der nächste Schritt dran ist
-rwxr-xr-xBrotbacken.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Brotbacken.sh b/Brotbacken.sh
index e147bde..69becfb 100755
--- a/Brotbacken.sh
+++ b/Brotbacken.sh
@@ -44,6 +44,11 @@ fi \
printf '%sm %s\n' "${Zeit}" "${Schrittdatei}"
done \
| while read -r Zeit Schrittdatei; do
+ date -d@$(
+ printf '%s + 60*%s + 0.5\n' "$(date +%s)" "${Zeit%m}" \
+ | bc -l \
+ | cut -d. -f1
+ )
sleep "${Zeit}"
play "${Schrittdatei}"
done