How to set transmitter Gain with JSON ?
Quote from AdminTC on 22/12/2021, 14:43How to set transmitter Gain with JSON ?
Here is an example using JSON data with curl
curl -X PUT -d '{"request": 1,"config": {"type": "group","name": "Block_Spectran_V6B_0","items": [{"type": "group","name": "main","label": "Main","items": [{"type": "float","name": "transattn","value": -31.54}]}]}}' http://localhost:54664/remoteconfig
How to set transmitter Gain with JSON ?
Here is an example using JSON data with curl
curl -X PUT -d '{"request": 1,"config": {"type": "group","name": "Block_Spectran_V6B_0","items": [{"type": "group","name": "main","label": "Main","items": [{"type": "float","name": "transattn","value": -31.54}]}]}
Quote from mm_dev on 13/01/2023, 14:22You can simply open http://localhost:54664/remoteconfig in your browser (or make a GET request using the language/tool of your choice) to see which settings are available for your current setup. For the transmitter gain this would result in
{"type":"float","name":"transattn","label":"Transmitter Gain","min":-100,"max":10,"step":0.01,"value":-20,"default":-20,"unit":"dB"},The "label" variable is how the setting is called in the UI, the "value" variable is the value or index (in case of list settings) of the setting in the corresponding base unit of whatever is specified as "unit" (e.g. Hz for frequency values, seconds for duration values, and so on).
Note that not all blocks+settings support the remote config feature.
You can simply open http://localhost:54664/remoteconfig in your browser (or make a GET request using the language/tool of your choice) to see which settings are available for your current setup. For the transmitter gain this would result in
{"type":"float","name":"transattn","label":"Transmitter Gain","min":-100,"max":10,"step":0.01,"value":-20,"default":-20,"unit":"dB"},
The "label" variable is how the setting is called in the UI, the "value" variable is the value or index (in case of list settings) of the setting in the corresponding base unit of whatever is specified as "unit" (e.g. Hz for frequency values, seconds for duration values, and so on).
Note that not all blocks+settings support the remote config feature.