';
$ret .= '';
- $cnt++;$ret .= ' $hash->{helper}{mower}{attributes}{statistics}{numberOfChargingCycles} | ' . $hash->{helper}{mower}{attributes}{statistics}{numberOfChargingCycles} . ' | |
';
- $cnt++;$ret .= ' $hash->{helper}{mower}{attributes}{statistics}{numberOfCollisions} | ' . $hash->{helper}{mower}{attributes}{statistics}{numberOfCollisions} . ' | |
';
- $cnt++;$ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalChargingTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalChargingTime} / 3600 ) . ' | h |
';
- $cnt++;$ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalCuttingTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalCuttingTime} / 3600 ) . ' | h |
';
- $cnt++;$ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalRunningTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalRunningTime} / 3600 ) . '1 | h |
';
- $cnt++;$ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalSearchingTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalSearchingTime} / 3600 ) . ' | h |
';
+ $ret .= ' $hash->{helper}{mower}{attributes}{statistics}{numberOfChargingCycles} | ' . $hash->{helper}{mower}{attributes}{statistics}{numberOfChargingCycles} . ' | |
';
+ $ret .= ' $hash->{helper}{mower}{attributes}{statistics}{numberOfCollisions} | ' . $hash->{helper}{mower}{attributes}{statistics}{numberOfCollisions} . ' | |
';
+ $ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalChargingTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalChargingTime} / 3600 ) . ' | h |
';
+ $ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalCuttingTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalCuttingTime} / 3600 ) . ' | h |
';
+ $ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalRunningTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalRunningTime} / 3600 ) . '1 | h |
';
+ $ret .= ' $hash->{helper}{mower}{attributes}{statistics}{totalSearchingTime} | ' . sprintf( "%.0f", $hash->{helper}{mower}{attributes}{statistics}{totalSearchingTime} / 3600 ) . ' | h |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{currentDayTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentDayTrack} ) . ' | m |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{currentDayArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentDayArea} ) . ' | qm |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{currentDayTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentDayTime} ) . ' | s |
';
- $cnt++;$ret .= ' calculated speed | ' . sprintf( "%.2f", $hash->{helper}{statistics}{currentDayTrack} / $hash->{helper}{statistics}{currentDayTime} ) . ' | m/s |
' if ( $hash->{helper}{statistics}{currentDayTime} );
+ $ret .= ' $hash->{helper}{statistics}{currentDayTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentDayTrack} ) . ' | m |
';
+ $ret .= ' $hash->{helper}{statistics}{currentDayArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentDayArea} ) . ' | qm |
';
+ $ret .= ' $hash->{helper}{statistics}{currentDayTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentDayTime} ) . ' | s |
';
+ $ret .= ' $hash->{helper}{statistics}{currentDayCollisions} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentDayCollisions} ) . ' | |
' if ( $additional_polling );
+ $ret .= ' calculated speed | ' . sprintf( "%.2f", $hash->{helper}{statistics}{currentDayTrack} / $hash->{helper}{statistics}{currentDayTime} ) . ' | m/s |
' if ( $hash->{helper}{statistics}{currentDayTime} );
- $cnt++;$ret .= ' $hash->{helper}{statistics}{lastDayTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayTrack} ) . ' | m |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{lastDayArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayArea} ) . ' | qm |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{lastDayTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayTime} ) . ' | s |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{lastDayCollisions} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayCollisions} ) . ' | |
';
- $cnt++;$ret .= ' last day calculated speed | ' . sprintf( "%.2f", $hash->{helper}{statistics}{lastDayTrack} / $hash->{helper}{statistics}{lastDayTime} ) . ' | m/s |
' if ( $hash->{helper}{statistics}{lastDayTime} );
+ $ret .= ' $hash->{helper}{statistics}{lastDayTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayTrack} ) . ' | m |
';
+ $ret .= ' $hash->{helper}{statistics}{lastDayArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayArea} ) . ' | qm |
';
+ $ret .= ' $hash->{helper}{statistics}{lastDayTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayTime} ) . ' | s |
';
+ $ret .= ' $hash->{helper}{statistics}{lastDayCollisions} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastDayCollisions} ) . ' | |
';
+ $ret .= ' last day calculated speed | ' . sprintf( "%.2f", $hash->{helper}{statistics}{lastDayTrack} / $hash->{helper}{statistics}{lastDayTime} ) . ' | m/s |
' if ( $hash->{helper}{statistics}{lastDayTime} );
- $cnt++;$ret .= ' $hash->{helper}{statistics}{currentWeekTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentWeekTrack} ) . ' | m |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{currentWeekArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentWeekArea} ) . ' | qm |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{currentWeekTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentWeekTime} ) . ' | s |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{lastWeekTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastWeekTrack} ) . ' | m |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{lastWeekArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastWeekArea} ) . ' | qm |
';
- $cnt++;$ret .= ' $hash->{helper}{statistics}{lastWeekTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastWeekTime} ) . ' | s |
';
+ $ret .= ' $hash->{helper}{statistics}{currentWeekTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentWeekTrack} ) . ' | m |
';
+ $ret .= ' $hash->{helper}{statistics}{currentWeekArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentWeekArea} ) . ' | qm |
';
+ $ret .= ' $hash->{helper}{statistics}{currentWeekTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{currentWeekTime} ) . ' | s |
';
+ $ret .= ' $hash->{helper}{statistics}{lastWeekTrack} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastWeekTrack} ) . ' | m |
';
+ $ret .= ' $hash->{helper}{statistics}{lastWeekArea} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastWeekArea} ) . ' | qm |
';
+ $ret .= ' $hash->{helper}{statistics}{lastWeekTime} | ' . sprintf( "%.0f", $hash->{helper}{statistics}{lastWeekTime} ) . ' | s |
';
if ( AttrVal($name, 'mapZones', 0) && defined( $hash->{helper}{mapZones} ) ) {
- my @zonekeys = sort (keys %{$hash->{helper}{mapZones}});
+ my @zonekeys = sort (keys %{$hash->{helper}{mapZones}});
- for ( @zonekeys ) {
+ if ( $additional_polling ) {
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentDayCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentDayCntPct} ? $hash->{helper}{mapZones}{$_}{currentDayCntPct} : '' ) . ' | % |
';
+ for ( @zonekeys ) {
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentDayCollisions} | ' . ( $hash->{helper}{mapZones}{$_}{currentDayCollisions} ? $hash->{helper}{mapZones}{$_}{currentDayCollisions} : '' ) . ' | |
';
+
+ }
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentDayCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentDayCntPct} ? $hash->{helper}{mapZones}{$_}{currentDayCntPct} : '' ) . ' | % |
';
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastDayCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastDayCntPct} ? $hash->{helper}{mapZones}{$_}{lastDayCntPct} : '' ) . ' | % |
';
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentWeekCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentWeekCntPct} ? $hash->{helper}{mapZones}{$_}{currentWeekCntPct} : '' ) . ' | % |
';
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastWeekCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastWeekCntPct} ? $hash->{helper}{mapZones}{$_}{lastWeekCntPct} : '' ). ' | % |
';
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentDayAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentDayAreaPct} ? $hash->{helper}{mapZones}{$_}{currentDayAreaPct} : '' ) . ' | % |
';
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastDayAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastDayAreaPct} ? $hash->{helper}{mapZones}{$_}{lastDayAreaPct} : '' ) . ' | % |
';
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentWeekAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentWeekAreaPct} ? $hash->{helper}{mapZones}{$_}{currentWeekAreaPct} : '' ) . ' | % |
';
+
+ }
+
+ for ( @zonekeys ) {
+
+
+ $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastWeekAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastWeekAreaPct} ? $hash->{helper}{mapZones}{$_}{lastWeekAreaPct} : '' ). ' | % |
';
+
+ }
}
- for ( @zonekeys ) {
-
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastDayCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastDayCntPct} ? $hash->{helper}{mapZones}{$_}{lastDayCntPct} : '' ) . ' | % |
';
-
- }
-
- for ( @zonekeys ) {
-
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentWeekCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentWeekCntPct} ? $hash->{helper}{mapZones}{$_}{currentWeekCntPct} : '' ) . ' | % |
';
-
- }
-
- for ( @zonekeys ) {
-
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastWeekCntPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastWeekCntPct} ? $hash->{helper}{mapZones}{$_}{lastWeekCntPct} : '' ). ' | % |
';
-
- }
-
- for ( @zonekeys ) {
-
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentDayAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentDayAreaPct} ? $hash->{helper}{mapZones}{$_}{currentDayAreaPct} : '' ) . ' | % |
';
-
- }
-
- for ( @zonekeys ) {
-
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastDayAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastDayAreaPct} ? $hash->{helper}{mapZones}{$_}{lastDayAreaPct} : '' ) . ' | % |
';
-
- }
-
- for ( @zonekeys ) {
-
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{currentWeekAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{currentWeekAreaPct} ? $hash->{helper}{mapZones}{$_}{currentWeekAreaPct} : '' ) . ' | % |
';
-
- }
-
- for ( @zonekeys ) {
-
- $cnt++;
- $ret .= ' $hash->{helper}{mapZones}{' . $_ . '}{lastWeekAreaPct} | ' . ( $hash->{helper}{mapZones}{$_}{lastWeekAreaPct} ? $hash->{helper}{mapZones}{$_}{lastWeekAreaPct} : '' ). ' | % |
';
-
- }
-
- }
-
$ret .= '';
$ret .= '