\n";
@@ -298,11 +319,12 @@ sub DashboardAsHtml($)
##############################################################################################
for (my $t=0;$t<$tabcount;$t++){
- my @tabgroup = split(",", $tabgroups[$t]); #Set temp. position for groups without an stored position
+ my @tabgroup = split(",", $tabgroups[$t]); #Set temp. position for groups without an stored position
for (my $i=0;$i<@tabgroup;$i++){
my @stabgroup = split(":", trim($tabgroup[$i]));
- if (index($tabsortings[$t],trim($stabgroup[$i])) < 0) { $tabsortings[$t] = $tabsortings[$t]."t".$t."c".GetMaxColumnId($row,$colcount).",".trim($stabgroup[$i]).",true,0,0:"; }
+ if (index($tabsortings[$t],trim($stabgroup[0])) < 0) { $tabsortings[$t] = $tabsortings[$t]."t".$t."c".GetMaxColumnId($row,$colcount).",".trim($stabgroup[0]).",true,0,0:"; }
}
+
%group = BuildGroupList($tabgroups[$t]);
$ret .= "
\n";
$ret .= "
\n";
@@ -392,37 +414,37 @@ sub BuildButtonBar($$$){
}
sub BuildGroupWidgets($$$$$) {
- my ($tab,$column,$id,$dbgroups, $dbsorting) = @_;
- my $ret = "";
+ my ($tab,$column,$id,$dbgroups, $dbsorting) = @_;
+ my $ret = "";
- my $counter = 0;
- my @storedsorting = split(":", $dbsorting);
-
- my @dbgroup = split(",", $dbgroups);
- my $widgetheader = "";
+ my $counter = 0;
+ my @storedsorting = split(":", $dbsorting);
+ my @dbgroup = split(",", $dbgroups);
+ my $widgetheader = "";
foreach my $singlesorting (@storedsorting) {
- my @groupdata = split(",", $singlesorting);
-
- if (index($dbsorting, "t".$tab."c".$column.",".$groupdata[1]) >= 0 && index($dbgroups, $groupdata[1]) >= 0 && $groupdata[1] ne "" ) { #group is set to tab
-
- $widgetheader = $groupdata[1];
- foreach my $strdbgroup (@dbgroup) {
- my @groupicon = split(":", trim($strdbgroup));
- if ($groupicon[0] eq $groupdata[1]) {
- if ($#groupicon > 0) { $widgetheader = FW_makeImage($groupicon[1],$groupicon[1],"dashboard_tabicon") . " ".$groupdata[1]; }
- }
- }
+ my @groupdata = split(",", $singlesorting);
+ if (scalar(@groupdata) > 1) {
+ if (index($dbsorting, "t".$tab."c".$column.",".$groupdata[1]) >= 0 && index($dbgroups, $groupdata[1]) >= 0 && $groupdata[1] ne "" ) { #group is set to tab
- $ret .= "
", ($row&1)?"odd":"even");
my $type = $defs{$d}{TYPE};
@@ -606,12 +630,6 @@ sub CheckDashboardAttributUssage($) { # replaces old disused attributes and thei
{ FW_fC("deleteattr ".$d." dashboard_colwidth"); }
$detailnote = $detailnote." [dashboard_colwidth -> dashboard_rowcentercolwidth]";
}
- my $colheight = AttrVal($defs{$d}{NAME}, "dashboard_colheight", "");
- if ($colheight ne "") {
- { FW_fC("attr ".$d." dashboard_rowcenterheight ".$colheight); }
- { FW_fC("deleteattr ".$d." dashboard_colheight"); }
- $detailnote = $detailnote." [dashboard_colheight -> dashboard_rowcenterheight]";
- }
my $sorting = AttrVal($defs{$d}{NAME}, "dashboard_sorting", "");
if ($sorting ne "") { #convert old sorting in new
my @sortings = split(":", $sorting);
@@ -814,6 +832,16 @@ sub Dashboard_attr($$$) {
Title of Tab 5.
Default: Dashboard-Tab 5
+
+
dashboard_tab6name
+ Title of Tab 6.
+ Default: Dashboard-Tab 6
+
+
+
dashboard_tab7name
+ Title of Tab 7.
+ Default: Dashboard-Tab 7
+
dashboard_webfrontendfilter
If this attribute not set, or value is * the dashboard is displayed on all configured FHEMWEB instances.
@@ -849,7 +877,15 @@ sub Dashboard_attr($$$) {
dashboard_tab5sorting
Contains the position of each group in Tab 5. Value is written by the "Set" button. It is not recommended to take manual changes.
-
+
+
dashboard_tab6sorting
+ Contains the position of each group in Tab 6. Value is written by the "Set" button. It is not recommended to take manual changes.
+
+
+
dashboard_tab7sorting
+ Contains the position of each group in Tab 7. Value is written by the "Set" button. It is not recommended to take manual changes.
+
+
dashboard_row
To select which rows are displayed. top only; center only; bottom only; top and center; center and bottom; top,center and bottom.
Default: center
@@ -865,11 +901,6 @@ sub Dashboard_attr($$$) {
dashboard_rowcentercolwidth
Default: 320
-
-
dashboard_colheight
- This attribute is no longer used and will be removed at a later date. It was replaced with
- dashboard_rowcenterheight
-
dashboard_rowcenterheight
Height of the center row in which the groups may be positioned.
@@ -901,29 +932,41 @@ sub Dashboard_attr($$$) {
Example: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
-
dashboard_tab1groups
+
2
Comma-separated list of the names of the groups to be displayed in Tab 2.
Each group can be given an icon for this purpose the group name, the following must be completed ":<icon>@<color>"
Example: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
-
dashboard_tab1groups
+
dashboard_tab3groups
Comma-separated list of the names of the groups to be displayed in Tab 3.
Each group can be given an icon for this purpose the group name, the following must be completed ":<icon>@<color>"
Example: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
-
dashboard_tab1groups
+
dashboard_tab4groups
Comma-separated list of the names of the groups to be displayed in Tab 4.
Each group can be given an icon for this purpose the group name, the following must be completed ":<icon>@<color>"
Example: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
-
dashboard_tab1groups
+
dashboard_tab5groups
Comma-separated list of the names of the groups to be displayed in Tab 5.
Each group can be given an icon for this purpose the group name, the following must be completed ":<icon>@<color>"
Example: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
+
+
dashboard_tab6groups
+ Comma-separated list of the names of the groups to be displayed in Tab 6.
+ Each group can be given an icon for this purpose the group name, the following must be completed ":<icon>@<color>"
+ Example: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
+
+
+
dashboard_tab7groups
+ Comma-separated list of the names of the groups to be displayed in Tab 7.
+ Each group can be given an icon for this purpose the group name, the following must be completed ":<icon>@<color>"
+ Example: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
+
dashboard_tab1icon
Set the icon for a Tab. There must exist an icon with the name ico.png in the modpath directory. If the image is referencing an SVG icon, then you can use the @colorname suffix to color the image.
@@ -944,6 +987,14 @@ sub Dashboard_attr($$$) {
dashboard_tab5icon
Set the icon for a Tab. There must exist an icon with the name ico.png in the modpath directory. If the image is referencing an SVG icon, then you can use the @colorname suffix to color the image.
+
+
dashboard_tab6icon
+ Set the icon for a Tab. There must exist an icon with the name ico.png in the modpath directory. If the image is referencing an SVG icon, then you can use the @colorname suffix to color the image.
+
+
+
dashboard_tab7icon
+ Set the icon for a Tab. There must exist an icon with the name ico.png in the modpath directory. If the image is referencing an SVG icon, then you can use the @colorname suffix to color the image.
+
dashboard_lockstate
When set to "unlock" you can edit the Dashboard. When set to "lock" no change can be made.
@@ -1063,6 +1114,16 @@ sub Dashboard_attr($$$) {
dashboard_tab5name
Titel des 5. Tab.
Standard: Dashboard-Tab 5
+
+
+
dashboard_tab6name
+ Titel des 6. Tab.
+ Standard: Dashboard-Tab 6
+
+
+
dashboard_tab7name
+ Titel des 7. Tab.
+ Standard: Dashboard-Tab 7
dashboard_webfrontendfilter
@@ -1098,6 +1159,14 @@ sub Dashboard_attr($$$) {
dashboard_tab5sorting
Enthält die Poistionierung jeder Gruppe im Tab 5. Der Wert wird mit der Schaltfläche "Set" geschrieben. Es wird nicht empfohlen dieses Attribut manuelle zu ändern
+
+
+
dashboard_tab6sorting
+ Enthält die Poistionierung jeder Gruppe im Tab 6. Der Wert wird mit der Schaltfläche "Set" geschrieben. Es wird nicht empfohlen dieses Attribut manuelle zu ändern
+
+
+
dashboard_tab7sorting
+ Enthält die Poistionierung jeder Gruppe im Tab 7. Der Wert wird mit der Schaltfläche "Set" geschrieben. Es wird nicht empfohlen dieses Attribut manuelle zu ändern
dashboard_colheight
- Dieses Attribut ist nicht mehr zu verwenden und wird zu einem späteren Zeitpunkt entfernt. Es wurde ersetzt durch
- dashboard_rowcenterheight
-
dashboard_rowcenterheight
Höhe der mittleren Zeile, in der die Gruppen angeordnet werden.
@@ -1174,6 +1238,18 @@ sub Dashboard_attr($$$) {
Jede Gruppe kann zusätzlich ein Icon anzeigen, dazu muss der Gruppen name um ":<icon>@<farbe>"ergänzt werden
Beispiel: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
+
+
dashboard_tab6groups
+ Durch Komma getrennte Liste mit den Namen der Gruppen, die im Tab 6 angezeigt werden. Falsche Gruppennamen werden hervorgehoben.
+ Jede Gruppe kann zusätzlich ein Icon anzeigen, dazu muss der Gruppen name um ":<icon>@<farbe>"ergänzt werden
+ Beispiel: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
+
+
+
dashboard_tab7groups
+ Durch Komma getrennte Liste mit den Namen der Gruppen, die im Tab 7 angezeigt werden. Falsche Gruppennamen werden hervorgehoben.
+ Jede Gruppe kann zusätzlich ein Icon anzeigen, dazu muss der Gruppen name um ":<icon>@<farbe>"ergänzt werden
+ Beispiel: Light:Icon_Fisch@blue,AVIcon_Fisch@red,Single Lights:Icon_Fisch@yellow
+
dashboard_tab1icon
Zeigt am Tab ein Icon an. Es muss sich dabei um ein exisitereindes Icon mit modpath Verzeichnis handeln. Handelt es sich um ein SVG Icon kann der Suffix @colorname für die Farbe des Icons angegeben werden.
@@ -1194,6 +1270,14 @@ sub Dashboard_attr($$$) {
dashboard_tab5icon
Zeigt am Tab ein Icon an. Es muss sich dabei um ein exisitereindes Icon mit modpath Verzeichnis handeln. Handelt es sich um ein SVG Icon kann der Suffix @colorname für die Farbe des Icons angegeben werden.
+
+
dashboard_tab6icon
+ Zeigt am Tab ein Icon an. Es muss sich dabei um ein exisitereindes Icon mit modpath Verzeichnis handeln. Handelt es sich um ein SVG Icon kann der Suffix @colorname für die Farbe des Icons angegeben werden.
+
+
+
dashboard_tab7icon
+ Zeigt am Tab ein Icon an. Es muss sich dabei um ein exisitereindes Icon mit modpath Verzeichnis handeln. Handelt es sich um ein SVG Icon kann der Suffix @colorname für die Farbe des Icons angegeben werden.
+