mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
59_WUup.pm: use UConv to calculate solarradiation from lux to W/m²
git-svn-id: https://svn.fhem.de/fhem/trunk@21411 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
999783d842
commit
f5e60053f5
@ -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: 59_WUup: use UConv to calculate solarradiation from lux to W/m²
|
||||||
- change: 74_AMADDevice: add logreport is attribut fhemServerIP not set
|
- change: 74_AMADDevice: add logreport is attribut fhemServerIP not set
|
||||||
- change: 93_DbRep: better logfile messages in some cases of index operation
|
- change: 93_DbRep: better logfile messages in some cases of index operation
|
||||||
- feature: 44_TEK603: new attribute "disable"
|
- feature: 44_TEK603: new attribute "disable"
|
||||||
|
@ -33,7 +33,7 @@ use HttpUtils;
|
|||||||
use UConv;
|
use UConv;
|
||||||
use FHEM::Meta;
|
use FHEM::Meta;
|
||||||
|
|
||||||
my $version = "0.9.12";
|
my $version = "0.9.13";
|
||||||
|
|
||||||
# Declare functions
|
# Declare functions
|
||||||
sub WUup_Initialize($);
|
sub WUup_Initialize($);
|
||||||
@ -280,7 +280,7 @@ sub WUup_send($) {
|
|||||||
|
|
||||||
if ( $attr{$name}{unit_solarradiation} eq "lux" ) {
|
if ( $attr{$name}{unit_solarradiation} eq "lux" ) {
|
||||||
Log3 $name, 5, "WUup ($name) - solarradiation unit is lux";
|
Log3 $name, 5, "WUup ($name) - solarradiation unit is lux";
|
||||||
$value = ( $value / 126.7 );
|
$value = UConv::lux2wpsm( $value, $rnd );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log3 $name, 5, "WUup ($name) - solarradiation unit is W/m²";
|
Log3 $name, 5, "WUup ($name) - solarradiation unit is W/m²";
|
||||||
@ -378,6 +378,7 @@ sub WUup_receive($) {
|
|||||||
# 2019-07-04 replaced link to API documentation
|
# 2019-07-04 replaced link to API documentation
|
||||||
# 2019-07-05 add Meta support
|
# 2019-07-05 add Meta support
|
||||||
# 2019-07-09 add WIKI to Meta data
|
# 2019-07-09 add WIKI to Meta data
|
||||||
|
# 2020-03-12 use UConv to calculate solarradiation from lux to W/m²
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user