Jump to content
  • 0

Scheduler rpt.conf / crontab


FrostyFruits

Question

I found out how to play a voice id for my repeater. Is there a way to have a sound file play at a certain time every day? I tried doing it a few different way in rpt.conf under Scheduler at the bottom but can't get it to work. I know my sound file works because it'll work when used as my voice id. 

Thanks for any help!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

I found that if I type

sudo asterisk -rx "rpt playback 24219 /home/repeater/announcement"

I can get my announcement to play over my repeater. I went into my crontab -e using sudo to set it up to play at 5:00 everyday.

00 17 * * *  asterisk -rx "rpt playback 24219 /home/repeater/announcement"

Looking in my log file it shows it played but nothing over the repeater.

May 12 17:00:01 node-24219 CRON[20983]: (root) CMD (asterisk -rx "rpt playback 24219 /home/repeater/announcement")

What am I missing or am I not doing it right?

 

Link to comment
Share on other sites

  • 0

I have a new scheduling issue. With the new hamvoip image, it come with *81 to give time and weather. I'd like it to run at 15 past the hour every 2 hours. From what I see online I have it set correctly but it still runs every hour. Is there a different way to do it?

15 */2 * * *

I even tried

15 6,8,10,12,14,16,18,20 * * *

That didn't work at all.  I tried it under scheduler in rpt.conf and crontrab -e with the same issues.

Sorry for being annoying

Link to comment
Share on other sites

  • 0

Hmmm.  Either of those entries *should* work.  I'm not sure if I've ever used the / for hour, but I definitely have for minute, and I definitely have listed hour numbers like that.

If it were me, the first thing I would look for is another entry that is already doing the same thing every hour.

When you said that the second one didn't work, what do you mean?  Error saving the crontab file, or just no time/weather?

Link to comment
Share on other sites

  • 0
10 hours ago, wrci350 said:

Hmmm.  Either of those entries *should* work.  I'm not sure if I've ever used the / for hour, but I definitely have for minute, and I definitely have listed hour numbers like that.

If it were me, the first thing I would look for is another entry that is already doing the same thing every hour.

When you said that the second one didn't work, what do you mean?  Error saving the crontab file, or just no time/weather?

There was no time/weather. I have another set up to run rc.updatenodelist as */5 * * * * and that runs every 5 mins. I guess I could just add an entry for every time I want it to play. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Guidelines.