2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-24 02:59:22 +00:00

50_HP1000.pm: integer for windDir_avg2m

git-svn-id: https://svn.fhem.de/fhem/trunk@12245 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2016-10-02 18:45:26 +00:00
parent eec77b421a
commit 90405e99d6

View File

@ -341,7 +341,8 @@ sub HP1000_CGI() {
# averages/windDir_avg2m
if ( defined( $webArgs->{winddir} ) ) {
my $v = HP1000_GetAvg( $hash, "winddir", 2 * 60, $webArgs->{winddir} );
my $v = sprintf( '%0.0f',
HP1000_GetAvg( $hash, "winddir", 2 * 60, $webArgs->{winddir} ) );
if ( $hash->{INTERVAL} > 0 ) {
readingsBulkUpdate( $hash, "windDir_avg2m", $v );