Add local APRS server

General support for the Pi-Star System
Post Reply
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Add local APRS server

Post by RC3C »

Hi Guys.

I just added my local host of APRSC server into APRSHosts.txt and put it to /root folder. Then I did 'pistar-update'. And I can't see the added host in the menu on 'Configuration' page of PI-Star when I trying to change APRS server. What I am doing wrong? Any thoughts?
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
W0CHP
Posts: 19
Joined: Mon Oct 12, 2020 2:33 pm

Re: Add local APRS server

Post by W0CHP »

RC3C wrote: Fri Apr 01, 2022 8:04 pm I just added my local host of APRSC server into APRSHosts.txt and put it to /root folder. Then I did 'pistar-update'. And I can't see the added host in the menu on 'Configuration' page of PI-Star when I trying to change APRS server. What I am doing wrong? Any thoughts?
You're not doing anything wrong. This (aprs host override) functionality is not included in the hostfile update script.

You need to create your own override, e.g.:

Code: Select all

#!/usr/bin/env bash

APRSHOSTS=/usr/local/etc/APRSHosts.txt
if [ -f "/root/APRSHosts.txt" ]; then
    cat /root/APRSHosts.txt >> ${APRSHOSTS}
fi
I would recommend against modifying the existing hostfile updater, since it will be overwritten when updates occur.
Instead, place the code into a custom bash script and call it from a cron job.
M1DNS
Pi-Star Team
Posts: 1388
Joined: Thu Apr 05, 2018 5:30 am

Re: Add local APRS server

Post by M1DNS »

The host file has intentionally been kept slimmed down to a minimum of listed hosts.

Sent via smoke signals from my SM-G935F M1DNS (Admin)

Andrew M1DNS.
Pi-star Admin Team.
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Re: Add local APRS server

Post by RC3C »

W0CHP wrote: Sat Apr 02, 2022 1:04 pm
RC3C wrote: Fri Apr 01, 2022 8:04 pm I just added my local host of APRSC server into APRSHosts.txt and put it to /root folder. Then I did 'pistar-update'. And I can't see the added host in the menu on 'Configuration' page of PI-Star when I trying to change APRS server. What I am doing wrong? Any thoughts?
You're not doing anything wrong. This (aprs host override) functionality is not included in the hostfile update script.

You need to create your own override, e.g.:

Code: Select all

#!/usr/bin/env bash

APRSHOSTS=/usr/local/etc/APRSHosts.txt
if [ -f "/root/APRSHosts.txt" ]; then
    cat /root/APRSHosts.txt >> ${APRSHOSTS}
fi
I would recommend against modifying the existing hostfile updater, since it will be overwritten when updates occur.
Instead, place the code into a custom bash script and call it from a cron job.
Oh, much appreciated on info above. I will do it on crontab event.
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
Post Reply