From afc6da90200e241ac0c92e1a54915bf6cdbdb925 Mon Sep 17 00:00:00 2001 From: Ellert <> Date: Tue, 14 Mar 2017 17:42:55 +0000 Subject: [PATCH] 98_DOIFtools.pm: Improved DOIF-Operand derivation from an event line if the event monitor is opend in DOIFs detail view. Improved dialog to insert the selected operand in a definition. see https://wiki.fhem.de/wiki/DOIFtools#DOIF-Operanden_aus_einer_Eventzeile_erzeugen git-svn-id: https://svn.fhem.de/fhem/trunk@13702 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 3 + fhem/FHEM/98_DOIFtools.pm | 134 ++++++++++++++++++++++++++++---------- 2 files changed, 104 insertions(+), 33 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 06d8f5ae4..f7cb60cef 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,8 @@ # 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. + - update: 98_DOIFtools: Improved DOIF-Operand derivation from an event line + if the event monitor is opend in DOIFs detail view. + Improved dialog to insert the selected operand in a definition - new: 31_PLAYBULB: Integrates different smart lights from MIPOW and displays several settings - bugfix: 00_SONOS: Errorhandling for RadioName etc. diff --git a/fhem/FHEM/98_DOIFtools.pm b/fhem/FHEM/98_DOIFtools.pm index 1992b18e5..5763cdcd1 100644 --- a/fhem/FHEM/98_DOIFtools.pm +++ b/fhem/FHEM/98_DOIFtools.pm @@ -48,42 +48,106 @@ my @DOIFtools_we =(); my $DOIFtoolsJSfuncEM = <<'EOF'; "; # $ret .= ""; my $filter = $a ? ($a eq "log" ? "global" : $a) : ".*"; @@ -409,7 +475,7 @@ sub DOIFtools_fhemwebFn($$$$) { ($a && $a eq "log" ? " checked":"").">". "  \n"; $ret .= "
"; - $ret .= ""; + $ret .= ""; $ret .= "
"; $ret .= $DOIFtoolsJSfuncEM; } @@ -1336,7 +1402,8 @@ DOIFtools contains tools to support DOIF.
  • lists every DOIF definition in probably associated with.
  • access to DOIFtools from any DOIF device via probably associated with
  • access from DOIFtools to existing DOIFtoolsLog logfiles
  • -
  • show event monitor in device overview and optionally DOIF
  • +
  • show event monitor in device detail view and optionally in DOIFs detail view
  • +
  • convert events to DOIF operands, a selected operand is copied to clipboard and the DEF editor will open
  • check definitions and offer recommendations
  • create shortcuts
  • optionally create a menu entry
  • @@ -1370,6 +1437,7 @@ DOIFtools stellt Funktionen zur Unterstützung von DOIF-Geräten bereit.
  • Zugriff aus DOIFtools auf vorhandene DOIFtoolsLog-Logdateien.
  • zeigt den Event Monitor in der Detailansicht von DOIFtools.
  • ermöglicht den Zugriff auf den Event Monitor in der Detailansicht von DOIF.
  • +
  • erzeugt DOIF-Operanden aus einer Event-Zeile des Event-Monitors, ein gewählter Operand wird in die Zwischenablage kopiert und kann im DEF-Editor in die Definition eingefügt werden.
  • prüfen der DOIF Definitionen mit Empfehlungen.
  • erstellen von Shortcuts
  • optionalen Menüeintrag erstellen