mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 20:52:13 +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:
parent
eec77b421a
commit
90405e99d6
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user