FileSink: REST API source files

This commit is contained in:
f4exb 2020-08-07 07:58:46 +02:00
parent 6bfc6bacee
commit 7a46d6c079
5 changed files with 194 additions and 0 deletions

View File

@ -0,0 +1,94 @@
FileSinkSettings:
description: FileSink
properties:
inputFrequencyOffset:
type: integer
fileRecordName:
type: string
description: full path of the reference file
rgbColor:
type: integer
title:
type: string
log2Decim:
type: integer
spectrumSquelchMode:
type: integer
description: >
Spectrum squelch system
* 0 - deactivated
* 1 - activated
spectrumSquelch:
type: number
format: float
description: Squelch level in power dB
preRecordTime:
type: integer
description: Number of seconds to record before recording is triggered (manual or squelch)
squelchPostRecordTime:
type: integer
description: Number of seconds to record after spectrum squelch cloeses
squelchRecordingEnable:
type: integer
description: >
Automatic recording triggered by spectrum squalch
* 0 - disabled
* 1 - enabled
streamIndex:
description: MIMO channel. Not relevant when connected to SI (single Rx).
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
reverseAPIChannelIndex:
type: integer
FileSinkReport:
description: FileSink
properties:
spectrumSquelch:
type: integer
description: >
Spectrum squelch status
* 0 - closed
* 1 - open
spectrumMax:
type: number
format: float
description: Current spectrum max in squared magnitude (power)
sinkSampleRate:
type: integer
channelSampleRate:
type: integer
recording:
type: integer
description: >
Recording status
* 0 - not recording
* 1 - recording
recordTimeMs:
type: integer
description: Total recording time in milliseconds
recordSize:
type: integer
format: int64
description: Total recording data size in bytes
recordCaptures:
type: integer
description: Number of record flles not including current if recording
FileSinkActions:
description: FileSink
properties:
record:
type: integer
description: >
Record action
* 0 - stop recording
* 1 - start recording

View File

@ -17,5 +17,7 @@ ChannelActions:
originatorChannelIndex:
description: Optional for reverse API. This is the channel index from where the message comes from.
type: integer
FileSinkActions:
$ref: "http://swgserver:8081/api/swagger/include/FileSink.yaml#/FileSinkActions"
FileSourceActions:
$ref: "http://swgserver:8081/api/swagger/include/FileSource.yaml#/FileSourceActions"

View File

@ -33,6 +33,8 @@ ChannelSettings:
$ref: "http://swgserver:8081/api/swagger/include/DATVDemod.yaml#/DATVDemodSettings"
DSDDemodSettings:
$ref: "http://swgserver:8081/api/swagger/include/DSDDemod.yaml#/DSDDemodSettings"
FileSinkSettings:
$ref: "http://swgserver:8081/api/swagger/include/FileSink.yaml#/FileSinkSettings"
FileSourceSettings:
$ref: "http://swgserver:8081/api/swagger/include/FileSource.yaml#/FileSourceSettings"
FreeDVDemodSettings:

View File

@ -0,0 +1,94 @@
FileSinkSettings:
description: FileSink
properties:
inputFrequencyOffset:
type: integer
fileRecordName:
type: string
description: full path of the reference file
rgbColor:
type: integer
title:
type: string
log2Decim:
type: integer
spectrumSquelchMode:
type: integer
description: >
Spectrum squelch system
* 0 - deactivated
* 1 - activated
spectrumSquelch:
type: number
format: float
description: Squelch level in power dB
preRecordTime:
type: integer
description: Number of seconds to record before recording is triggered (manual or squelch)
squelchPostRecordTime:
type: integer
description: Number of seconds to record after spectrum squelch cloeses
squelchRecordingEnable:
type: integer
description: >
Automatic recording triggered by spectrum squalch
* 0 - disabled
* 1 - enabled
streamIndex:
description: MIMO channel. Not relevant when connected to SI (single Rx).
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
reverseAPIChannelIndex:
type: integer
FileSinkReport:
description: FileSink
properties:
spectrumSquelch:
type: integer
description: >
Spectrum squelch status
* 0 - closed
* 1 - open
spectrumMax:
type: number
format: float
description: Current spectrum max in squared magnitude (power)
sinkSampleRate:
type: integer
channelSampleRate:
type: integer
recording:
type: integer
description: >
Recording status
* 0 - not recording
* 1 - recording
recordTimeMs:
type: integer
description: Total recording time in milliseconds
recordSize:
type: integer
format: int64
description: Total recording data size in bytes
recordCaptures:
type: integer
description: Number of record flles not including current if recording
FileSinkActions:
description: FileSink
properties:
record:
type: integer
description: >
Record action
* 0 - stop recording
* 1 - start recording

View File

@ -2342,6 +2342,8 @@ definitions:
$ref: "http://swgserver:8081/api/swagger/include/BFMDemod.yaml#/BFMDemodReport"
DSDDemodReport:
$ref: "http://swgserver:8081/api/swagger/include/DSDDemod.yaml#/DSDDemodReport"
FileSinkReport:
$ref: "http://swgserver:8081/api/swagger/include/FileSink.yaml#/FileSinkReport"
FileSourceReport:
$ref: "http://swgserver:8081/api/swagger/include/FileSource.yaml#/FileSourceReport"
FreeDVDemodReport: