New URL for database Update to get EU-Calls again.

This commit is contained in:
Kim Huebel 2018-06-04 11:54:16 +00:00
parent c383e537e5
commit 4ba4ba2096
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
echo Downloading DMR-IDs from RadioID database echo Downloading DMR-IDs from RadioID database
curl 'https://www.ham-digital.org/status/users.csv' 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s;%s;%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > dmrids.dat #curl 'https://www.ham-digital.org/status/users.csv' 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s;%s;%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > dmrids.dat
curl 'https://ham-digital.org/status/dmrid.dat' 2>/dev/null > dmrids.dat
echo Removing IDs from local database echo Removing IDs from local database
echo -e 'delete from callsign where 1;' | sqlite3 callsigns.db echo -e 'delete from callsign where 1;' | sqlite3 callsigns.db