mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +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:
parent
57bf667a68
commit
7628fcaa18
@ -1,5 +1,6 @@
|
||||
# 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.
|
||||
- feature: 59_WUup: V0.9.6, calculate solarradiation from lux to W/m²
|
||||
- feature: 73_AMADCommBridge: fix Commandref, add allowfrom support
|
||||
- bugfix: 74_XiaomiBTLESens: Backslash found where operator expected
|
||||
- bugfix: 98_TRAFFIC: v1.3.7, fixed special characters and updateschedule
|
||||
|
@ -32,7 +32,7 @@ use Time::HiRes qw(gettimeofday);
|
||||
use HttpUtils;
|
||||
use UConv;
|
||||
|
||||
my $version = "0.9.5";
|
||||
my $version = "0.9.6";
|
||||
|
||||
# Declare functions
|
||||
sub WUup_Initialize($);
|
||||
@ -258,6 +258,9 @@ sub WUup_send($) {
|
||||
elsif ( $key =~ /.*rainin$/ ) {
|
||||
$value = UConv::mm2in( $value, 4 );
|
||||
}
|
||||
elsif ( $key eq "solarradiation" ) {
|
||||
$value = ( $value / 126.7 );
|
||||
}
|
||||
$data .= "&$key=$value";
|
||||
}
|
||||
|
||||
@ -343,6 +346,7 @@ sub WUup_receive($) {
|
||||
# timeout raised to 6s, fixed state error (thanks to mumpitzstuff)
|
||||
# 2017-10-16 fixed attributes
|
||||
# 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)
|
||||
<br/>
|
||||
Units get converted to angloamerican system automatically
|
||||
(°C -> °F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/><br/>
|
||||
(°C -> °F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/>
|
||||
Solarradiation takes readings in lux and converts them to W/m²<br/><br/>
|
||||
<u>The following information is supported:</u>
|
||||
<ul>
|
||||
<li>winddir - [0-360 instantaneous wind direction]</li>
|
||||
@ -504,7 +509,8 @@ sub WUup_receive($) {
|
||||
(welches die aktuelle Temperatur angibt).
|
||||
<br />
|
||||
Einheiten werden automatisch ins anglo-amerikanische System umgerechnet.
|
||||
(°C -> °F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/><br/>
|
||||
(°C -> °F; km/h(m/s) -> mph; mm -> in; hPa -> inHg)<br/>
|
||||
Solarradiation nimmt Readings in lux an und rechnet diese in W/m² um.<br/><br/>
|
||||
<u>Unterstützte Angaben</u>
|
||||
<ul>
|
||||
<li>Winddir - [0-360 momentane Windrichtung]</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user