Skip to content

Commit 5b5204f

Browse files
authored
Merge pull request #6 from masenf/default-codeplug-dir
Default codeplug dir
2 parents 00dedcf + de8295d commit 5b5204f

File tree

10 files changed

+34
-19
lines changed

10 files changed

+34
-19
lines changed

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,30 @@ codeplugs will be generated.
4141

4242
### Github Actions
4343

44-
* Fork this repo
45-
* In the newly forked repo, click the "Actions" tab and
44+
* [Fork this repo](../../fork)
45+
* In the newly forked repo, click the ["Actions" tab](../../actions) and
4646
enable Github Actions for your fork.
47-
* Rename `input/kf7hvm` to `input/your-call`
48-
* customize generate.sh and other files
49-
* `kf7hvm-md-uv380.json`: set your Radio ID and Radio Name
50-
* Copy templates from [default-tyt-md380](https://github.com/mycodeplug/dzcb/blob/main/codeplug/default-tyt-md380) for
51-
monoband variants.
52-
* `order.json`: preferred zone order, zone exclusion, preferred talkgroup order
53-
* `scanlists.json`: additional scanlists
47+
* customize codeplug input files in [`/input/default`](./input/default)
48+
* [`example-md-uv380.json`](./input/default/example-md-uv380.json#L189-L193):
49+
set your Radio ID and Radio Name
50+
* Copy templates from
51+
[default-tyt-md380](https://github.com/mycodeplug/dzcb/blob/main/codeplug/default-tyt-md380)
52+
for monoband variants.
53+
* [`k7abd`](./input/default/k7abd): manually defined zones in
54+
K7ABD anytone-config-builder format. See N7EKB's
55+
[`cps-import-builder` reference data files](https://github.com/n7ekb/cps-import-builder/tree/main/reference_data_files/N7EKB_shared_files)
56+
for more examples.
57+
* [`order.json`](./input/default/order.json): preferred zone order,
58+
zone exclusion, preferred talkgroup order
59+
* [`scanlists.json`](./input/default/scanlists.json): additional scanlists
60+
* [`generate.sh`](./input/default/generate.sh): options passed to `dzcb` (whether
61+
to include PNWDigital, SeattleDMR, default files, etc)
5462
* To use Repeaterbook, go to [Settings > Secrets](../../settings/secrets/actions)
5563
and set the following variables:
5664
* REPEATERBOOK_USER
5765
* REPEATERBOOK_PASSWD
58-
* `prox.csv`: customize zones
66+
* [`prox.csv`](./input/default/prox.csv): customize points of
67+
interest, distances, and desired bands
5968
* Github [`codeplugs`](.github/workflows/codeplugs.yml) workflow
6069
will automatically build all codeplugs in the [`input`](./input) directory.
6170
* When a [Release](../../releases) is published, the generated

input/kf7hvm/kf7hvm-md-uv380.json renamed to input/default/example-md-uv380.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@
186186
"PrivateCallMatch": "On",
187187
"PublicZone": "On",
188188
"PwAndLockEnable": "Off",
189-
"RadioID": "3171501",
189+
"RadioID": "1234567",
190190
"RadioID1": "1",
191191
"RadioID2": "2",
192192
"RadioID3": "3",
193-
"RadioName": "KF7HVM",
193+
"RadioName": "AA1AA",
194194
"RadioProgPassword": "",
195195
"RxLowBatteryInterval": "120",
196196
"SaveModeReceive": "On",

input/kf7hvm/generate.sh renamed to input/default/generate.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ python -m dzcb \
66
--pnwdigital \
77
--seattledmr \
88
--default-k7abd \
9-
--repeaterbook-proximity-csv $DIR/prox.csv \
9+
--repeaterbook-proximity-csv "$DIR/prox.csv" \
1010
--k7abd $DIR/k7abd \
11-
--farnsworth-template-json $DIR/kf7hvm-md-uv380.json \
12-
--scanlists-json $DIR/scanlists.json \
13-
--order-json $DIR/order.json \
14-
$OUTPUT/kf7hvm
11+
--farnsworth-template-json "$DIR/example-md-uv380.json" \
12+
--scanlists-json "$DIR/scanlists.json" \
13+
--order-json "$DIR/order.json" \
14+
$OUTPUT/$(basename "$DIR")
File renamed without changes.
File renamed without changes.
File renamed without changes.

tox.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
minversion = 3.7.0
33
skipsdist = true
44
allowlist_external = /usr/bin/env
5-
envlist = py3
5+
envlist = py3-{linux,mac}
66

77
[testenv]
8+
platform =
9+
linux: linux
10+
mac: darwin
811
passenv = OUTPUT REPEATERBOOK_USER REPEATERBOOK_PASSWD
12+
setenv =
13+
!mac: FIND_OPTS = -executable
14+
mac: FIND_OPTS = -perm '+111'
915
deps =
1016
dzcb~=0.1
1117
commands =
1218
/usr/bin/env find {toxinidir}/input \
1319
-name "generate.sh" \
14-
-executable -exec \{\} ;
20+
{env:FIND_OPTS} -exec \{\} ;

0 commit comments

Comments
 (0)