diff --git a/README.md b/README.md index ddc4e73..ca76ec8 100644 --- a/README.md +++ b/README.md @@ -41,21 +41,30 @@ codeplugs will be generated. ### Github Actions -* Fork this repo - * In the newly forked repo, click the "Actions" tab and +* [Fork this repo](../../fork) + * In the newly forked repo, click the ["Actions" tab](../../actions) and enable Github Actions for your fork. -* Rename `input/kf7hvm` to `input/your-call` -* customize generate.sh and other files - * `kf7hvm-md-uv380.json`: set your Radio ID and Radio Name - * Copy templates from [default-tyt-md380](https://github.com/mycodeplug/dzcb/blob/main/codeplug/default-tyt-md380) for - monoband variants. - * `order.json`: preferred zone order, zone exclusion, preferred talkgroup order - * `scanlists.json`: additional scanlists +* customize codeplug input files in [`/input/default`](./input/default) + * [`example-md-uv380.json`](./input/default/example-md-uv380.json#L189-L193): + set your Radio ID and Radio Name + * Copy templates from + [default-tyt-md380](https://github.com/mycodeplug/dzcb/blob/main/codeplug/default-tyt-md380) + for monoband variants. + * [`k7abd`](./input/default/k7abd): manually defined zones in + K7ABD anytone-config-builder format. See N7EKB's + [`cps-import-builder` reference data files](https://github.com/n7ekb/cps-import-builder/tree/main/reference_data_files/N7EKB_shared_files) + for more examples. + * [`order.json`](./input/default/order.json): preferred zone order, + zone exclusion, preferred talkgroup order + * [`scanlists.json`](./input/default/scanlists.json): additional scanlists + * [`generate.sh`](./input/default/generate.sh): options passed to `dzcb` (whether + to include PNWDigital, SeattleDMR, default files, etc) * To use Repeaterbook, go to [Settings > Secrets](../../settings/secrets/actions) and set the following variables: * REPEATERBOOK_USER * REPEATERBOOK_PASSWD - * `prox.csv`: customize zones + * [`prox.csv`](./input/default/prox.csv): customize points of + interest, distances, and desired bands * Github [`codeplugs`](.github/workflows/codeplugs.yml) workflow will automatically build all codeplugs in the [`input`](./input) directory. * When a [Release](../../releases) is published, the generated diff --git a/input/kf7hvm/kf7hvm-md-uv380.json b/input/default/example-md-uv380.json similarity index 99% rename from input/kf7hvm/kf7hvm-md-uv380.json rename to input/default/example-md-uv380.json index ba44466..7170ce3 100644 --- a/input/kf7hvm/kf7hvm-md-uv380.json +++ b/input/default/example-md-uv380.json @@ -186,11 +186,11 @@ "PrivateCallMatch": "On", "PublicZone": "On", "PwAndLockEnable": "Off", - "RadioID": "3171501", + "RadioID": "1234567", "RadioID1": "1", "RadioID2": "2", "RadioID3": "3", - "RadioName": "KF7HVM", + "RadioName": "AA1AA", "RadioProgPassword": "", "RxLowBatteryInterval": "120", "SaveModeReceive": "On", diff --git a/input/kf7hvm/generate.sh b/input/default/generate.sh similarity index 50% rename from input/kf7hvm/generate.sh rename to input/default/generate.sh index 40ecb3a..a0494f1 100755 --- a/input/kf7hvm/generate.sh +++ b/input/default/generate.sh @@ -6,9 +6,9 @@ python -m dzcb \ --pnwdigital \ --seattledmr \ --default-k7abd \ - --repeaterbook-proximity-csv $DIR/prox.csv \ + --repeaterbook-proximity-csv "$DIR/prox.csv" \ --k7abd $DIR/k7abd \ - --farnsworth-template-json $DIR/kf7hvm-md-uv380.json \ - --scanlists-json $DIR/scanlists.json \ - --order-json $DIR/order.json \ -$OUTPUT/kf7hvm + --farnsworth-template-json "$DIR/example-md-uv380.json" \ + --scanlists-json "$DIR/scanlists.json" \ + --order-json "$DIR/order.json" \ +$OUTPUT/$(basename "$DIR") diff --git a/input/kf7hvm/k7abd/Analog__ULTone.csv b/input/default/k7abd/Analog__ULTone.csv similarity index 100% rename from input/kf7hvm/k7abd/Analog__ULTone.csv rename to input/default/k7abd/Analog__ULTone.csv diff --git a/input/kf7hvm/k7abd/Digital-Repeaters__Hotspot.csv b/input/default/k7abd/Digital-Repeaters__Hotspot.csv similarity index 100% rename from input/kf7hvm/k7abd/Digital-Repeaters__Hotspot.csv rename to input/default/k7abd/Digital-Repeaters__Hotspot.csv diff --git a/input/kf7hvm/k7abd/Talkgroups__Hotspot.csv b/input/default/k7abd/Talkgroups__Hotspot.csv similarity index 100% rename from input/kf7hvm/k7abd/Talkgroups__Hotspot.csv rename to input/default/k7abd/Talkgroups__Hotspot.csv diff --git a/input/kf7hvm/order.json b/input/default/order.json similarity index 100% rename from input/kf7hvm/order.json rename to input/default/order.json diff --git a/input/kf7hvm/prox.csv b/input/default/prox.csv similarity index 100% rename from input/kf7hvm/prox.csv rename to input/default/prox.csv diff --git a/input/kf7hvm/scanlists.json b/input/default/scanlists.json similarity index 100% rename from input/kf7hvm/scanlists.json rename to input/default/scanlists.json diff --git a/tox.ini b/tox.ini index aa0e3a6..967a67a 100644 --- a/tox.ini +++ b/tox.ini @@ -2,13 +2,19 @@ minversion = 3.7.0 skipsdist = true allowlist_external = /usr/bin/env -envlist = py3 +envlist = py3-{linux,mac} [testenv] +platform = + linux: linux + mac: darwin passenv = OUTPUT REPEATERBOOK_USER REPEATERBOOK_PASSWD +setenv = + !mac: FIND_OPTS = -executable + mac: FIND_OPTS = -perm '+111' deps = dzcb~=0.1 commands = /usr/bin/env find {toxinidir}/input \ -name "generate.sh" \ - -executable -exec \{\} ; + {env:FIND_OPTS} -exec \{\} ;