mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
10_WS980: fix num vs string
git-svn-id: https://svn.fhem.de/fhem/trunk@23510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
316deaa6c9
commit
3c1226f06e
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- change: 10_WS980: fix num vs. string
|
||||||
- change: 55_DWD_OpenData: logging (forum #83097 msg #1114070)
|
- change: 55_DWD_OpenData: logging (forum #83097 msg #1114070)
|
||||||
- feature: 74_Unifi: get deviceData hinzugefügt
|
- feature: 74_Unifi: get deviceData hinzugefügt
|
||||||
- feature: 74_UnifiSwitch: new setter portProfile
|
- feature: 74_UnifiSwitch: new setter portProfile
|
||||||
|
@ -33,7 +33,7 @@ use warnings;
|
|||||||
use IO::Socket::INET;
|
use IO::Socket::INET;
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
my $version = "1.2.0";
|
my $version = "1.2.1";
|
||||||
|
|
||||||
#------------------------------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------------------------------
|
||||||
# global constants
|
# global constants
|
||||||
@ -1006,10 +1006,10 @@ sub WS980_updateRelPressure($)
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $relPressure = WS980_calculateRelPressure_QFF(
|
my $relPressure = WS980_calculateRelPressure_QFF(
|
||||||
ReadingsVal($name, "temperature", 0.0),
|
ReadingsNum($name, "temperature", 0.0),
|
||||||
ReadingsVal($name, "pressureAbs", 0.0),
|
ReadingsNum($name, "pressureAbs", 0.0),
|
||||||
$altitude,
|
$altitude,
|
||||||
ReadingsVal($name, "humidity", 0.0));
|
ReadingsNum($name, "humidity", 0.0));
|
||||||
|
|
||||||
readingsSingleUpdate($hash, "pressureRel_calculated", sprintf("%.1f", $relPressure), 1);
|
readingsSingleUpdate($hash, "pressureRel_calculated", sprintf("%.1f", $relPressure), 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user