Description get radio parameters
http://localhost:5000/radio
Example
curl http://localhost:5000/radio
Response
{
"radio_frequency": "14093000",
"radio_mode": "PKTUSB",
"radio_rf_level": 100,
"radio_status": true,
"radio_swr": 0,
"radio:tuner": false,
"s_meter_strength": "20"
}
Description set radio parameters
http://localhost:5000/radio
Example
curl --request POST --url http://localhost:5000/radio --header 'Content-Type: application/json' --data '{"radio_frequency": "14093000","radio_mode": "PKTUSB","radio_rf_level": 100}'
Response
{
"radio_frequency": "14093000",
"radio_mode": "PKTUSB",
"radio_rf_level": 100,
"radio_status": true,
"radio_swr": 0,
"radio_tuner": True,
"s_meter_strength": "20"
}
Errors
This API uses the following error codes:
404 Not Found
: The requested resource was not found.