I’m new to OpenHAB and doing my first steps.
When drilling through a lot of information I found some sources for air quality (Air Quality Binding).
The data seems to come from govermental measurement stations.
Here in Germany there is a project called Luftdaten on luftdaten.info.
It is based on small DIY measurements of pollution (PM10, PM2.5, often also temperature and humidity).
All data is available through an api http://api.luftdaten.info
Does a binding exist to this project ?
How can I access this api to get and display relevant data ?

Assumptions:JSONPath Transformation installedAll JSON Returns have 2 readings and each reading gives P1 and P2Results are given in the LogInfo, to get them into items is up to youCode is written without checking (No System available!)

[Edit:] As stated by @rlkoshak, this could also easily be done using the HTTP-Binding. If more people see the need to have that in a dedicated binding, I could build it (this winter )

Thanks for all replies.
I did install the HTTP binding. But I’m struggeling with configuration and use.

What did I try:
Using the Paper UI I tried to add anew thing based on the HTTP binding. All I get is an empty screen with no chance to insert anything.
I tried to configure a new thing using the config file /etc/openhab2/services/http.cfg
There I added two lines

HTTP binding is a 1.x version binding. You will need to create Items with a binding configuration as documented in the binding’s readme. I don’t think you can create Items for 1.x bindings in PaperUI.

1.x bindings do not support Things and if it did, you would create the Thing in a .things file in the things folder. The services/http.cfg is, as documented for the binding, a place to configure a way for the binding to make one request to the HTTP service the result of which can be used to populate multiple different Items.

Thanks for that solution proposal. I tried it and it is working fine.
But here is my next question.
With that rule I just create an entry in the logfile giving me the value.
How can I get value in a thing or item (I still confused how to distinguish them)?

I also tried to write a script which captures the api-result in a file and cat that file in a thing using a json transformation

My posted solution was for the reply with a single sensor. If there are more sensors, you have to separate the needed one Can’t help atm because I’m on the road, sorry.
You have found a solution, that is good. You do handle the returns as strings, if you would convert them to numbers you could start persisting them for a chart display.

You do handle the returns as strings, if you would convert them to numbers you could start persisting them for a chart display.

Yes, I’m aware of that. My idea was to start with a string to avoid any trouble when converting to a number. And I was quite happy when I the string was finally displayed in a panel.
Persistance is a topic that I will start later on as it is not easy to understand the world of OH2: the documentation is quite sparse for a newbie like me and partly outdated (for OH1 only).

I just checked my data.
It also displays with a dot.
I fear that OH2 is using the “international” representation with the dot.
Maybe somebody more experienced can answer that question how to adapt this to the German representation.

thanks a lot for your help. I have it up an running
I investigated a little more and found out that the persistence (in the beginning playing around with formats) stored PM10 as a string (VARCHAR) and PM2 as a number (DOUBLE) item in my sql DB.
Both have been shown in the logs with “.” - so there was no obvious difference.
I just recognized the “,” used in Germany was shown depending on the sql DB tool to display the data (this was the case with heidiSQL).
Accessing the DB with the iphone APP QueryDB, everything is shown with “.”

However, the problem I had, was that it took me a while until I recognized the different format in my SQL DB (I was not able to show the data of the string in charts of course).

The issue was, once initialized (by persistence) as string in my DB, the values have not been converted to number even after changing to the parseFloat format in my rule.
I first needed to delete the whole item entry in my DB to overcome this issue.
Now both are stored as DOUBLE and can be used for charts.