Add emergency test, announce time and weather

This commit is contained in:
Dejvino
2020-12-13 23:15:26 +01:00
commit 74c1f77349
8 changed files with 121 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
source pa-lib
WFILE=/tmp/weather
LOCATION="BRQ"
info "Fetching weather report for $LOCATION."
weather -q -m $LOCATION > $WFILE
pa-preheat
pa-announcement
pa-say "Here is the latest weather report:"
cat $WFILE
pa-say -f "$WFILE" -l 80
pa-say "Have a great day!"
pa-announcement-quick
pa-shutdown