Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
windytan committed Jun 13, 2024
1 parent 93b8767 commit d3d523a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ redsea -f WAVEFILE
receive all information. Multi-group data such as PS
names, RadioText, and alternative frequencies are
especially vulnerable. This option makes it display them
even if not fully received, as
partial_{ps,radiotext,alt_frequencies}.
even if not fully received, prefixed with partial_.
-r, --samplerate RATE Set sample frequency of raw PCM input in Hz. Will
resample if this differs from 171000 Hz.
Expand Down
18 changes: 15 additions & 3 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
"minLength": 8,
"maxLength": 8
},
"long_ps": {
"type": "string",
"maxLength": 32
},
"rtplus": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -303,6 +307,10 @@
"description": "Program Service name",
"$ref": "#/definitions/ps"
},
"long_ps": {
"description": "Long PS",
"$ref": "#/definitions/long_ps"
},
"country": {
"description": "ISO country code",
"type": "string",
Expand All @@ -327,14 +335,14 @@
"description": "Traffic Message Channel",
"$ref": "#/definitions/tmc"
},
"alt_kilohertz_a": {
"alt_frequencies_a": {
"description": "Alternative Frequencies (Method A)",
"type": "array",
"items": {
"type": "integer"
}
},
"alt_kilohertz_b": {
"alt_frequencies_b": {
"description": "Alternative Frequencies (Method B)",
"$ref": "#/definitions/alt_freq_b"
},
Expand Down Expand Up @@ -387,6 +395,10 @@
"type": "integer"
}
},
"partial_long_ps": {
"description": "Incomplete Long PS message",
"$ref": "#/definitions/long_ps"
},
"open_data_app": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -500,7 +512,7 @@
"prog_type": {
"type": "string"
},
"alt_kilohertz": {
"alt_frequencies": {
"type": "array",
"items": {
"type": "integer"
Expand Down
3 changes: 1 addition & 2 deletions src/redsea.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ void printUsage() {
" receive all information. Multi-group data such as PS\n"
" names, RadioText, and alternative frequencies are\n"
" especially vulnerable. This option makes it display them\n"
" even if not fully received, as\n"
" partial_{ps,radiotext,alt_frequencies}.\n"
" even if not fully received, prefixed with partial_.\n"
"\n"
"-r, --samplerate RATE Set sample frequency of raw PCM input in Hz. Will\n"
" resample if this differs from 171000 Hz.\n"
Expand Down

0 comments on commit d3d523a

Please sign in to comment.