vitoconnect: log Verzeichnis über global konfigurierbar

git-svn-id: https://svn.fhem.de/fhem/trunk@21650 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
andreas13
2020-04-12 16:01:38 +00:00
parent 18b9e38ec8
commit ed87e56c4b

View File

@@ -145,6 +145,7 @@
# 2020-03-02 Bei Aktionen wird nicht mehr auf defined($data) sondern auf ne "" getestet.
# 2020-04-05 s.o. 2. Versuch
#
# 2020-04-09 my $dir = path(AttrVal("global","logdir","log"));
#
# ToDo: timeout konfigurierbar machen
# "set"s für Schedules zum Steuern der Heizung implementieren
@@ -1304,7 +1305,7 @@ sub vitoconnect_getGwCallback($) {
return;
}
if ($hash->{".logResponseOnce"}) {
my $dir = path("log");
my $dir = path(AttrVal("global","logdir","log"));
my $file = $dir->child("gw.json");
my $file_handle = $file->openw_utf8();
$file_handle->print(Dumper($decode_json));
@@ -1364,7 +1365,7 @@ sub vitoconnect_getResourceCallback($) {
###########################################
if ($hash->{".logResponseOnce"}) {
my $dir = path("log");
my $dir = path(AttrVal("global","logdir","log"));
my $file = $dir->child("entities.json");
my $file_handle = $file->openw_utf8();
#$file_handle->print(Dumper($items));