summaryrefslogtreecommitdiffstats
path: root/modules/zeit
diff options
context:
space:
mode:
authortv <tv@also>2010-04-26 16:34:51 +0200
committertv <tv@also>2010-04-26 16:34:51 +0200
commit3bf6c7a90c6d9141d2a5701203ba2fabe41a5c68 (patch)
tree4d70b0e10f2b3cd782c8bc47710e2bab2e680859 /modules/zeit
parentdb8d3910efdaf735fa51f012fb48b52e23f25c4c (diff)
Added modules: espeak lang msg play wall zeit
Diffstat (limited to 'modules/zeit')
-rwxr-xr-xmodules/zeit15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/zeit b/modules/zeit
new file mode 100755
index 00000000..0b0537d3
--- /dev/null
+++ b/modules/zeit
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+case "$1" in
+ (--help)
+ echo "say current time" ;;
+ (*)
+ exec >>$NOISE_linefeed
+ echo /set pitch 10
+ case "$lang" in
+ (de|'') date +'"Es ist %k Uhr %M."' >$NOISE_linefeed ;;
+ (en|*-en) date +'"It is %k o clock and %M minutes"' >$NOISE_linefeed ;;
+ (*) echo "Error: unsupported lang = $lang" >&2
+ esac
+ echo /set pitch ${noise_pitch-100}
+esac 2>&1