2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

59_WUup: V0.9.6, calculate solarradiation from lux to W/m²

git-svn-id: https://svn.fhem.de/fhem/trunk@16447 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mahowi 2018-03-19 19:26:54 +00:00
parent 57bf667a68
commit 7628fcaa18
2 changed files with 10 additions and 3 deletions

View File

@ -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.
- feature: 59_WUup: V0.9.6, calculate solarradiation from lux to W/m²
- feature: 73_AMADCommBridge: fix Commandref, add allowfrom support - feature: 73_AMADCommBridge: fix Commandref, add allowfrom support
- bugfix: 74_XiaomiBTLESens: Backslash found where operator expected - bugfix: 74_XiaomiBTLESens: Backslash found where operator expected
- bugfix: 98_TRAFFIC: v1.3.7, fixed special characters and updateschedule - bugfix: 98_TRAFFIC: v1.3.7, fixed special characters and updateschedule

View File

@ -32,7 +32,7 @@ use Time::HiRes qw(gettimeofday);
use HttpUtils; use HttpUtils;
use UConv; use UConv;
my $version = "0.9.5"; my $version = "0.9.6";
# Declare functions # Declare functions
sub WUup_Initialize($); sub WUup_Initialize($);
@ -258,6 +258,9 @@ sub WUup_send($) {
elsif ( $key =~ /.*rainin$/ ) { elsif ( $key =~ /.*rainin$/ ) {
$value = UConv::mm2in( $value, 4 ); $value = UConv::mm2in( $value, 4 );
} }
elsif ( $key eq "solarradiation" ) {
$value = ( $value / 126.7 );
}
$data .= "&$key=$value"; $data .= "&$key=$value";
} }
@ -343,6 +346,7 @@ sub WUup_receive($) {
# timeout raised to 6s, fixed state error (thanks to mumpitzstuff) # timeout raised to 6s, fixed state error (thanks to mumpitzstuff)
# 2017-10-16 fixed attributes # 2017-10-16 fixed attributes
# 2017-10-19 added set-command "update" # 2017-10-19 added set-command "update"
# 2018-03-19 solarradiation calculated from lux to W/m² (thanks to dieter114)
# #
################################################################################ ################################################################################
@ -406,7 +410,8 @@ sub WUup_receive($) {
network as parameter "tempf" (which indicates current temperature) network as parameter "tempf" (which indicates current temperature)
<br/> <br/>
Units get converted to angloamerican system automatically Units get converted to angloamerican system automatically
(&deg;C -> &deg;F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/><br/> (&deg;C -> &deg;F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/>
Solarradiation takes readings in lux and converts them to W/m&sup2;<br/><br/>
<u>The following information is supported:</u> <u>The following information is supported:</u>
<ul> <ul>
<li>winddir - [0-360 instantaneous wind direction]</li> <li>winddir - [0-360 instantaneous wind direction]</li>
@ -504,7 +509,8 @@ sub WUup_receive($) {
(welches die aktuelle Temperatur angibt). (welches die aktuelle Temperatur angibt).
<br /> <br />
Einheiten werden automatisch ins anglo-amerikanische System umgerechnet. Einheiten werden automatisch ins anglo-amerikanische System umgerechnet.
(&deg;C -> &deg;F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/><br/> (&deg;C -> &deg;F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/>
Solarradiation nimmt Readings in lux an und rechnet diese in W/m&sup2; um.<br/><br/>
<u>Unterst&uuml;tzte Angaben</u> <u>Unterst&uuml;tzte Angaben</u>
<ul> <ul>
<li>Winddir - [0-360 momentane Windrichtung]</li> <li>Winddir - [0-360 momentane Windrichtung]</li>