diff --git a/Cargo.lock b/Cargo.lock index 9f2aef4..d6e42f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -280,7 +280,7 @@ dependencies = [ [[package]] name = "mqttAutomation" -version = "1.0.0" +version = "1.0.1" dependencies = [ "crossbeam", "json", diff --git a/Cargo.toml b/Cargo.toml index 6d12374..ce56bed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mqttAutomation" -version = "1.0.0" +version = "1.0.1" edition = "2021" [dependencies] diff --git a/mqttClock.yml b/mqttAutomation.yml similarity index 100% rename from mqttClock.yml rename to mqttAutomation.yml diff --git a/src/main.rs b/src/main.rs index bb52f3b..56cf4f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,13 +142,13 @@ enum SettingsError { fn read_config() -> Result { let mut config_str: String = String::from("error"); - match fs::read_to_string("./mqttClock.yml") { + match fs::read_to_string("./mqttAutomation.yml") { Err(_) => { - println!("INFO : read_config: could not find './mqttClock.yml'. try '~/.config/mqttClock.yml"); - match fs::read_to_string("~/.config/mqttClock.yml") { + println!("INFO : read_config: could not find './mqttAutomation.yml'. try '~/.config/mqttAutomation.yml"); + match fs::read_to_string("~/.config/mqttAutomation.yml") { Err(_) => { - println!("INFO : read_config: could not find '~/.config/mqttClock.yml'. try '/etc/mqttClock.yml"); - match fs::read_to_string("/etc/mqttClock.yml") { + println!("INFO : read_config: could not find '~/.config/mqttAutomation.yml'. try '/etc/mqttAutomation.yml"); + match fs::read_to_string("/etc/mqttAutomation.yml") { Err(_) => println!("ERROR: read_config: could not find any config file"), Ok(str) => config_str = str }