Sfoglia il codice sorgente

a little add-on to do basic route announcement

clementinecomputing 6 anni fa
parent
commit
23cc2f12fa
1 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 14 0
      busunit/scripts/route_announce_minder.sh

+ 14 - 0
busunit/scripts/route_announce_minder.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+
+pfx="stdbuf -i0 -o0 -e0"
+
+amixer cset numid=3 1
+
+$pfx /home/bus/bin/debug_client -m DRIVER_NOTIFY | \
+  $pfx grep -P '|\d+:\d+ ' | \
+  $pfx cut -f2 -d'|' | \
+  $pfx cut -f2- -d' ' | \
+  $pfx tr -d '"' | \
+  espeak --stdout | \
+  aplay
+