[App_rpt-users] having localplay say date
Bryan D. Boyle
bdboyle at bdboyle.com
Mon Oct 28 16:51:42 UTC 2013
-create 7 files: sun.gsm, mon.gsm, etc by cat'ing the necessary words in the sounds library into each file.
-at midnight, overwrite a file named 'dow.gsm' with the new day's file (rm -f dow.gsm; cp mon.gsm dow.gsm) through a crontab entries.
-write a shell script that is called at the top of the hour that localplays, first, your dow.gsm and then calls the time announcement.using the asterisk -rx "rpt fun nodenum (whatever is your dtmf sequence)" command.
Should take about a half hour if you are good with shell scripting. which, if you are running an asterisk system on centos and want to actually DO something with it besides just control radios, you should consider exploring...if you need help, there are plenty of bash shell books out there; the best is from the O'Reilly selection.
I've found that it's better and more reliable to leave asterisk running and genericize what it does, and change the os-located files such as this when conditions change. bonus points are gained by being able to debug what you're doing without having to constantly burp the repeater controller while smoothing out the underlying script coding. Use the os to do what it was designed to do and asterisk what it was designed to do.
--
Bryan
Sent from my iPhone 5...small
keyboard, big fingers...please
forgive misspellings...
On Oct 28, 2013, at 11:33, Geoff <ars.w5omr at gmail.com> wrote:
> Is there a 'dow' (day of week) setting that would allow Allison, in conjunction with the time, to say what Day of the week it is?
>
> I've edited chrontab to have an hourly chime that spits out the local time.
>
> Mondays are hard... I need help ;-)
>
> Ultimately, I'd like to be able to hear;
> Today is Monday, October 28. Good morning, the time is 11 o'clock, AM.
>
> If there were a speech engine that could take text and convert it to speech, then I suppose a string with the variables would be generated, but that's not -really- the direction I wanted to do.
>
> Ideas?
>
> -Geoff/W5OMR
> 29655
>
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
More information about the App_rpt-users
mailing list