Re: IPSC_Bridge & HB_Bridge etc. - ID Database


Steve N4IRS
 

The scripts installed by dvswitch-base do not download from DMR-MARC. There are at least 3 sources of subscriber data and 2 sources of repeater data. We will look at the possibility of a primary and a secondary DL so that we always have the best data. And of course, as soon as we do, it will change.

73, Steve N4IRS

On 06/01/2018 05:12 PM, Jon K1IMD wrote:
Hi Cort,
This is what I have... in a running copy...
# ID ALIAS CREATION
# Download
def build_aliases(_config, _logger):
#   if _config['ALIASES']['TRY_DOWNLOAD'] == True: # Disabled because DMR-MARC Servers NG
    if _config['ALIASES']['TRY_DOWNLOAD'] == False:
        # Try updating peer aliases file
        result = try_download(_config['ALIASES']['PATH'], _config['ALIASES']['PEER_FILE'], _config['ALIASES']['PEER_URL'], _config['ALIASES']['STALE_TIME'])
        _logger.info(result)
        # Try updating subscriber aliases file
        result = try_download(_config['ALIASES']['PATH'], _config['ALIASES']['SUBSCRIBER_FILE'], _config['ALIASES']['SUBSCRIBER_URL'], _config['ALIASES']['STALE_TIME'])
        _logger.info(result)

Really the question was an updated source for the .csv file  Which I think Peter M0NWI mentioned using radioid.net.  I will need to investigate.

from dmrlink.cfg and hblink.cfg
PEER_URL: http://www.dmr-marc.net/cgi-bin/trbo-database/datadump.cgi?table=repeaters&format=csv&header=0
SUBSCRIBER_URL: http://www.dmr-marc.net/cgi-bin/trbo-database/datadump.cgi?table=users&format=csv&header=0

Jon
K1IMD

On 6/1/2018 4:41 PM, Cort N0MJS wrote:
master branch code for dmrlink.py hasn’t been changed for 9 months. IPSC_Bridge hasn’t been changed for a year and both read the same. I might suggest that was a local change you have there, and not a repo issue. The magic of version control!

(starting line 106):

def build_aliases(_config, _logger):
    if _config['ALIASES']['TRY_DOWNLOAD'] == True:
        # Try updating peer aliases file
        result = try_download(_config['ALIASES']['PATH'], _config['ALIASES']['PEER_FILE'], _config['ALIASES']['PEER_URL'], _config['ALIASES']['STALE_TIME'])
        _logger.info(result)
        # Try updating subscriber aliases file
        result = try_download(_config['ALIASES']['PATH'], _config['ALIASES']['SUBSCRIBER_FILE'], _config['ALIASES']['SUBSCRIBER_URL'], _config['ALIASES']['STALE_TIME'])
        _logger.info(result)


On Jun 1, 2018, at 3:28 PM, Jon K1IMD <jon@...> wrote:

…snip

From dmrlink.py calling from dmrlink.cfg
# ID ALIAS CREATION
# Download
def build_aliases(_config, _logger):
#   if _config['ALIASES']['TRY_DOWNLOAD'] == True: # Disabled becuase DMR-MARC Servers NG
    if _config['ALIASES']['TRY_DOWNLOAD'] == False:

73
Jon
K1IMD

Cort Buffington
785-865-7206



Join main@DVSwitch.groups.io to automatically receive all group messages.