74_AutomowerConnect.pm: correct merge of design attributes

git-svn-id: https://svn.fhem.de/fhem/trunk@28773 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert
2024-04-08 21:37:26 +00:00
parent 6267c3b2c2
commit 04b888bc30
2 changed files with 3 additions and 3 deletions

View File

@@ -453,7 +453,7 @@ __END__
<code>attr &lt;name&gt; mowingAreaHull &lt;use button 'mowingAreaHullToAttribute' to fill the attribute&gt;</code><br> <code>attr &lt;name&gt; mowingAreaHull &lt;use button 'mowingAreaHullToAttribute' to fill the attribute&gt;</code><br>
Contains the calculated hull coordinates as JSON string and is set by button 'mowingAreaHullToAttribute' under the dislpayed map.<br> Contains the calculated hull coordinates as JSON string and is set by button 'mowingAreaHullToAttribute' under the dislpayed map.<br>
The stored hull polygon is displayed like the other limits.<br> The stored hull polygon is displayed like the other limits.<br>
Use the design attribute 'hullResolution' to change the number of fractions &#8469;<sub>0</sub><br>. Use the design attribute 'hullResolution' to change the number of fractions &#8469;<br>.
The hull polygon is calculated when the design attribut is set to 1 <code>hullCalculate="1"</code> and there are more than 50 Points for activity MOWING.<br> The hull polygon is calculated when the design attribut is set to 1 <code>hullCalculate="1"</code> and there are more than 50 Points for activity MOWING.<br>
The calculation is done only after site reload.<br> The calculation is done only after site reload.<br>
The calculation of hull is stopped when the attribute ist set and starts again when attribute is deleted.<br> The calculation of hull is stopped when the attribute ist set and starts again when attribute is deleted.<br>
@@ -894,7 +894,7 @@ __END__
<code>attr &lt;name&gt; mowingAreaHull &lt;use button 'mowingAreaHullToAttribute' to fill the attribute&gt;</code><br><br> <code>attr &lt;name&gt; mowingAreaHull &lt;use button 'mowingAreaHullToAttribute' to fill the attribute&gt;</code><br><br>
Enthält die berechneten Hüllenkooordinaten als JSON String und wird gesetzt durch den Button 'mowingAreaHullToAttribute' unterhalb der angezeigten Karte.<br> Enthält die berechneten Hüllenkooordinaten als JSON String und wird gesetzt durch den Button 'mowingAreaHullToAttribute' unterhalb der angezeigten Karte.<br>
Das gespeicherte Hüllenpolygon wird wie die anderen Grenzen angezeigt.<br> Das gespeicherte Hüllenpolygon wird wie die anderen Grenzen angezeigt.<br>
Mit dem Designattribut 'hullResolution' kann die Anzahl der Brechungen beeinflusst werden &#8469;<sub>0</sub>, Default 40.<br> Mit dem Designattribut 'hullResolution' kann die Anzahl der Brechungen beeinflusst werden &#8469;, Default 40.<br>
Das Hüllenpolygon wird berechnet wenn das Designattribute gesetzt ist, <code>hullCalculate="1"</code> und es mehr als 50 Wegpunkte der Aktivität MOWING gibt.<br> Das Hüllenpolygon wird berechnet wenn das Designattribute gesetzt ist, <code>hullCalculate="1"</code> und es mehr als 50 Wegpunkte der Aktivität MOWING gibt.<br>
Die Berechnung wird beim Laden oder Wiederladen der Website ausgeführt.<br> Die Berechnung wird beim Laden oder Wiederladen der Website ausgeführt.<br>
Die Berechnung stopt wenn dieses Attribut gesetzt ist und startet wenn das Attibut gelöst wird.<br> Die Berechnung stopt wenn dieses Attribut gesetzt ist und startet wenn das Attibut gelöst wird.<br>

View File

@@ -2777,7 +2777,7 @@ sub getDesignAttr {
my $hsh = ''; my $hsh = '';
my $val = ''; my $val = '';
my %desDef = map { ( $hsh, $val ) = $_ =~ /(.*)=(.*)/; $hsh => $val } @designDefault; my %desDef = map { ( $hsh, $val ) = $_ =~ /(.*)=(.*)/; $hsh => $val } @designDefault;
%desDef = map { ( $hsh, $val ) = $_ =~ /(.*)=(.*)/; $hsh => $val } @designAttr; %desDef = ( %desDef, map { ( $hsh, $val ) = $_ =~ /(.*)=(.*)/; $hsh => $val } @designAttr );
my $desDef = \%desDef; my $desDef = \%desDef;
my @mergedDesign = map { "$_=$desDef->{$_}" } sort keys %desDef; my @mergedDesign = map { "$_=$desDef->{$_}" } sort keys %desDef;
my $design = 'data-' . join( 'data-', @mergedDesign ); my $design = 'data-' . join( 'data-', @mergedDesign );