/api/v1/monitor/fftFFT#
Get a spectrum.
Computes a spectrum from the received (channel=rx, the default) or transmitted
(channel=tx) samples; the optional size and window query parameters set
the transform length and window. Spectrum analysis is off by default for each
channel and is switched on with PUT /api/v1/monitor/fft/{channel}. When no
spectrum can be produced, bins_db is empty and unavailable says why;
synthetic: true marks bins generated for display rather than measured.
Responses
200OKapplication/json
sizerequiredinteger · int32
sourcerequiredinteger · int32
Which signal tap the spectrum is computed from.
bins_db requiredarray of number · double
Frequency-domain magnitude samples.
syntheticrequiredboolean
True when these bins are synthesised for display rather than measured. A client must not present synthetic bins as a measurement.
channelrequiredstring
Which end of the link this spectrum describes ("rx" / "tx").
enabledrequiredboolean
Whether spectrum analysis is enabled for that channel. Off by default, because each spectrum costs a capture and a transform.
sample_rate_hz requiredinteger · int64
Sample rate the block was taken at, 0 when there is no block.
unavailableUnavailable · nullable
Request
curl "http://192.168.2.1:8080/api/v1/monitor/fft"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/monitor/fft")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/monitor/fft"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"size": 0,
"source": 0,
"bins_db": [
0.0
],
"synthetic": true,
"channel": "string",
"enabled": true,
"sample_rate_hz": 0,
"unavailable": {}
}/api/v1/monitor/powerPower#
Get the signal power.
Returns the average power, in dBFS, at the currently selected measurement point
(tap).
Responses
200OKapplication/json
taprequiredinteger · int32
power_dbfs requirednumber · double
Request
curl "http://192.168.2.1:8080/api/v1/monitor/power"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/monitor/power")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/monitor/power"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"tap": 0,
"power_dbfs": 0.0
}/api/v1/monitor/rssiRSSI#
Get the received signal strength.
Returns the average and instantaneous received signal strength and the detection threshold, in dBm. Use these values for relative comparisons: the absolute level is not calibrated against the antenna connector.
Responses
200OKapplication/json
average_dbm requirednumber · double
instant_dbm requirednumber · double
threshold_dbm requirednumber · double
Request
curl "http://192.168.2.1:8080/api/v1/monitor/rssi"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/monitor/rssi")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/monitor/rssi"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"average_dbm": 0.0,
"instant_dbm": 0.0,
"threshold_dbm": 0.0
}