I wrote some scripts to automate personalizing a common codeplug for my needs without having to use OpendGD77CPS manually.
Here is a Linux script which downloads a model codeplug from a web site, changes hotspot settings (channel named "Personal hotspot", frequency 434.4875 MHz, color code 13) and then my DMR ID and callsign, and finally writes it to my radio:
Code: Select all
wget http://ourhamclub.org/codeplug.g77 TEMPORARY_FILE=temp.g77 MY_CODEPLUG=OH1FSS.g77 ./GD77ChangeChannel.py -i codeplug.g77 -o $TEMPORARY_FILE -n 'Personal Hotspot' -r 434487500 -c 13 ./GD77changeid.py -i $TEMPORARY_FILE -o $MY_CODEPLUG -d 2441033 -c OH1FSS rm -f $TEMPORARY_FILE # for safety, you might want to run the following only after checking the previous command results... ./GD77transfer.py -w -f $MY_CODEPLUG
The third Python script is attached to this posting. That program includes many functions which are not needed here, but which might be useful if you want to extend the functionality yourself.
Extract all three programs to a directory and adapt the script above for your needs!
The programs are experimental, so make backups and be careful! I tested the programs in Fedora 33 Linux using Python version 3.9.1.