From ad80dde2703c28291895dc261582eba45d1a6d85 Mon Sep 17 00:00:00 2001 From: Ellert <> Date: Fri, 23 Feb 2018 13:16:23 +0000 Subject: [PATCH] 98_DOIFtools.pm: support for multiple holiday files in holiday2we for next timer calculation. git-svn-id: https://svn.fhem.de/fhem/trunk@16245 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/98_DOIFtools.pm | 31 +++++++++++++++++-------------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 0af0aa421..93a09c5e0 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 98_DOIFtools: support for multiple holiday files in holiday2we for + next timer calculation - change: 53_GHoma: plugs with energy measurement implemented reading energy now in kWh / SetExtensions / DbLog_splitFn - change: 93_DbRep: commandref revised diff --git a/fhem/FHEM/98_DOIFtools.pm b/fhem/FHEM/98_DOIFtools.pm index 5534bf4b0..85b259a2e 100644 --- a/fhem/FHEM/98_DOIFtools.pm +++ b/fhem/FHEM/98_DOIFtools.pm @@ -23,6 +23,7 @@ use strict; use warnings; use Time::Local; use Color; +use vars qw(%FW_rooms %FW_groups); sub DOIFtools_Initialize($); sub DOIFtools_Set($@); @@ -45,7 +46,7 @@ sub DOIFtools_logWrapper($); sub DOIFtoolsCounterReset($); sub DOIFtoolsDeleteStatReadings; -my @DOIFtools_we = [0,0,0,0,0,0,0,0]; +my @DOIFtools_we = (0,0,0,0,0,0,0,0); my $DOIFtoolsJSfuncEM = <<'EOF';