ea3ihi / DMRStation-release

Binaries and accessory files for the DMR Station
9 stars 7 forks source link

DMR ID update trouble #2

Closed RecepAGulec closed 4 years ago

RecepAGulec commented 4 years ago

After upgrade to v0.9 dmr id update does not work. When I want to update DMR ids get following error message:

pi@raspberrypi:/opt/DMRStation $ sudo ./DMRIDUpdate.sh ls: cannot access './DMRIds.dat.*': No such file or directory parse error: Invalid numeric literal at line 1, column 10

ea3ihi commented 4 years ago

Have you updated the DMRIDUpdate.sh script? There is a new url to download the database, the new url is:

https://database.radioid.net/api/dmr/user/?id=%

You can check the url in the last lines of the scripts

RecepAGulec commented 4 years ago

Solved. That was my fault.

ea3ihi commented 4 years ago

Ok, thanks for confirming

MM6NRK commented 4 years ago

I get this when i run it with you new url .

pi@raspberrypi:~ $ cd /opt pi@raspberrypi:/opt $ cd DMRStation pi@raspberrypi:/opt/DMRStation $ sudo ./DMRIDUpdate.sh ./DMRIDUpdate.sh: line 95: unexpected EOF while looking for matching `'' ./DMRIDUpdate.sh: line 98: syntax error: unexpected end of file

MM6NRK commented 4 years ago

Generate new file

curl -s -N "https://database.radioid.net/api/dmr/user/?id=% | jq -r '.results[] | [.id, .callsign, .fname] | @csv' | sed -e 's/"//g' | sed -e 's/,/ /g' > ${DMRIDFILE}

MM6NRK commented 4 years ago

ok got it sorted all is good now .