From e6a397f4797e6dd52564aa7b3d52bd8fd604f0d9 Mon Sep 17 00:00:00 2001 From: Steve Zingman N4IRS Date: Fri, 27 Nov 2015 08:02:30 -0500 Subject: [PATCH] Download the subscriber and repeater IDs --- get_ids.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 get_ids.sh diff --git a/get_ids.sh b/get_ids.sh new file mode 100644 index 0000000..69292c9 --- /dev/null +++ b/get_ids.sh @@ -0,0 +1,24 @@ +# To provide more readable output from DMRlink with current subscriber and repeater IDs, we download the CSV files from DMR-MARC +# If you are going to use this in a cron task, don't run it more then once a day. +# It might be good to find alternale a source as a backup. + +# + +# wget -O users.csv -q "http://www.dmr-marc.net/cgi-bin/trbo-database/datadump.cgi?table=users&format=csv&header=0" + +# Options are: + +# table { users | repeaters } + +# format { table | csv | csvq | json } + +# header { 0 | 1 } (only applies to table and csv formats) + +# id { nnnnnn } (query an individual record) + +# Get the user IDs. +wget -O subscriber_idsxxx.csv -q "http://www.dmr-marc.net/cgi-bin/trbo-database/datadump.cgi?table=users&format=csv&header=0" + +# Get the peer IDs +wget -O peer_idsxxx.csv -q "http://www.dmr-marc.net/cgi-bin/trbo-database/datadump.cgi?table=repeaters&format=csv&header=0" +