rotoflex: you mind to share this script ? (and I would not be surprised if you heard about plum village, but nevermind...)
Sorry for the late reply!
I put the sound files & script in directory /home/user/ClockChimes, then scheduled the script in Alarmed as the Cron String: 0,15,30,45****
It strikes the hours at the top of the hour, & at the quarters plays the "ting tang" clock chime.
Code:
#! /bin/bash
checkhour=`date +%H`
checkmin=`date +%M`
#echo $checkhour:$checkmin
# section below to exit script if phone is in Silent profile
if [ `cat /home/user/.profiled/current` == "silent" ]; then
exit 1
fi
# section below is main chimes operation script
if [ $checkmin -eq 00 ]; then
if [ $checkhour -eq 1 ]; then
play-sound /home/user/ClockChimes/tangstrikechord01-45db.wav
fi
if [ $checkhour -eq 2 ]; then
play-sound /home/user/ClockChimes/tangstrikechord02-45db.wav
fi
if [ $checkhour -eq 3 ]; then
play-sound /home/user/ClockChimes/tangstrikechord03-45db.wav
fi
if [ $checkhour -eq 4 ]; then
play-sound /home/user/ClockChimes/tangstrikechord04-45db.wav
fi
if [ $checkhour -eq 5 ]; then
play-sound /home/user/ClockChimes/tangstrikechord05-45db.wav
fi
if [ $checkhour -eq 6 ]; then
play-sound /home/user/ClockChimes/tangstrikechord06-45db.wav
fi
if [ $checkhour -eq 7 ]; then
play-sound /home/user/ClockChimes/tangstrikechord07-45db.wav
fi
if [ $checkhour -eq 8 ]; then
play-sound /home/user/ClockChimes/tangstrikechord08-45db.wav
fi
if [ $checkhour -eq 9 ]; then
play-sound /home/user/ClockChimes/tangstrikechord09-45db.wav
fi
if [ $checkhour -eq 10 ]; then
play-sound /home/user/ClockChimes/tangstrikechord10-45db.wav
fi
if [ $checkhour -eq 11 ]; then
play-sound /home/user/ClockChimes/tangstrikechord11-45db.wav
fi
if [ $checkhour -eq 12 ]; then
play-sound /home/user/ClockChimes/tingtanghour12-45db.wav
fi
if [ $checkhour -eq 13 ]; then
play-sound /home/user/ClockChimes/tingtangHour01-45db.wav
fi
if [ $checkhour -eq 14 ]; then
play-sound /home/user/ClockChimes/tingtangHour02-45db.wav
fi
if [ $checkhour -eq 15 ]; then
play-sound /home/user/ClockChimes/tingtangHour03-45db.wav
fi
if [ $checkhour -eq 16 ]; then
play-sound /home/user/ClockChimes/tingtangHour04-45db.wav
fi
if [ $checkhour -eq 17 ]; then
play-sound /home/user/ClockChimes/tingtangHour05-45db.wav
fi
if [ $checkhour -eq 18 ]; then
play-sound /home/user/ClockChimes/tingtangHour06-45db.wav
fi
if [ $checkhour -eq 19 ]; then
play-sound /home/user/ClockChimes/tingtangHour07-45db.wav
fi
if [ $checkhour -eq 20 ]; then
play-sound /home/user/ClockChimes/tingtangHour08-45db.wav
fi
if [ $checkhour -eq 21 ]; then
play-sound /home/user/ClockChimes/tingtangHour09-45db.wav
fi
if [ $checkhour -eq 22 ]; then
play-sound /home/user/ClockChimes/tingtangHour10-45db.wav
fi
if [ $checkhour -eq 23 ]; then
play-sound /home/user/ClockChimes/tingtangHour11-45db.wav
fi
if [ $checkhour -eq 0 ]; then
play-sound /home/user/ClockChimes/tangstrikechord12-45db.wav
fi
fi
if [ $checkmin -eq 15 ]; then
play-sound /home/user/ClockChimes/tingtang1Q-45db.wav
fi
if [ $checkmin -eq 30 ]; then
play-sound /home/user/ClockChimes/tingtang2Q-45db.wav
fi
if [ $checkmin -eq 45 ]; then
play-sound /home/user/ClockChimes/tingtang3Q-45db.wav
fi
The sound files were recorded very, very low so they wouldn't blow out the speakers when called by play-sound: from the names I gave them, it looks like they are 45 dB down!
Originally Posted by tfj
Has Nokia specified a maximum volume (by some standard) for the speakers?
I put the sound files & script in directory /home/user/ClockChimes, then scheduled the script in Alarmed as the Cron String: 0,15,30,45****
It strikes the hours at the top of the hour, & at the quarters plays the "ting tang" clock chime.
Last edited by rotoflex; 2013-10-03 at 09:29.