Skip to content

AirParif Binding ​

This binding uses the AirParif service for providing air quality information for Paris and departments of the Ile-de-France. To use it, you first need to register and get your API key. You'll receive your API Key by mail.

Supported Things ​

  • api: bridge used to connect to the AirParif service. Provides some general information for the whole area.
  • location: Presents the air quality information for a given location.

Of course, you can add multiple locations, e.g. for gathering air quality data for different locations.

Discovery ​

Once your api bridge is created and configured with the API Key, a default location can be auto-discovered based on system location. It will be configured with the system location and detected department.

Thing Configuration ​

api Thing Configuration ​

NameTypeDescriptionDefaultRequiredAdvanced
apikeytextToken used to access the serviceN/Ayesno

location Thing Configuration ​

NameTypeDescriptionDefaultRequiredAdvanced
locationtextGeo coordinates to be considered (as {latitude},{longitude}[,{altitude in m}])N/Ayesno
departmenttextCode of the department (two digits) (*)N/Ayesno

(*) When auto-discovered, the department will be pre-filled based on the location and bounding limits defined in the internal department database. Please check that proposed value is correct according to the place.

Channels ​

api Thing Channels ​

GroupChannelTypeRead/WriteDescription
aq-bulletincommentStringRGeneral message for the air quality bulletin
aq-bulletinno2-minNumber:DensityRMinimum level of NO2 concentration
aq-bulletinno2-maxNumber:DensityRMaximum level of NO2 concentration
aq-bulletino3-minNumber:DensityRMinimum level of O3 concentration
aq-bulletino3-maxNumber:DensityRMaximum level of O3 concentration
aq-bulletinpm10-minNumber:DensityRMinimum level of PM 10 concentration
aq-bulletinpm10-maxNumber:DensityRMaximum level of PM 10 concentration
aq-bulletinpm25-minNumber:DensityRMinimum level of PM 2.5 concentration
aq-bulletinpm25-maxNumber:DensityRMaximum level of PM 2.5 concentration
aq-bulletin-tomorrowcommentStringRGeneral message for the air quality bulletin
aq-bulletin-tomorrowno2-minNumber:DensityRMinimum level of NO2 concentration
aq-bulletin-tomorrowno2-maxNumber:DensityRMaximum level of NO2 concentration
aq-bulletin-tomorrowo3-minNumber:DensityRMinimum level of O3 concentration
aq-bulletin-tomorrowo3-maxNumber:DensityRMaximum level of O3 concentration
aq-bulletin-tomorrowpm10-minNumber:DensityRMinimum level of PM 10 concentration
aq-bulletin-tomorrowpm10-maxNumber:DensityRMaximum level of PM 10 concentration
aq-bulletin-tomorrowpm25-minNumber:DensityRMinimum level of PM 2.5 concentration
aq-bulletin-tomorrowpm25-maxNumber:DensityRMaximum level of PM 2.5 concentration
dailymessageStringRToday's daily general information
dailytomorrowStringRTomorrow's daily general information

location Thing Channels ​

GroupChannelTypeRead/WriteDescription
indicemessageStringRAlert message associated to the value of the index
indicetimestampDateTimeRTimestamp of the evaluation
indicealertNumberRATMO Index associated to highest pollutant concentration
o3messageStringRPolllutant concentration alert message
o3valueNumber:DensityRConcentration of the given pollutant
o3alertNumberRAlert Level associated to pollutant concentration (**)
no2messageStringRPolllutant concentration alert message
no2valueNumber:DensityRConcentration of the given pollutant
no2alertNumberRAlert Level associated to pollutant concentration (**)
pm25messageStringRPolllutant concentration alert message
pm25valueNumber:DensityRConcentration of the given pollutant
pm25alertNumberRAlert Level associated to pollutant concentration (**)
pm10messageStringRPolllutant concentration alert message
pm10valueNumber:DensityRConcentration of the given pollutant
pm10alertNumberRAlert Level associated to pollutant concentration (**)

(*) Each pollutant concentration is associated to an alert level (and an icon) :

CodeDescription
0Good
1Average
2Degrated
3Bad
4Very Bad
5Extremely Bad

Provided icon set ​

This binding has its own IconProvider and makes available the following list of icons

Icon NameDynamicIllustration
oh:airparif:aqYesAir Quality

Full Example ​

Thing Configurationn ​

dsl
Bridge airparif:api:local "AirParif" [ apikey="xxxxx-dddd-cccc-4321-zzzzzzzzzzzzz" ] {
    location 78 "Yvelines" [ department="78", location="52.639,1.8284" ]
}

Item Configurationn ​

dsl
String           AirParifAqBulletinComment           "Message"          {channel="airparif:api:local:aq-bulletin#comment"}
Number:Density   AirParifAqBulletinNo2Min            "No2 min"          {channel="airparif:api:local:aq-bulletin#no2-min"}
Number:Density   AirParifAqBulletinNo2Max            "No2 max"          {channel="airparif:api:local:aq-bulletin#no2-max"}
Number:Density   AirParifAqBulletinO3Min             "O3 min"           {channel="airparif:api:local:aq-bulletin#o3-min"}
Number:Density   AirParifAqBulletinO3Max             "O3 max"           {channel="airparif:api:local:aq-bulletin#o3-max"}
Number:Density   AirParifAqBulletinPm10Min           "Pm 10 min"        {channel="airparif:api:local:aq-bulletin#pm10-min"}
Number:Density   AirParifAqBulletinPm10Max           "Pm 10 max"        {channel="airparif:api:local:aq-bulletin#pm10-max"}
Number:Density   AirParifAqBulletinPm25Min           "Pm 2.5 min"       {channel="airparif:api:local:aq-bulletin#pm25-min"}
Number:Density   AirParifAqBulletinPm25Max           "Pm 2.5 max"       {channel="airparif:api:local:aq-bulletin#pm25-max"}
String           AirParifAqBulletinTomorrowComment   "Message"          {channel="airparif:api:local:aq-bulletin-tomorrow#comment"}
Number:Density   AirParifAqBulletinTomorrowNo2Min    "No2 min"          {channel="airparif:api:local:aq-bulletin-tomorrow#no2-min"}
Number:Density   AirParifAqBulletinTomorrowNo2Max    "No2 max"          {channel="airparif:api:local:aq-bulletin-tomorrow#no2-max"}
Number:Density   AirParifAqBulletinTomorrowO3Min     "O3 min"           {channel="airparif:api:local:aq-bulletin-tomorrow#o3-min"}
Number:Density   AirParifAqBulletinTomorrowO3Max     "O3 max"           {channel="airparif:api:local:aq-bulletin-tomorrow#o3-max"}
Number:Density   AirParifAqBulletinTomorrowPm10Min   "Pm 10 min"        {channel="airparif:api:local:aq-bulletin-tomorrow#pm10-min"}
Number:Density   AirParifAqBulletinTomorrowPm10Max   "Pm 10 max"        {channel="airparif:api:local:aq-bulletin-tomorrow#pm10-max"}
Number:Density   AirParifAqBulletinTomorrowPm25Min   "Pm 2.5 min"       {channel="airparif:api:local:aq-bulletin-tomorrow#pm25-min"}
Number:Density   AirParifAqBulletinTomorrowPm25Max   "Pm 2.5 max"       {channel="airparif:api:local:aq-bulletin-tomorrow#pm25-max"}
String           AirParifDailyMessage                "Message"          {channel="airparif:api:local:daily#message"}
String           AirParifDailyTomorrow               "Tomorrow"         {channel="airparif:api:local:daily#tomorrow"}

String           Yvelines_Indice_Message       "Message"         {channel="airparif:location:local:78:indice#message"}
DateTime         Yvelines_Indice_Timestamp     "Timestamp"       {channel="airparif:location:local:78:indice#timestamp"}
Number           Yvelines_Indice_Alert         "Index"           {channel="airparif:location:local:78:indice#alert"}
String           Yvelines_O3_Message           "Message"         {channel="airparif:location:local:78:o3#message"}
Number:Density   Yvelines_O3_Value             "Concentration"   {channel="airparif:location:local:78:o3#value"}
Number           Yvelines_O3_Alert             "Alert level"     {channel="airparif:location:local:78:o3#alert"}
String           Yvelines_No2_Message          "Message"         {channel="airparif:location:local:78:no2#message"}
Number:Density   Yvelines_No2_Value            "Concentration"   {channel="airparif:location:local:78:no2#value"}
Number           Yvelines_No2_Alert            "Alert level"     {channel="airparif:location:local:78:no2#alert"}
String           Yvelines_Pm25_Message         "Message"         {channel="airparif:location:local:78:pm25#message"}
Number:Density   Yvelines_Pm25_Value           "Concentration"   {channel="airparif:location:local:78:pm25#value"}
Number           Yvelines_Pm25_Alert           "Alert level"     {channel="airparif:location:local:78:pm25#alert"}
String           Yvelines_Pm10_Message         "Message"         {channel="airparif:location:local:78:pm10#message"}
Number:Density   Yvelines_Pm10_Value           "Concentration"   {channel="airparif:location:local:78:pm10#value"}
Number           Yvelines_Pm10_Alert           "Alert level"     {channel="airparif:location:local:78:pm10#alert"}
``



<EditPageLink/>