--- title: Create your own DMR-ID database file summary: > Sometimes you just need to create your own files. Mainly for the GD-77 because of its limited memory. categories: [amateur-radio] tags: [dmr, script] date: 2020-11-16T23:23:51+01:00 --- Let's start with the website [ham-digital.org](https://ham-digital.org/). It contains the user database of registered DMR-IDs worldwide. {{< alert note "Update" >}} While these scripts still work, the website `ham-digital.org` is dead and the european database has been put together on [radioid.net](https://radioid.net). {{< /alert >}} ~~**Are you still waiting for your confirmation email?** You may [look at the registration site][reg], which contains links to the list of open registrations or the list of local administrators.~~ [reg]: https://register.ham-digital.org/ Okay, I try to keep this simple. These scripts are made to download an actual snapshot of the DMR-ID database from *ham-digital.org*. They create a comma-separated list of DMR-IDs and callsigns to import into an amateur radio device. Actually I use them only on my [Radioddity GD-77]({{< ref "equipment" >}}). `ref "equipment/handheld/radioddity-gd77" ` ## Download the full database That fetches the whole database, which are something around 180.000 entries at the moment (2020-Nov-15). The script uses about 8MB of RAM. Something like that. ~~~php #!/usr/bin/env php ~~~ ## Download only a few regions into separate files Fetch some regions (specified in the script) and some additional callsigns from a file that contains one callsign per line. This script uses a lot more RAM. Something around 32MB I guess. Or so. ~~~php #!/usr/bin/env php ~~~ ## Download only a few regions into one single file Like the one above, but it saves all IDs into one file. Uses probably the same amount of RAM. ~~~php #!/usr/bin/env php ~~~