Pi-star Cron jobs in V4.1.2

Cron jobs in V4.1.2 are working well now that Andy has added all the scripts necessary to connect in all the modes.

The simplest d-star example would be to go to the telnet console and type in:
sudo pistar-link ref030_c 
to unlink type: sudo pistar-link unlink
for YSF it's: sudo pistar-ysflink ysf21080
for BM it's: sudo pistar-bmapi addtg 3100 0
for TGIF it's: sudo pistar-tgifapi link 31665 0

Type in the script name alone to see what all the options are.
Other modes are available such as NXDN and P25.

Automatically connecting to weekly nets makes these command line options useful. First backup your pistar config and if possible your SD card just in case.

Next go to the pistar dashboard -> Configuration -> Expert -> System Cron What you will see is the existing system wide cron job. 

After the last line which currently ends with "/etc/cron.monthly" add and edit the following:




CODE: SELECT ALL

# Connect to BM 3100 default timeslot at 16:15 then delete at 16:20 on Friday the 5 day of the week
# The hash is a comment within the file.  Command line start with: MIN HOUR DOM MON DOW USER COMMAND
15 16 * * 5   root  pistar-bmapi    addtg 3100 0
20 16 * * 5   root  pistar-bmapi    deltg 3100 0 



Followed by a CR then press -> Apply Changes Go back to the admin dashboard to watch and listen.

Next is another example for auto starting a Net at 10pm eastern local time


CODE: SELECT ALL

#Nebraska D-Star Net on Thurs.
00 22 * * 4   root pistar-link        ref073_c 
59 22 * * 4   root pistar-link        unlink

Third example:

CODE: SELECT ALL

#Test America link on YSF Sunday night 8pm for 15 min
00 20 * * 0   root pistar-ysflink     ysf21080  
15 20 * * 0   root pistar-ysflink     unlink
For duplex hotspots BM and TGIF the timeslot will be 1 or 2 not 0 and the connections will be static.


https://forum.pistar.uk/viewtopic.php?f=38&t=2878

No comments:

Post a Comment

.
PiStar Users Discussion Group
Pi-Star Users Support Group
https://groups.io/g/PiStar

BrandMeister Network Users Discussion Group
https://groups.io/g/BrandMeister
.

Note: only a member of this blog may post a comment.