Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
157ff06ba0 | |||
1cc8df148d | |||
9e06629595 | |||
77dd5c32d3 | |||
9c7d652fbb |
41
CHANGELOG.md
41
CHANGELOG.md
@ -1,5 +1,46 @@
|
|||||||
# 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
|
||||||
|
### New Features
|
||||||
|
* Deconstruction makes better Output
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Bump Bot-Utils to ([v.1.2.5](https://git.blubbfish.net/vs_utils/Bot-Utils/src/tag/v1.2.5))
|
||||||
|
* Bunp Utils to ([v1.6.1](https://git.blubbfish.net/vs_utils/Utils/src/tag/v1.6.1))
|
||||||
|
* Bump Zway to ([v1.6.1](https://git.blubbfish.net/vs_projects/Zway/src/tag/v1.6.1))
|
||||||
|
* Modify buildscript
|
||||||
|
|
||||||
|
## 1.8.2 - 2022-01-19 - Logging better
|
||||||
|
### New Features
|
||||||
|
* Change buildscript, so logrotate is not overwritten by setup every time
|
||||||
|
### Bugfixes
|
||||||
|
### Changes
|
||||||
|
* Change default logpath
|
||||||
|
* Modify buildscript
|
||||||
|
|
||||||
|
## 1.8.1 - 2022-01-18 - New Default Configs
|
||||||
|
### New Features
|
||||||
|
* Bump Bot-Utils to ([v1.2.4](https://git.blubbfish.net/vs_utils/Bot-Utils/src/tag/v1.2.4)) and using the possibillity to enable via config if a module is loaded
|
||||||
|
### Bugfixes
|
||||||
|
* Buildscript not cleansup behind
|
||||||
|
### Changes
|
||||||
|
* New Sample Configs
|
||||||
|
* Codingstyles
|
||||||
|
* Add dependency to dotnet-runtime-3.1 (>= 3.1.22) in buildscript
|
||||||
|
|
||||||
## 1.8.0 - 2022-01-16 - Running again
|
## 1.8.0 - 2022-01-16 - Running again
|
||||||
### New Features
|
### New Features
|
||||||
* Change licence file (LGPL 4)
|
* Change licence file (LGPL 4)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using BlubbFish.IoT.Zway;
|
using BlubbFish.IoT.Zway;
|
||||||
using BlubbFish.IoT.Zway.Interfaces;
|
using BlubbFish.IoT.Zway.Interfaces;
|
||||||
using BlubbFish.Utils;
|
using BlubbFish.Utils;
|
||||||
using BlubbFish.Utils.IoT.Bots;
|
|
||||||
using BlubbFish.Utils.IoT.Bots.Events;
|
using BlubbFish.Utils.IoT.Bots.Events;
|
||||||
using BlubbFish.Utils.IoT.Bots.Moduls;
|
using BlubbFish.Utils.IoT.Bots.Moduls;
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using BlubbFish.IoT.Zway;
|
using BlubbFish.IoT.Zway;
|
||||||
using BlubbFish.IoT.Zway.Events;
|
using BlubbFish.IoT.Zway.Events;
|
||||||
using BlubbFish.IoT.Zway.Interfaces;
|
using BlubbFish.IoT.Zway.Interfaces;
|
||||||
using BlubbFish.Utils;
|
using BlubbFish.Utils;
|
||||||
using BlubbFish.Utils.IoT.Bots;
|
|
||||||
using BlubbFish.Utils.IoT.Bots.Events;
|
using BlubbFish.Utils.IoT.Bots.Events;
|
||||||
using BlubbFish.Utils.IoT.Bots.Moduls;
|
using BlubbFish.Utils.IoT.Bots.Moduls;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using BlubbFish.IoT.Zway;
|
using BlubbFish.IoT.Zway;
|
||||||
using BlubbFish.IoT.Zway.Devices;
|
using BlubbFish.IoT.Zway.Devices;
|
||||||
using BlubbFish.IoT.Zway.Interfaces;
|
using BlubbFish.IoT.Zway.Interfaces;
|
||||||
|
@ -10,10 +10,9 @@ 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[] _) {
|
public Program(String[] args) : base(args, true, "zwaybot") {
|
||||||
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)) {
|
||||||
@ -25,8 +24,6 @@ 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,11 +31,26 @@ namespace BlubbFish.IoT.Bots.ZwayBot {
|
|||||||
this.ModulInterconnect();
|
this.ModulInterconnect();
|
||||||
this.ModulEvents();
|
this.ModulEvents();
|
||||||
this.WaitForShutdown();
|
this.WaitForShutdown();
|
||||||
|
this.Deconstructor(zw);
|
||||||
|
|
||||||
|
Console.WriteLine("Bye!");
|
||||||
|
this.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Deconstructor(ZwayController zw) {
|
||||||
|
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): Deconstruct ZwayBot.");
|
||||||
|
|
||||||
this.ModulDispose();
|
this.ModulDispose();
|
||||||
|
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): ModuleDisposed.");
|
||||||
|
|
||||||
zw.Dispose();
|
zw.Dispose();
|
||||||
|
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): Zway lib Disposed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ZwayDataUpate(Object sender, Zway.Events.DeviceUpdateEvent e) => Console.WriteLine("-> ZW [" + e.UpdateTime + "]: " + e.Parent.ToString());
|
private void ZwayDataUpate(Object sender, Zway.Events.DeviceUpdateEvent e) {
|
||||||
|
if(this.DebugLogging) {
|
||||||
|
Console.WriteLine("-> ZW [" + e.UpdateTime + "]: " + e.Parent.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,17 +6,21 @@
|
|||||||
<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.0</Version>
|
<Version>1.8.4</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 - 16.01.2022</Copyright>
|
<Copyright>Copyright © BlubbFish 2017 - 30.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.2 - 2022-01-19 - Logging better
|
||||||
|
1.8.1 - 2022-01-18 - New Default Configs
|
||||||
1.8.0 - 2022-01-16 - Running again
|
1.8.0 - 2022-01-16 - Running again
|
||||||
1.7.3 - 2018-10-29 - Change dependencys
|
1.7.3 - 2018-10-29 - Change dependencys
|
||||||
1.7.2 - 2018-10-02 - Improve
|
1.7.2 - 2018-10-02 - Improve
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
[modul]
|
[modul]
|
||||||
|
enabled=true
|
||||||
config=public
|
config=public
|
||||||
|
|
||||||
[cold]
|
; [cold]
|
||||||
cron=0 23 * * 0-4
|
; cron=0 23 * * 0-4
|
||||||
set=7-0-67-2:Level-19;7-0-112-8:Level-2
|
; set=7-0-67-2:Level-19;7-0-112-8:Level-2
|
||||||
|
|
||||||
[hot]
|
; [hot]
|
||||||
cron=0 16 * * 1-5
|
; cron=0 16 * * 1-5
|
||||||
set=7-0-67-1:Level-22;7-0-112-8:Level-1
|
; set=7-0-67-1:Level-22;7-0-112-8:Level-1
|
@ -1,4 +1,5 @@
|
|||||||
[modul]
|
[modul]
|
||||||
|
enabled=false
|
||||||
config=private
|
config=private
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
[hot]
|
[modul]
|
||||||
from=7-0-67-1:Level
|
enabled=false
|
||||||
to=8-0-67-1:Level;9-0-67-1:Level
|
config=public
|
||||||
|
|
||||||
[cold]
|
; [hot]
|
||||||
from=7-0-67-2:Level
|
; from=7-0-67-1:Level
|
||||||
to=8-0-67-11:Level;9-0-67-11:Level
|
; to=8-0-67-1:Level;9-0-67-1:Level
|
||||||
|
|
||||||
[mode]
|
; [cold]
|
||||||
from=7-0-112-8:Level
|
; from=7-0-67-2:Level
|
||||||
to=8-0-64:Level;9-0-64:Level
|
; to=8-0-67-11:Level;9-0-67-11:Level
|
||||||
convert=1-1;2-11
|
|
||||||
|
; [mode]
|
||||||
|
; from=7-0-112-8:Level
|
||||||
|
; to=8-0-64:Level;9-0-64:Level
|
||||||
|
; convert=1-1;2-11
|
@ -1,4 +1,5 @@
|
|||||||
[modul]
|
[modul]
|
||||||
|
enabled=false
|
||||||
config=private
|
config=private
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
|
@ -5,4 +5,5 @@ pass=pass
|
|||||||
type=zway
|
type=zway
|
||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
path=/var/log/zwaybot.log
|
path=/var/log/zwaybot/debug.log
|
||||||
|
debug=false
|
@ -1,3 +1,7 @@
|
|||||||
[temp]
|
[modul]
|
||||||
cron=30 * * * *
|
enabled=true
|
||||||
devices=7-0-49-1,8-0-49-1,9-0-49-1,10-0-49-1,11-0-49-1
|
config=public
|
||||||
|
|
||||||
|
; [temp]
|
||||||
|
; cron=30 * * * *
|
||||||
|
; devices=7-0-49-1,8-0-49-1,9-0-49-1,10-0-49-1,11-0-49-1
|
@ -12,11 +12,14 @@ export NAME=zwaybot
|
|||||||
export MAINAINER="BlubbFish <dev@blubbfish.net>"
|
export MAINAINER="BlubbFish <dev@blubbfish.net>"
|
||||||
export VERSION="$VMAJOR.$VMINOR-$VBUILD"
|
export VERSION="$VMAJOR.$VMINOR-$VBUILD"
|
||||||
export DESCRIPTION="Zway-Bot manage a Zwave.me installation so that it has more features"
|
export DESCRIPTION="Zway-Bot manage a Zwave.me installation so that it has more features"
|
||||||
|
export DEPENDENCIES="dotnet-runtime-3.1 (>= 3.1.22)"
|
||||||
|
|
||||||
export EXEPATH=Zway-Bot.dll
|
export EXEPATH=Zway-Bot.dll
|
||||||
|
export USERNAMEGROUP=zwaybot
|
||||||
export EXEARGUMENTS=" "
|
export EXEARGUMENTS=" "
|
||||||
export RUNNER=/usr/share/dotnet/dotnet
|
export RUNNER=/usr/share/dotnet/dotnet
|
||||||
export COPYEXEC="../bin/Release/netcoreapp3.1/*.dll ../bin/Release/netcoreapp3.1/Zway-Bot.deps.json ../bin/Release/netcoreapp3.1/Zway-Bot.runtimeconfig.json"
|
export COPYEXEC="../bin/Release/netcoreapp3.1/*.dll ../bin/Release/netcoreapp3.1/Zway-Bot.deps.json ../bin/Release/netcoreapp3.1/Zway-Bot.runtimeconfig.json"
|
||||||
|
export LOGFILE="/var/log/zwaybot/debug.log"
|
||||||
|
|
||||||
export COPYCONFIG="../bin/Release/netcoreapp3.1/config-example/*.conf"
|
export COPYCONFIG="../bin/Release/netcoreapp3.1/config-example/*.conf"
|
||||||
export CONFIGREPLACEASK="cronjob.conf mqtt.conf names.conf overtaker.conf senml.conf settings.conf statuspolling.conf"
|
export CONFIGREPLACEASK="cronjob.conf mqtt.conf names.conf overtaker.conf senml.conf settings.conf statuspolling.conf"
|
||||||
@ -24,17 +27,18 @@ export CONFIGREPLACEASK="cronjob.conf mqtt.conf names.conf overtaker.conf senml.
|
|||||||
cd ../deb
|
cd ../deb
|
||||||
export PLATFORM=armhf
|
export PLATFORM=armhf
|
||||||
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/control-build.sh | bash
|
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/control-build.sh | bash
|
||||||
|
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/logrotate-build.sh | bash
|
||||||
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/pre-post-build.sh | bash
|
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/pre-post-build.sh | bash
|
||||||
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/service-build.sh | bash
|
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/service-build.sh | bash
|
||||||
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/logrotate-build.sh | bash
|
|
||||||
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/build-deb.sh | bash
|
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/build-deb.sh | bash
|
||||||
|
|
||||||
|
|
||||||
export PLATFORM=amd64
|
export PLATFORM=amd64
|
||||||
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/control-build.sh | bash
|
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/control-build.sh | bash
|
||||||
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/build-deb.sh | bash
|
curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/build-deb.sh | bash
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
# rm deb -rf
|
rm deb -rf
|
||||||
|
|
||||||
cp Builds/* ../../Builds/
|
cp Builds/* ../../Builds/
|
||||||
rm Builds -rf
|
rm Builds -rf
|
Loading…
Reference in New Issue
Block a user