Skip to content

A live bird collage card for your Home Assistant dashboard.

manuall date and time tool for no-network installations

Patrick McGuireacfea589f211
diff --git a/scripts/set_date_and_time.sh b/scripts/set_date_and_time.sh
new file mode 100755
index 00000000..394e3df4
--- /dev/null
+++ b/scripts/set_date_and_time.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env -S sudo -E bash
+# Setting date and time manually for non-network attached installatoins
+most_recent="$(date +"%F %T" | tr '-' '/')"
+new_time=$(whiptail --inputbox "Please set the correct time by changing these values. (24h clock format)" 20 60 "$most_recent" 3>&1 1>&2 2>&3)
+date -s "$new_time"