YAML include/import #409
Replies: 4 comments 1 reply
-
@Chris-Donovan : actually, you can (to the extend of the radios capabilities) use the same config file on all your radios - that's what qdmr was intended for. This works as long as for examples number of channels in a zone or numbers of entries in an RX group is supported on all radios. How different are your radios in that area (32 max entries in an RX group vs. 64 max etc.)? @hmatuschek : since the reference IDs change on insert/delete, it would be hard to do import/export? Would an "enable"/"disable" flag for Channels or Zones or Groups be an option? |
Beta Was this translation helpful? Give feedback.
-
@Chris-Donovan : well, almost:
Same here :-)
If you want to share configs between the two, you can only write with qdmr (and not read from the radios). Since qdmr knows that an UV does not support analog APRS receive, it will skip that part of the config.That's exactly how I configure my radios. Same config for the UV and the UVII, I have to admit that I only send digital APRS. But for example writing the user DB just works because qdmr knows how many entries fit in the radios.
That is a manual process, I guess, indeed.
If you enable "commercial features" with the gear icon, you can chose the default Radio ID on the corresponding tab - if all channels are set to [Default] DMR ID, that should work.
That is a problem, yes.. Zones and channels just keep accumulating :-) The "Zone hide" feature in the Anytone helps somewhat.
@hmatuschek : from what I understand, qdmr always checks which config values fit in the target radio? Worked in all my tests with different radios so far. What does not work when for example the radio supports only 32 entries in an RX group (RD-5R) - the Anytone config does not work in that case. Depending on what qdmr version you are using right now, you might be hit by #375 - it is fixed in master and will be in 0.12.. |
Beta Was this translation helpful? Give feedback.
-
Concerning Limitsqdmr never exceeds any limits imposed by any radio. This is ensured during the encoding of the codeplugs for every device separately. That is, if there is a 32 entry limit for group lists on the RD-5R only 32 will be written. However, you are not directly able to control which 32 are written (you are to some degree). Before that happens, however, there are several lines of defense:
Concerning YAML mergesThought about that too. Maybe not automatically but some semi-automatic means to import/merge codeplugs in qdmr. If, however, you want to do everything automatically, consider just writing some simple python script merging YAML files as you like it. You may then even use the command line tool to upload the generated YAML files, bypassing the GUI entirely. |
Beta Was this translation helpful? Give feedback.
-
Import/merging of code plugs is now implemented in the devel branch and will be part of the next release. |
Beta Was this translation helpful? Give feedback.
-
I've just started playing around with qdmr and I love the ability to edit/store radio configurations in YAML format. I like the ability to easily diff and potentially version control my radio configs.
I have multiple radios and I would like to avoid duplicating effort across multiple config files by defining the same channels and zones in each configuration. Have you considered importing additional YAML files so you can define the channels and zones outside of the main config file?
This would allow the user to reuse a group of channels and zones across multiple radio configs and also allow for groups of channels and zones to be easily added or removed from a codeplug as circumstances change.
If I were to work on prototyping something, would it be more appropriate to do this within the qdmr code base or as an external application that parses the YAML files and generates a single qdmr compatible YAML file?
Beta Was this translation helpful? Give feedback.
All reactions