2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

59_LuftdatenInfo: add airQuality Reading

git-svn-id: https://svn.fhem.de/fhem/trunk@17548 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
igami 2018-10-16 19:33:15 +00:00
parent 24f9ad29a8
commit 0018b094dc

View File

@ -437,6 +437,9 @@ sub LuftdatenInfo_ParseHttpResponse($) {
elsif($_->{value_type} =~ /P2$/){ elsif($_->{value_type} =~ /P2$/){
$_->{value_type} = "PM2.5"; $_->{value_type} = "PM2.5";
} }
elsif($_->{value_type} =~ /_air_quality$/){
$_->{value_type} = "airQuality";
}
elsif($_->{value_type} =~ /_height$/){ elsif($_->{value_type} =~ /_height$/){
$_->{value_type} = "altitude"; $_->{value_type} = "altitude";
} }
@ -618,6 +621,15 @@ sub LuftdatenInfo_statusRequest($) {
<a name="LuftdatenInforeadings"></a> <a name="LuftdatenInforeadings"></a>
<b>Readings</b><br> <b>Readings</b><br>
<ul> <ul>
<li>
<code>airQuality</code>
1 => good<br>
2 => moderate<br>
3 => unhealthy for sensitive groups<br>
4 => unhealthy<br>
5 => very unhealthy<br>
6 => hazardous<br>
</li>
<li> <li>
<code>altitude</code> <code>altitude</code>
</li> </li>
@ -789,6 +801,15 @@ sub LuftdatenInfo_statusRequest($) {
<a name="LuftdatenInforeadings"></a> <a name="LuftdatenInforeadings"></a>
<b>Readings</b><br> <b>Readings</b><br>
<ul> <ul>
<li>
<code>airQuality</code>
1 => gut<br>
2 => mittelmä&suml;ig<br>
3 => ungesund für empfindliche Menschen<br>
4 => ungesund<br>
5 => sehr ungesund<br>
6 => katastrophal<br>
</li>
<li> <li>
<code>altitude</code><br> <code>altitude</code><br>
Höhe über NN Höhe über NN