Compare commits
No commits in common. "master" and "v1.8.3" have entirely different histories.
13
CHANGELOG.md
13
CHANGELOG.md
@ -1,18 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 1.8.4 - 2022-01-30 - Logging now more better
|
|
||||||
### New Features
|
|
||||||
* Default settings.conf have now debug=false
|
|
||||||
* ZwayDataUpdate now uses DebugLogging flag
|
|
||||||
### Bugfixes
|
|
||||||
* Fixing bug in logrotate-script
|
|
||||||
### Changes
|
|
||||||
* ProgrammLogger SetPath removed cause its done by Bot-Utils
|
|
||||||
* IniReader SetSearchPath removed, cause its done by Bot-Utils
|
|
||||||
*
|
|
||||||
* Bump Bot-Utils to ([v.1.2.6](https://git.blubbfish.net/vs_utils/Bot-Utils/src/tag/v1.2.6))
|
|
||||||
* Bump Utils to ([v.1.6.2](https://git.blubbfish.net/vs_utils/Utils/src/tag/v1.2.6))
|
|
||||||
|
|
||||||
## 1.8.3 - 2022-01-20 - Shutdown working
|
## 1.8.3 - 2022-01-20 - Shutdown working
|
||||||
### New Features
|
### New Features
|
||||||
* Deconstruction makes better Output
|
* Deconstruction makes better Output
|
||||||
|
@ -10,9 +10,10 @@ namespace BlubbFish.IoT.Bots.ZwayBot {
|
|||||||
class Program : Bot<ZwayController> {
|
class Program : Bot<ZwayController> {
|
||||||
static void Main(String[] args) => new Program(args);
|
static void Main(String[] args) => new Program(args);
|
||||||
|
|
||||||
public Program(String[] args) : base(args, true, "zwaybot") {
|
public Program(String[] _) {
|
||||||
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Constructor()");
|
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Constructor()");
|
||||||
|
|
||||||
|
InIReader.SetSearchPath(new List<String>() { "/etc/zwaybot", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\zwaybot" });
|
||||||
Dictionary<String, ReadOnlyDictionary<String, String>> names = new Dictionary<String, ReadOnlyDictionary<String, String>>();
|
Dictionary<String, ReadOnlyDictionary<String, String>> names = new Dictionary<String, ReadOnlyDictionary<String, String>>();
|
||||||
if(InIReader.ConfigExist("names")) {
|
if(InIReader.ConfigExist("names")) {
|
||||||
foreach(String item in InIReader.GetInstance("names").GetSections(false)) {
|
foreach(String item in InIReader.GetInstance("names").GetSections(false)) {
|
||||||
@ -24,6 +25,8 @@ namespace BlubbFish.IoT.Bots.ZwayBot {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.logger.SetPath(InIReader.GetInstance("settings").GetValue("logging", "path"));
|
||||||
|
|
||||||
ZwayController zw = new ZwayController(InIReader.GetInstance("settings").GetSection("zway"), names, false);
|
ZwayController zw = new ZwayController(InIReader.GetInstance("settings").GetSection("zway"), names, false);
|
||||||
zw.Recieved += this.ZwayDataUpate;
|
zw.Recieved += this.ZwayDataUpate;
|
||||||
|
|
||||||
@ -34,7 +37,6 @@ namespace BlubbFish.IoT.Bots.ZwayBot {
|
|||||||
this.Deconstructor(zw);
|
this.Deconstructor(zw);
|
||||||
|
|
||||||
Console.WriteLine("Bye!");
|
Console.WriteLine("Bye!");
|
||||||
this.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Deconstructor(ZwayController zw) {
|
private void Deconstructor(ZwayController zw) {
|
||||||
@ -47,10 +49,6 @@ namespace BlubbFish.IoT.Bots.ZwayBot {
|
|||||||
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): Zway lib Disposed.");
|
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): Zway lib Disposed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ZwayDataUpate(Object sender, Zway.Events.DeviceUpdateEvent e) {
|
private void ZwayDataUpate(Object sender, Zway.Events.DeviceUpdateEvent e) => Console.WriteLine("-> ZW [" + e.UpdateTime + "]: " + e.Parent.ToString());
|
||||||
if(this.DebugLogging) {
|
|
||||||
Console.WriteLine("-> ZW [" + e.UpdateTime + "]: " + e.Parent.ToString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,18 +6,17 @@
|
|||||||
<RootNamespace>BlubbFish.IoT.Bots.ZwayBot.Program</RootNamespace>
|
<RootNamespace>BlubbFish.IoT.Bots.ZwayBot.Program</RootNamespace>
|
||||||
<AssemblyName>Zway-Bot</AssemblyName>
|
<AssemblyName>Zway-Bot</AssemblyName>
|
||||||
<PackageId>Program.ZwayBot.Bots.IoT.BlubbFish</PackageId>
|
<PackageId>Program.ZwayBot.Bots.IoT.BlubbFish</PackageId>
|
||||||
<Version>1.8.4</Version>
|
<Version>1.8.3</Version>
|
||||||
<NeutralLanguage>de-DE</NeutralLanguage>
|
<NeutralLanguage>de-DE</NeutralLanguage>
|
||||||
<Description>Is a Bot for Zwave Devices</Description>
|
<Description>Is a Bot for Zwave Devices</Description>
|
||||||
<Authors>BlubbFish</Authors>
|
<Authors>BlubbFish</Authors>
|
||||||
<Company>BlubbFish</Company>
|
<Company>BlubbFish</Company>
|
||||||
<Copyright>Copyright © BlubbFish 2017 - 30.01.2022</Copyright>
|
<Copyright>Copyright © BlubbFish 2017 - 20.01.2022</Copyright>
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
<PackageProjectUrl>https://git.blubbfish.net/vs_projects/Zway-Bot</PackageProjectUrl>
|
<PackageProjectUrl>https://git.blubbfish.net/vs_projects/Zway-Bot</PackageProjectUrl>
|
||||||
<RepositoryUrl>https://git.blubbfish.net/vs_projects/Zway-Bot.git</RepositoryUrl>
|
<RepositoryUrl>https://git.blubbfish.net/vs_projects/Zway-Bot.git</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<PackageReleaseNotes>
|
<PackageReleaseNotes>
|
||||||
1.8.4 - 2022-01-30 - Logging now more better
|
|
||||||
1.8.3 - 2022-01-20 - Shutdown working
|
1.8.3 - 2022-01-20 - Shutdown working
|
||||||
1.8.2 - 2022-01-19 - Logging better
|
1.8.2 - 2022-01-19 - Logging better
|
||||||
1.8.1 - 2022-01-18 - New Default Configs
|
1.8.1 - 2022-01-18 - New Default Configs
|
||||||
|
@ -6,4 +6,3 @@ type=zway
|
|||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
path=/var/log/zwaybot/debug.log
|
path=/var/log/zwaybot/debug.log
|
||||||
debug=false
|
|
Loading…
Reference in New Issue
Block a user