notification.sh: Accept notification content from STDIN

This commit is contained in:
Malte Bublitz 2023-10-29 21:43:42 +01:00
parent 3e09ce6589
commit e5bf85eed9
Signed by: malte70
GPG key ID: 605DA5C729F9C184

View file

@ -3,11 +3,13 @@
source "$(dirname $0)/.env" source "$(dirname $0)/.env"
#FIFO=/tmp/mapid #LINE1='Backup finished!'
LINE1='Backup finished!' #LINE2=''
LINE2='' [ -t /dev/stdin ] && printf "Line 1> "; read LINE1
[ -t /dev/stdin ] && printf "Line 2> "; read LINE2
LED_BLINK=".5s" LED_BLINK=".5s"
DISPLAY_DURATION="4s" #DISPLAY_DURATION="4s"
DISPLAY_DURATION="10s"
if [[ ! -e $FIFO ]]; then if [[ ! -e $FIFO ]]; then