dg9vh / MMDVMHost-Dashboard

Dashboard for MMDVMHost (by G4KLX)
Creative Commons Zero v1.0 Universal
60 stars 45 forks source link

DMRIDs data from database of the BM network #126

Closed s-s-s closed 7 years ago

s-s-s commented 7 years ago

To get the data from database of the BrandMeister network in right format

pjao commented 7 years ago

Is that really needed? You can use the file on MMDVMHost and MMDVMHost-Dashboard from the command:

curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null > ${DMRIDFILE}

s-s-s commented 7 years ago

This command (curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null > ${DMRIDFILE} ) creates a file with incorrect formatting, to which for example the dashboard in the name field writes an error. There are other applications that do not like this format, which contains tabs and blanks

pjao commented 7 years ago

@s-s-s all right with me... since is already merged with MMDVMHost.

Could I suggest a change, one line only?

curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null | sed -e 's/ /\t\t/g' | sed -e 's/\t/ /g' | sed -e 's/ / /g' > ${DMRIDFILE}

dg9vh commented 7 years ago

now it is merged, you can push your change on it...

pjao commented 7 years ago

@dg9vh, lets see what @s-s-s says on MMDVMHost. Dammm copy&paste.

This way it will looks nicer :)

curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null | sed -e 's/[[:space:]]\+/ /g' > ${DMRIDFILE}

s-s-s commented 7 years ago

Exellent! It works well.

pjao commented 7 years ago

@s-s-s make the pull request on MMDVMHost and MMDVMHost-Dashboard!