diff --git a/bin/emergency-test b/bin/emergency-test index e443d2b..6f3199b 100755 --- a/bin/emergency-test +++ b/bin/emergency-test @@ -12,12 +12,22 @@ pa-say "Test of emergency warning system will begin." sleep 1 emergency-light on -pa-volume-loud -pa-say "This is only a test. In the event of an emergency, this emergency warning light would be used to declare an emergency." -pa-say "This is only a test." +pa-alarm-start +sleep 5 +pa-alarm-stop sleep 1 +#pa-volume-loud +pa-say "This is only a test. In the event of an emergency, this emergency warning light along with the sound alarm would be used to declare an emergency." + +sleep 1 + +pa-alarm-start +sleep 4 +pa-say "This is only a test." +sleep 4 +pa-alarm-stop emergency-light off pa-volume-normal diff --git a/bin/pa-lib b/bin/pa-lib index 4cf622c..6d43d8e 100644 --- a/bin/pa-lib +++ b/bin/pa-lib @@ -20,14 +20,17 @@ function pa-volume() { } function pa-volume-normal() { + info "Volume set to Normal" pa-volume 15 } function pa-volume-loud() { + info "Volume set to HIGH!" pa-volume 25 } function pa-volume-quiet() { + info "Volume set to low" pa-volume 8 } @@ -61,6 +64,16 @@ function pa-announcement-quickest() { play $SOUNDS/announcement_4-tone_up_quickest.ogg } +function pa-alarm-start() { + info "Alarm started" + play -loop 0 $SOUNDS/alarm_simple.ogg & +} + +function pa-alarm-stop() { + info "Alarm stopped" + killall $PLAYER +} + function pa-say() { info "Say: $@" $SPEAK "$@"