announcement-box/bin/announce-weather

25 lines
317 B
Plaintext
Raw Permalink Normal View History

#!/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