mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
50_HP1000.pm: change reading names in accordance to most FHEM modules
git-svn-id: https://svn.fhem.de/fhem/trunk@9936 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
32f0b17217
commit
7f85aa9180
@ -187,14 +187,19 @@ sub HP1000_CGI() {
|
|||||||
$p = "pressure_abs" if ($p eq "absbaro");
|
$p = "pressure_abs" if ($p eq "absbaro");
|
||||||
$p = "humidity_indoor" if ($p eq "inhumi");
|
$p = "humidity_indoor" if ($p eq "inhumi");
|
||||||
$p = "temperature_indoor" if ($p eq "intemp");
|
$p = "temperature_indoor" if ($p eq "intemp");
|
||||||
|
$p = "lightsensor" if ($p eq "light");
|
||||||
$p = "humidity" if ($p eq "outhumi");
|
$p = "humidity" if ($p eq "outhumi");
|
||||||
$p = "temperature" if ($p eq "outtemp");
|
$p = "temperature" if ($p eq "outtemp");
|
||||||
$p = "rain" if ($p eq "rainrate");
|
$p = "rain_rate" if ($p eq "rainrate");
|
||||||
$p = "pressure" if ($p eq "relbaro");
|
$p = "pressure" if ($p eq "relbaro");
|
||||||
$p = "rain_day" if ($p eq "dailyrain");
|
$p = "rain_day" if ($p eq "dailyrain");
|
||||||
$p = "rain_week" if ($p eq "weeklyrain");
|
$p = "rain_week" if ($p eq "weeklyrain");
|
||||||
$p = "rain_month" if ($p eq "monthlyrain");
|
$p = "rain_month" if ($p eq "monthlyrain");
|
||||||
$p = "rain_year" if ($p eq "yearlyrain");
|
$p = "rain_year" if ($p eq "yearlyrain");
|
||||||
|
$p = "wind_chill" if ($p eq "windchill");
|
||||||
|
$p = "wind_direction" if ($p eq "winddir");
|
||||||
|
$p = "wind_gust" if ($p eq "wind_gust");
|
||||||
|
$p = "wind_speed" if ($p eq "windspeed");
|
||||||
|
|
||||||
# add to state
|
# add to state
|
||||||
$result .= " " if ($result ne "");
|
$result .= " " if ($result ne "");
|
||||||
@ -203,13 +208,7 @@ sub HP1000_CGI() {
|
|||||||
$result .= "Ti: $v" if ($p eq "temperature_indoor");
|
$result .= "Ti: $v" if ($p eq "temperature_indoor");
|
||||||
$result .= "Hi: $v" if ($p eq "humidity_indoor");
|
$result .= "Hi: $v" if ($p eq "humidity_indoor");
|
||||||
$result .= "P: $v" if ($p eq "pressure");
|
$result .= "P: $v" if ($p eq "pressure");
|
||||||
$result .= "R:$v" if ($p eq "rain");
|
$result .= "W: $v" if ($p eq "wind_speed");
|
||||||
$result .= "L:$v" if ($p eq "light");
|
|
||||||
$result .= "UV:$v" if ($p eq "uv");
|
|
||||||
$result .= "WC:$v" if ($p eq "windchill");
|
|
||||||
$result .= "WD:$v" if ($p eq "winddir");
|
|
||||||
$result .= "WG:$v" if ($p eq "windgust");
|
|
||||||
$result .= "WS:$v" if ($p eq "windspeed");
|
|
||||||
|
|
||||||
readingsBulkUpdate( $hash, lc($p), $v );
|
readingsBulkUpdate( $hash, lc($p), $v );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user