mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 03:44:52 +00:00
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:
parent
6afba7e7ee
commit
9fef86af24
@ -453,7 +453,7 @@ __END__
|
||||
<code>attr <name> mowingAreaHull <use button 'mowingAreaHullToAttribute' to fill the attribute></code><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>
|
||||
Use the design attribute 'hullResolution' to change the number of fractions ℕ<sub>0</sub><br>.
|
||||
Use the design attribute 'hullResolution' to change the number of fractions ℕ<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 of hull is stopped when the attribute ist set and starts again when attribute is deleted.<br>
|
||||
@ -894,7 +894,7 @@ __END__
|
||||
<code>attr <name> mowingAreaHull <use button 'mowingAreaHullToAttribute' to fill the attribute></code><br><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>
|
||||
Mit dem Designattribut 'hullResolution' kann die Anzahl der Brechungen beeinflusst werden ℕ<sub>0</sub>, Default 40.<br>
|
||||
Mit dem Designattribut 'hullResolution' kann die Anzahl der Brechungen beeinflusst werden ℕ, 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>
|
||||
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>
|
||||
|
@ -2777,7 +2777,7 @@ sub getDesignAttr {
|
||||
my $hsh = '';
|
||||
my $val = '';
|
||||
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 @mergedDesign = map { "$_=$desDef->{$_}" } sort keys %desDef;
|
||||
my $design = 'data-' . join( 'data-', @mergedDesign );
|
||||
|
Loading…
x
Reference in New Issue
Block a user