mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
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:
parent
ae7fc2ae02
commit
74c3993e7d
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user