From eeb301c62b4c6adfc537fddde58e22d39a821eed Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 18 Dec 2012 10:34:14 +0000 Subject: [PATCH] hiddengroup added (by Ralf) git-svn-id: https://svn.fhem.de/fhem/trunk@2345 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 739aebbee..79d55558d 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -96,6 +96,7 @@ my %FW_types; # device types, for sorting my @FW_zoom; # "qday", "day","week","month","year" my %FW_zoom; # the same as @FW_zoom my %FW_hiddenroom; # hash of hidden rooms +my %FW_hiddengroup;# hash of hidden groups my $FW_longpoll; # Set if longpoll (i.e. server notification) is active my $FW_inform; my $FW_XHR; # Data only answer, no HTML @@ -126,7 +127,7 @@ FHEMWEB_Initialize($) $hash->{AttrList}= "loglevel:0,1,2,3,4,5,6 webname fwmodpath fwcompress:0,1 ". "plotmode:gnuplot,gnuplot-scroll,SVG plotsize refresh " . "touchpad smallscreen plotfork basicAuth basicAuthMsg ". - "stylesheetPrefix iconpath hiddenroom HTTPS longpoll:1,0 ". + "stylesheetPrefix iconpath hiddenroom hiddengroup HTTPS longpoll:1,0 ". "redirectCmds:0,1 reverseLogs:0,1 allowfrom CORS:0,1"; ############### @@ -1045,7 +1046,11 @@ sub FW_showRoom() { return if(!$FW_room); - + + %FW_hiddengroup = (); + foreach my $r (split(",",AttrVal($FW_wname, "hiddengroup", ""))) { + $FW_hiddengroup{$r} = 1; + } FW_pO "
"; FW_pO "
"; @@ -1061,6 +1066,7 @@ FW_showRoom() foreach my $dev (@devs) { next if($defs{$dev}{TYPE} eq "weblink" && !AttrVal($dev, "group", undef)); foreach my $grp (split(",", AttrVal($dev, "group", $FW_types{$dev}))) { + next if($FW_hiddengroup{$grp}); $group{$grp}{$dev} = 1; } } @@ -2844,7 +2850,7 @@ FW_closeOldClients()
  • hiddenroom
    - Komma separated list of rooms to "hide", i.e. not to show. Special + Comma separated list of rooms to "hide", i.e. not to show. Special values are input, detail and save, in which case the input areas, link to the detailed views or save button is hidden (although each aspect still can be addressed through url manipulation).
    @@ -2853,6 +2859,15 @@ FW_closeOldClients()

  • + +
  • hiddengroup
    + Comma separated list of groups to "hide", i.e. not to show in any room + of this FHEMWEB instance.
    + Example: attr WEBtablet hiddengroup FileLog,dummy,at,notify +
  • +
    + +
  • longpoll
    Affects devices states in the room overview only.