AB5ID
Member
I would like to change my OP25 whitelist based on the time of day.
I'm running a single instance of OP25 in terminal mode launched with the command line:
In the evenings, I change my whitelist to add more talkgroups and then stop/restart OP25 in the CLI .
What would be a good way to automate this? How can I change my whitelist and restart OP25 automatically?
For example, at a predefined time (say 9:00 p.m.), I would like to switch to my bigger whitelist for the evening hours and then return to my original whitelist again in the morning on a daily basis. My whitelist file name is
I guess my question is more of a Linux scripting how-to question than an OP25 question. Any help would be greatly appreciated!
I'm running a single instance of OP25 in terminal mode launched with the command line:
Code:
./rx.py --args 'rtl' -N 'LNA:47' -S 1000000 -o 25000 -T trunk.tsv -V -w -2 -U 2>stderr.2 --crypt-behavior 2
In the evenings, I change my whitelist to add more talkgroups and then stop/restart OP25 in the CLI .
What would be a good way to automate this? How can I change my whitelist and restart OP25 automatically?
For example, at a predefined time (say 9:00 p.m.), I would like to switch to my bigger whitelist for the evening hours and then return to my original whitelist again in the morning on a daily basis. My whitelist file name is
Code:
op25/op25/gr-op25_repeater/apps/white.lst
I guess my question is more of a Linux scripting how-to question than an OP25 question. Any help would be greatly appreciated!