Changes to autoupdate Russian callsigns by pi-star

Help with DMR issues
Post Reply
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Changes to autoupdate Russian callsigns by pi-star

Post by RC3C »

LIFE-HACK:

As everyone knows, Pi-star automatically updates the Callsign database by downloading whole list from the British server (http://www.pistar.uk/downloads/DMRIds.dat). But this database often lacks many Russian callsigns. All the more new.

By address http://registry.dstar.su/dmr/DMRIds2.php there is a more adequate database of Russian callsigns, which are updated for Russia and Europe in real time, and for the States once a day.

Changing the auto-update of the PI-star Callsign database from the British site to the base with dstar.su
In the Pi-star file /usr/local/sbin/HostFilesUpdate.sh change the following line:

Code: Select all

curl --fail -o ${DMRIDFILE} -s http://www.pistar.uk/downloads/DMRIds.dat
to

Code: Select all

wget -O ${DMRIDFILE} http://registry.dstar.su/dmr/DMRIds2.php
in fact, in file /usr/local/sbin/HostFilesUpdate.sh I have these change like this:
Image

In the file name DMRIds2.php it is important to specify the correct case of all letters. The letter "I" is in uppercase. If you write "i" by mistake, the link will not work.

By default, auto-updates are occured after 3:25 of Your local time. If you disable your hotspot for the night, and therefore you do not receive an updated Callsign database, you can change the time when the database is updated:

To change the update time, change the line in the /etc/crontab file-

Code: Select all

25 3 * * * root mount-o remount, rw / & & cd / && run-parts --report /etc/cron. daily
25 is minutes. 3 is the clock = 3:25 am your local time

If you want to receive callsign updates, for example, at 17:30 (5:30pm), the line should look like this:

Code: Select all

30 17 * * * root mount -o remount,rw / && cd / && run-parts --report /etc/cron.daily
When you update the Pi-star version (from 3 to 4), you will have to do everything described above again.

This life hack invented, implemented and tested by UN7ZB, UA6LQP, UA0LMC and R2ARZ and me, of course.

P.S. Copy russian Instruction is here https://www.dstar.su/forum/viewtopic.php?f=59&t=1218
Last edited by RC3C on Sat Dec 05, 2020 12:11 am, edited 1 time in total.
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
f1rmb
Posts: 31
Joined: Thu Feb 21, 2019 12:12 pm

Re: Changes to autoupdate Russian callsigns by pi-star

Post by f1rmb »

Hi,

A better way is to merge both sources:

Code: Select all

## Get DMRIds from two different sources, then merge them
curl --fail -o /tmp/DMRIds_1.dat -s http://www.pistar.uk/downloads/DMRIds.dat
curl --fail -o /tmp/DMRIds_2.dat -s http://registry.dstar.su/dmr/DMRIds2.php
cat /tmp/DMRIds_1.dat /tmp/DMRIds_2.dat | grep -v ^# | awk '$1 > 9999 { print $0 }' | sort -un -k1n -o ${DMRIDFILE}
rm -f /tmp/DMRIds_1.dat /tmp/DMRIds_2.dat
Cheers.
---
Daniel
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Re: Changes to autoupdate Russian callsigns by pi-star

Post by RC3C »

f1rmb wrote: Fri Dec 04, 2020 6:35 am Hi,

A better way is to merge both sources:

Code: Select all

## Get DMRIds from two different sources, then merge them
curl --fail -o /tmp/DMRIds_1.dat -s http://www.pistar.uk/downloads/DMRIds.dat
curl --fail -o /tmp/DMRIds_2.dat -s http://registry.dstar.su/dmr/DMRIds2.php
cat /tmp/DMRIds_1.dat /tmp/DMRIds_2.dat | grep -v ^# | awk '$1 > 9999 { print $0 }' | sort -un -k1n -o ${DMRIDFILE}
rm -f /tmp/DMRIds_1.dat /tmp/DMRIds_2.dat
Cheers.
---
Daniel
Thank you for other method to get automatically updated complete callsign database on pi-star.

IMO it is not needed to merge both files. I just using what I described above and it is enough to have cause of this
RC3C wrote:...database of Russian callsigns, which are updated for Russia and Europe in real time, and for the States once a day.
Last edited by RC3C on Fri Dec 04, 2020 9:57 am, edited 1 time in total.
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
f1rmb
Posts: 31
Joined: Thu Feb 21, 2019 12:12 pm

Re: Changes to autoupdate Russian callsigns by pi-star

Post by f1rmb »

RC3C wrote: Fri Dec 04, 2020 8:03 am
IMO it is not needed to merge both files. I just using what I described in 1st posted message cause of this
RC3C wrote:...database of Russian callsigns, which are updated for Russia and Europe in real time, and for the States once a day.

The one day delay is the key point here ;-)

Merging both get rid of this, and maintains a complete list.
Also, some entries are extraneous is the list from registry.dstar.su, so filtering them out is way better.

But it's just my 2cents.

73
---
Daniel
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Re: Changes to autoupdate Russian callsigns by pi-star

Post by RC3C »

f1rmb wrote: Fri Dec 04, 2020 9:47 am
RC3C wrote: Fri Dec 04, 2020 8:03 am
IMO it is not needed to merge both files. I just using what I described in 1st posted message cause of this
RC3C wrote:...database of Russian callsigns, which are updated for Russia and Europe in real time, and for the States once a day.
The one day delay is the key point here ;-)

Merging both get rid of this, and maintains a complete list.
Also, some entries are extraneous is the list from registry.dstar.su, so filtering them out is way better.

But it's just my 2cents.

73
---
Daniel
Merci, Daniel.
I got your 2 cents of this :D
Appreciated.
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Re: Changes to autoupdate Russian callsigns by pi-star

Post by RC3C »

Daniel,
F1RMB wrote:...filtering them out is way better
Is that your filtering works good on your side?
Have you check it?
I'd like to try this here
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
f1rmb
Posts: 31
Joined: Thu Feb 21, 2019 12:12 pm

Re: Changes to autoupdate Russian callsigns by pi-star

Post by f1rmb »

Hi Anton,
RC3C wrote: Mon Dec 07, 2020 8:18 pm Daniel,
F1RMB wrote:...filtering them out is way better
Is that your filtering works good on your side?
Have you check it?
I'd like to try this here
Yes, it works, it's running on many systems for few days now, without a problem.
The list from www.pistar.uk is 179967 entries right now, the merged list is 182693.

Cheers.
---
Daniel
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Re: Changes to autoupdate Russian callsigns by pi-star

Post by RC3C »

f1rmb wrote: Tue Dec 08, 2020 7:37 am Hi Anton,
RC3C wrote: Mon Dec 07, 2020 8:18 pm Daniel,
F1RMB wrote:...filtering them out is way better
Is that your filtering works good on your side?
Have you check it?
I'd like to try this here
Yes, it works, it's running on many systems for few days now, without a problem.
The list from www.pistar.uk is 179967 entries right now, the merged list is 182693.

Cheers.
---
Daniel
Cool. TNX for confirmation.
👍👍🤝
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
Post Reply