LuftdatenInfo is the FHEM module to read particulate matter, temperature and humidity values from the self-assembly particulate matter sensors from Luftdaten.info.
The values can be queried directly from the server or locally.
There is an alternative Firmware to support more sensors locally.
The Perl module "JSON" is required.
Using Debian (based) systems, the module can be installed using
apt-get install libjson-perl
.
Query of Luftdaten.info:
define <name> LuftdatenInfo remote <SENSORID1> [<SENSORID2> ..]
Local query:
define <name> LuftdatenInfo local <IP>
Redirecting readings:
define <name> LuftdatenInfo slave <master-name> <sensor1 sensor2 ...>
To query the data from the server, all affected SensorIDs must be specified. The IDs of the SDS01 are on the right side of the page maps.Luftdaten.info. The DHT22 SensorID normally corresponds to the SDS011 SensorID + 1.
While parsing the data, the location values from all sensors will be compared and a message will be written into the logfile if they differ.
For a local query of the data, the IP address or hostname must be specified.
If several similar sensors are operated locally, the double values (e.g. temperature) can be redirected to a slave device.
statusRequest
sensors
airQuality
altitude
humidity
illuminanceFull
illuminanceIR
illuminanceUV
illuminanceVisible
latitude
location
longitude
PM1
PM2.5
PM10
pressure
pressureNN
signal
temperature
UVIntensity
UVRisk
disable 1
disabledForIntervals HH:MM-HH:MM HH:MM-HH-MM ...
interval <seconds>
rawReading 1
timeout <seconds>