and do not send power

This commit is contained in:
Martin Brodbeck 2023-12-05 09:05:54 +01:00
parent d694418dda
commit 745a2dce3a
6 changed files with 4 additions and 8 deletions

View file

@ -23,8 +23,6 @@ Copy the example config file `clrigctl.toml` to `$HOME/.config/` and adapt it to
# This is an example config file. Please edit it to your needs
# and place it, for example, in your `$HOME/.config/`
power = "5" # Output power in W
[cloudlog]
# Note: URL should end with "/index.php/api/radio".
url = "https://cloudlog.example.com/index.php/api/radio"

View file

@ -1,8 +1,6 @@
# This is an example config file. Please edit it to your needs
# and place it, for example, in your `$HOME/.config/`
power = "5" # Output power in W
[cloudlog]
# Note: URL should end with "/index.php/api/radio".
url = "https://cloudlog.example.com/index.php/api/radio"

View file

@ -7,7 +7,7 @@ pub struct RadioData {
pub radio: String,
pub frequency: String,
pub mode: String,
pub power: String,
//pub power: String,
}
#[tokio::main]

View file

@ -28,7 +28,7 @@ pub fn get_radio_data(fl_host: &str, fl_port: &str) -> Result<RadioData, Error>
radio: String::from(""),
frequency: freq,
mode,
power,
//power,
};
Ok(radio_data)

View file

@ -23,7 +23,7 @@ fn main() {
radio: settings.cloudlog.identifier,
frequency: String::from(""),
mode: String::from(""),
power: String::from(&settings.power),
//power: String::from(&settings.power),
};
let mut changes_detected = false;

View file

@ -22,7 +22,7 @@ pub struct Flrig {
pub struct Settings {
pub cloudlog: Cloudlog,
pub flrig: Flrig,
pub power: String,
//pub power: String,
}
impl Settings {