Time

Hello everyone,

How do I setup my node to say time every hour. I’m using Acid on a neoware ca22. And where should I put it? N5zua sit this up for me a few years ago. So, seems to me, I need to to know the system and play with it.

Thanks,

Larry,

n3vsi

read a msg i sent last night…it’s in there as one of my examples…

···


Bryan

Sent from my iPhone 5…small

keyboard, big fingers…please

forgive misspellings…

On Aug 1, 2013, at 13:24, “larry” n3vsi1@verizon.net wrote:

Hello everyone,

How do I setup my node to say time every hour. I’m using Acid on a neoware ca22. And where should I put it? N5zua sit this up for me a few years ago. So, seems to me, I need to to know the system and play with it.

Thanks,

Larry,

n3vsi


App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

I’ve been wanting to do the same, but didn’t really want the silly
thing screaming the time all night long so, cron to the rescue!
root@w5omr> crontab -e
0 6-22 * * 1-5 /usr/sbin/asterisk -rx “rpt fun 29655 *81”
0 8-22 * * 0,6 /usr/sbin/asterisk -rx “rpt fun 29655 *81”
The first is to chime the hour, starting at 6am, and ending at 10pm,
Mon - Fri.
Weekends, we sleep in… start at 8am, end at 10pm, Saturday and
Sunday.
At least, that’s -one- way of doing it.
I’m sure it was you, Bryan, I have to thank for posting that
commands could be passed to a running session of asterisk. That’s
when the light went off. Cron to the rescue :wink:
This is useful also, if you want to setup times to link to specific
nodes, at a specific time. Figure out the schedule and cron it.
Here’s a good link if some system operators would like to know about
cron
73 = Best Regards,
-Geoff/W5OMR

···

On 08/01/2013 12:38 PM, Bryan D. Boyle
wrote:

    read a msg i sent last night...it's in there as one of my

examples…

Hello everyone,

          How do I setup my node to say

time every hour. I’m using Acid on a neoware ca22. And
where should I put it? N5zua sit this up for me a few
years ago. So, seems to me, I need to to know the system
and play with it.

http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/

Having the availability to use cron is one of the many great things about app_rpt. Here are a couple entries from my crontab. The first plays the time once every 3 hours between 6am and 9pm everyday. The second entry announces our net on Mondays between 6:10am and 7:10pm.

Both cron entries call scripts but the way Geoff did it is perfectly fine, it just a mater of preference. Also note the use of cmd and localplay rather than fun in these scripts. That way if the touch tones ever need to be changed the scripts will still run without modification.

crontab -l

00 6-21/3 * * * /root/bin/2532time.sh

10 6-19 * * 1 /root/bin/racesnettonight.sh

Here are the scripts:

cat /root/bin/2532time.sh

#! /bin/bash

/usr/sbin/asterisk -rx “rpt cmd 2532 status 12 0”

cat /root/bin/racesnettonight.sh

!# /bin/bash

/usr/sbin/asterisk -rx “rpt localplay 2532 racesNet”

···

On 08/01/2013 12:38 PM, Bryan D. Boyle
wrote:

    read a msg i sent last night...it's in there as one of my

examples…

Hello everyone,

          How do I setup my node to say

time every hour. I’m using Acid on a neoware ca22. And
where should I put it? N5zua sit this up for me a few
years ago. So, seems to me, I need to to know the system
and play with it.

http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/

Absolutely right, Tim, and, IMHO, what sets a* apart from the
iron-monger controllers (no insult implied to those wedded to
them...just a fact) but is also what does tend to scare non-bit-bangers
away from it. It's almost TOO flexible.

<sermon>

being able to chronologically (hence 'cron') schedule events on an OS
level, pass values to running processes, and write code in whatever
flavor (sh? bash? cshell? PERL? awk? etc) to do things apart and in
support of the core a* application makes this thing so powerful.

For instance, and not to hijack the thread...I grab text weather via
wget scripts, parse the text with perl, run through cepstral, and call
it via DTMF codes (or, in the case of new alerts, play immediately)
24x7. Imagine my surprise a couple years ago, driving cross country,
and hearing the same thing (weather alert...) in pretty much the same
order and obviously derived from my initial attempts, on a machine half
way between here and KC? Neat stuff.

Other scripts download Newsline, break into 3 minute chunks, and store
for playback with proper IDs at top and bottom. Still working on
perfecting it.

Look at Tim's Allmon. Simple web app, powerful implications.

Others reset the OS once a week, and refresh, from the cronjob, the
links, and reset my link config during nets that I don't participate in
but are run on other portions of the net.

I have some authorization-required and encrypted and protected web pages
that take that to the next level and allow me to re-config my net
connections, join nodes, reset the system from my mobile phone.

And, it's all done through imagination, scripting, passing values to
asterisk, resetting conf files, etc.

Only IS limited by your imagination; remember, you're not running an
embedded application with no accessible OS underneath it. You're
running an application on top of a flexible and powerful operating
system with a long history of being able to do what it needs to do. So,
just jump in and try it.

</sermon>

BB

···

On 8/7/2013 12:50 PM, Tim Sawyer wrote:

Having the availability to use cron is one of the many great things about app_rpt.

On 8/7/2013 12:50 PM, Tim Sawyer wrote:

Having the availability to use cron is one of the many great things
about app_rpt.

Drop the file name extension. It’s documented here http://ohnosec.org/drupal/node/142

···

On 08/07/2013 11:50 AM, Tim Sawyer
wrote:

    Both cron entries call scripts but the way Geoff did it is

perfectly fine, it just a mater of preference. Also note the use
of cmd and localplay rather than fun in these scripts. That way
if the touch tones ever need to be changed the scripts will
still run without modification.

Yes, that should work and it does for me. Maybe your file format is bad. Also be sure you have updated source. Also, please post and reply to the app_rpt list so that other may benefit from, or partake in the discussion.

Huntington*CLI> rpt localplay 2523 wd6awprepeater

– <Zap/pseudo-996666204> Playing ‘wd6awprepeater’ (language ‘en’)

– Hungup ‘Zap/pseudo-996666204’

Huntington*CLI>

···


Tim
:wq

On Aug 8, 2013, at 10:13 AM, Geoff w5omr@att.net wrote:

that being said, if all sounds are in /var/lib/asterisk/sounds/ then, (logically thinking) shouldn’t

rpt localplay [node_number] filename

work?