Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions input/kf7hvm/generate.sh → input/default/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 \{\} ;