Leuven PHP script for the Luftdaten Air Quality sensor - Demo basic version


This stations Air quality measurements  (more)

Classification Period Concentration Index Particle           
Good now 4.10 ug/m3 1 pm10
Good now 1.00 ug/m3 1 pm2.5
      Latest measurement from: 26-04-2019 15:01

Classification Index pm10 pm2.5 Our measurement values above are real-time values
The health effects should be based on 24 hours average values only.
 Good  1 < 10 μg/m3 < 5 μg/m3 Enjoy your usual outdoor activities
2 < 20 μg/m3 < 10 μg/m3
 Fair  3 < 30 μg/m3 < 15 μg/m3 Enjoy your usual outdoor activities
Adults and children with lung or heart problems, who experience symptoms, should consider reducing strenuous physical activity, particularly outdoors
4 < 40 μg/m3 < 25 μg/m3
 Poor  5 < 50 μg/m3 < 35 μg/m3 Anyone experiencing discomfort such as sore eyes, cough or sore throat should consider reducing physical activity, particularly outdoors.

Adults and children with lung problems, and adults with heart problems, should reduce strenuous physical activity, particularly outdoors, and particularly if they experience symptoms.
People with asthma may find they need to use their reliever inhaler more often.
Older people should also reduce physical exertion.
6 < 60 μg/m3 < 40 μg/m3
7 < 70 μg/m3 < 50 μg/m3
 Very poor  8 < 80 μg/m3 < 60 μg/m3 Reduce physical exertion, particularly outdoors, especially if you experience symptoms such as cough or sore throat.
Adults and children with lung problems, adults with heart problems, and older people, should avoid strenuous physical activity.
People with asthma may find they need to use their reliever inhaler more often.
9 < 100 μg/m3 < 70 μg/m3
10 > 100 μg/m3 > 70 μg/m3
Visit these websites Regional Air Quality site & Luftdaten.info where you can find a wealth of information

This script can generate the output for different AQ index calculations.
USA Airnow.gov
Netherlands luchtmeetnet.nl
Ireland epa.ie
Belgium irceline

This script generates two html files to be used on your own pages.
The component above can be tailored extensively.
It can contain the "More" button to hide/show all or a subset of the sensor values.
And the optional "Extra page" can link to amore extensive explanation page.

Below these remarks, the small "current value" of the pm2.5 is shown . It can be used on the startpage of your dashboard


Go back here to the previous page with the second demo link
An example as used in a Saratoga template check here
And for a Leuven Template example, visit my own weather-website Sluispark in Leuven Belgium