mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +00:00
59_LuftdatenInfo: add support for PM1
git-svn-id: https://svn.fhem.de/fhem/trunk@15250 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e39b3185d4
commit
df6ba2ccb4
@ -124,7 +124,7 @@ sub LuftdatenInfo_Define($$) {
|
|||||||
$hash->{DEF} = "$MODE $hash->{SENSORIDS}";
|
$hash->{DEF} = "$MODE $hash->{SENSORIDS}";
|
||||||
}
|
}
|
||||||
elsif(!$DEF){
|
elsif(!$DEF){
|
||||||
$hash->{ADDRESS} = $DEF;
|
$hash->{ADDRESS} = $MODE;
|
||||||
|
|
||||||
$MODE = "local";
|
$MODE = "local";
|
||||||
|
|
||||||
@ -428,7 +428,10 @@ sub LuftdatenInfo_ParseHttpResponse($) {
|
|||||||
))[0];
|
))[0];
|
||||||
$device = IsDevice($device, $TYPE) ? $defs{$device} : $hash;
|
$device = IsDevice($device, $TYPE) ? $defs{$device} : $hash;
|
||||||
|
|
||||||
if($_->{value_type} =~ /P1$/){
|
if($_->{value_type} =~ /P0$/){
|
||||||
|
$_->{value_type} = "PM1";
|
||||||
|
}
|
||||||
|
elsif($_->{value_type} =~ /P1$/){
|
||||||
$_->{value_type} = "PM10";
|
$_->{value_type} = "PM10";
|
||||||
}
|
}
|
||||||
elsif($_->{value_type} =~ /P2$/){
|
elsif($_->{value_type} =~ /P2$/){
|
||||||
@ -469,12 +472,18 @@ sub LuftdatenInfo_ParseHttpResponse($) {
|
|||||||
$_->{value} = ($_->{value} > 10000 ? $_->{value} / 100 : $_->{value});
|
$_->{value} = ($_->{value} > 10000 ? $_->{value} / 100 : $_->{value});
|
||||||
$_->{value_type} = "pressureNN";
|
$_->{value_type} = "pressureNN";
|
||||||
}
|
}
|
||||||
|
elsif($_->{value_type} =~ /_risk/){
|
||||||
|
$_->{value_type} = "UVRisk";
|
||||||
|
}
|
||||||
elsif($_->{value_type} eq "signal"){
|
elsif($_->{value_type} eq "signal"){
|
||||||
$_->{value_type} = "signal";
|
$_->{value_type} = "signal";
|
||||||
}
|
}
|
||||||
elsif($_->{value_type} =~ /temperature$/){
|
elsif($_->{value_type} =~ /temperature$/){
|
||||||
$_->{value_type} = "temperature";
|
$_->{value_type} = "temperature";
|
||||||
}
|
}
|
||||||
|
elsif($_->{value_type} =~ /_watt/){
|
||||||
|
$_->{value_type} = "UVIntensity";
|
||||||
|
}
|
||||||
elsif($_->{value_type} =~ /_time$/){
|
elsif($_->{value_type} =~ /_time$/){
|
||||||
$_->{value_type} = "time";
|
$_->{value_type} = "time";
|
||||||
}
|
}
|
||||||
@ -609,70 +618,81 @@ sub LuftdatenInfo_statusRequest($) {
|
|||||||
<a name="LuftdatenInforeadings"></a>
|
<a name="LuftdatenInforeadings"></a>
|
||||||
<b>Readings</b><br>
|
<b>Readings</b><br>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
<li>
|
<code>altitude</code>
|
||||||
<code>PM10</code><br>
|
</li>
|
||||||
Quantity of particles with a diameter of less than 10 μm in μg / m³
|
<li>
|
||||||
</li>
|
<code>humidity</code><br>
|
||||||
<li>
|
Relative humidity in %
|
||||||
<code>PM2.5</code><br>
|
</li>
|
||||||
Quantity of particles with a diameter of less than 2.5 μm in μg / m³
|
<li>
|
||||||
</li>
|
<code>illuminanceFull</code><br>
|
||||||
<li>
|
Illuminace of the full spectrum in lux
|
||||||
<code>temperature</code><br>
|
</li>
|
||||||
Temperature in °C
|
<li>
|
||||||
</li>
|
<code>illuminanceIR</code><br>
|
||||||
<li>
|
Iilluminace of the IR spectrum in lux
|
||||||
<code>humidity</code><br>
|
</li>
|
||||||
Relative humidity in %
|
<li>
|
||||||
</li>
|
<code>illuminanceUV</code><br>
|
||||||
<li>
|
Iilluminace of the UV spectrum in lux
|
||||||
<code>pressure</code><br>
|
</li>
|
||||||
Pressure in hPa
|
<li>
|
||||||
</li>
|
<code>illuminanceVisible</code><br>
|
||||||
<li>
|
Iilluminace of the visible spectrum in lux
|
||||||
<code>pressureNN</code><br>
|
</li>
|
||||||
Pressure at sea level in hPa<br>
|
<li>
|
||||||
Is calculated if pressure and temperature sensor are active and the
|
<code>latitude</code>
|
||||||
sensor is not at sea level.<br>
|
</li>
|
||||||
The height, can be determined by maps or SmartPhone, needs to be
|
<li>
|
||||||
specified at the configuration page.
|
<code>location</code><br>
|
||||||
</li>
|
location as "postcode city"<br>
|
||||||
<li>
|
Only available with remote query.
|
||||||
<code>illuminanceFull</code><br>
|
</li>
|
||||||
illuminace of the full spectrum in lux
|
<li>
|
||||||
</li>
|
<code>longitude</code>
|
||||||
<li>
|
</li>
|
||||||
<code>illuminanceIR</code><br>
|
<li>
|
||||||
illuminace of the IR spectrum in lux
|
<code>PM1</code><br>
|
||||||
</li>
|
Quantity of particles with a diameter of less than 1 μm in μg/m³
|
||||||
<li>
|
</li>
|
||||||
<code>illuminanceUV</code><br>
|
<li>
|
||||||
???
|
<code>PM2.5</code><br>
|
||||||
</li>
|
Quantity of particles with a diameter of less than 2.5 μm in μg/m³
|
||||||
<li>
|
</li>
|
||||||
<code>illuminanceVisible</code><br>
|
<li>
|
||||||
illuminace of the visible spectrum in lux
|
<code>PM10</code><br>
|
||||||
</li>
|
Quantity of particles with a diameter of less than 10 μm in μg/m³
|
||||||
<li>
|
</li>
|
||||||
<code>latitude</code>
|
<li>
|
||||||
</li>
|
<code>pressure</code><br>
|
||||||
<li>
|
Pressure in hPa
|
||||||
<code>longitude</code>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<code>pressureNN</code><br>
|
||||||
<code>altitude</code>
|
Pressure at sea level in hPa<br>
|
||||||
</li>
|
Is calculated if pressure and temperature sensor are active and the
|
||||||
<li>
|
sensor is not at sea level.<br>
|
||||||
<code>location</code><br>
|
The height, can be determined by maps or SmartPhone, needs to be
|
||||||
location as "postcode city"<br>
|
specified at the configuration page.
|
||||||
Only available with remote query.
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<code>signal</code><br>
|
||||||
<code>signal</code><br>
|
WLAN signal strength in dBm<br>
|
||||||
WLAN signal strength in dBm<br>
|
Only available with local query.
|
||||||
Only available with local query.
|
</li>
|
||||||
</li>
|
<li>
|
||||||
|
<code>temperature</code><br>
|
||||||
|
Temperature in °C
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>UVIntensity</code><br>
|
||||||
|
UV intensity in W
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>UVRisk</code><br>
|
||||||
|
UV risk from 1 to 5
|
||||||
|
</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<a name="LuftdatenInfoattr"></a>
|
<a name="LuftdatenInfoattr"></a>
|
||||||
<b>Attribute</b>
|
<b>Attribute</b>
|
||||||
@ -770,20 +790,53 @@ sub LuftdatenInfo_statusRequest($) {
|
|||||||
<b>Readings</b><br>
|
<b>Readings</b><br>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>PM10</code><br>
|
<code>altitude</code><br>
|
||||||
Menge der Partikel mit einem Durchmesser von weniger als 10 µm in µg/m³
|
Höhe über NN
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>humidity</code><br>
|
||||||
|
Relative Luftfeuchtgkeit in %
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>illuminanceFull</code><br>
|
||||||
|
Helligkeit des vollen Bereich in lux
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>illuminanceIR</code><br>
|
||||||
|
Helligkeit des IR Bereich in lux
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>illuminanceUV</code><br>
|
||||||
|
Helligkeit des UV Bereich in lux
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>illuminanceVisible</code><br>
|
||||||
|
Helligkeit des sichtbaren Bereich in lux
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>latitude</code><br>
|
||||||
|
Längengrad
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>location</code><br>
|
||||||
|
Standort als "Postleitzahl Ort"<br>
|
||||||
|
Nur bei remote Abfrage verfügbar.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>longitude</code><br>
|
||||||
|
Breitengrad
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>PM1</code><br>
|
||||||
|
Menge der Partikel mit einem Durchmesser von weniger als 1 µm in µg/m³
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>PM2.5</code><br>
|
<code>PM2.5</code><br>
|
||||||
Menge der Partikel mit einem Durchmesser von weniger als 2.5 µm in µg/m³
|
Menge der Partikel mit einem Durchmesser von weniger als 2.5 µm in µg/m³
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>temperature</code><br>
|
<code>PM10</code><br>
|
||||||
Temperatur in °C
|
Menge der Partikel mit einem Durchmesser von weniger als 10 µm in µg/m³
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>humidity</code><br>
|
|
||||||
Relative Luftfeuchtgkeit in %
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>pressure</code><br>
|
<code>pressure</code><br>
|
||||||
@ -797,44 +850,23 @@ sub LuftdatenInfo_statusRequest($) {
|
|||||||
Hierzu ist die Höhe, kann über Kartendienste oder SmartPhone ermittelt
|
Hierzu ist die Höhe, kann über Kartendienste oder SmartPhone ermittelt
|
||||||
werden, auf der Konfigurationsseite anzugeben.
|
werden, auf der Konfigurationsseite anzugeben.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<code>illuminanceFull</code><br>
|
|
||||||
Helligkeit des vollen Bereich in lux
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>illuminanceIR</code><br>
|
|
||||||
Helligkeit des IR Bereich in lux
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>illuminanceUV</code><br>
|
|
||||||
???
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>illuminanceVisible</code><br>
|
|
||||||
Helligkeit des sichtbaren Bereich in lux
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>latitude</code><br>
|
|
||||||
Längengrad
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>longitude</code><br>
|
|
||||||
Breitengrad
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>altitude</code><br>
|
|
||||||
Höhe über NN
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<code>location</code><br>
|
|
||||||
Standort als "Postleitzahl Ort"<br>
|
|
||||||
Nur bei remote Abfrage verfügbar.
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<code>signal</code><br>
|
<code>signal</code><br>
|
||||||
WLAN Signalstärke in dBm<br>
|
WLAN Signalstärke in dBm<br>
|
||||||
Nur bei local Abfrage verfügbar.
|
Nur bei local Abfrage verfügbar.
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>temperature</code><br>
|
||||||
|
Temperatur in °C
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>UVIntensity</code><br>
|
||||||
|
UV Intensität in W
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>UVRisk</code><br>
|
||||||
|
UV Risiko von 1 bis 5
|
||||||
|
</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<a name="LuftdatenInfoattr"></a>
|
<a name="LuftdatenInfoattr"></a>
|
||||||
<b>Attribute</b>
|
<b>Attribute</b>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user