There’s no need to provide me the API key - just make sure it’s pasted correctly.
If it comes to the coordinates - yes, you can PM me these and I will try to receive data with it.
Are you sure the coords are written in the following convention? 12.345;55.666
or 12.345,55.666
[WARN ] [airquality.handler.AirQualityHandler] - Error parsing aqicn.org (Air Quality) response: java.lang.NumberFormatException: Expected an int but was 2.4 at line 1 column 339 path $.data.iaqi.co.v
[WARN ] [airquality.handler.AirQualityHandler] - Error parsing aqicn.org (Air Quality) response: java.lang.NumberFormatException: Expected an int but was 2.6 at line 1 column 337 path $.data.iaqi.co.v
[WARN ] [airquality.handler.AirQualityHandler] - Error parsing aqicn.org (Air Quality) response: java.lang.NumberFormatException: Expected an int but was 2.7 at line 1 column 337 path $.data.iaqi.co.v
I suspect this is related to the format of data received for CO. From my raw json response: "co":{"v":2.7}
16:26:42.662 [WARN ] [airquality.handler.AirQualityHandler] - Error parsing aqicn.org (Air Quality) response: java.lang.NumberFormatException: Expected an int but was 0.1 at line 1 column 343 path $.data.iaqi.co.v
@PawelGrzembka@AndrewZ the issue is now resolved in the latest build.
Note that due to the API change, you need to remove Station ID item from your configs.
The safest approach would be to reinstall the Karaf bundle, but it should work without it as well.
The page now indicates 1.2.0: http://aqicn.org/json-api/doc
However I do not see the version number in any of the example requests/responses. If you were able to fetch this API version, would it make sense to verify it against the latest known version? This way you could at least generate a warning.
they are updating the API like crazy. This weekend the version was at 1.1.0 and they have now upgraded again. The 1.1.0 docs are not even available anymore.
@kubawolanin may I suggest an enhancement?
Currently the binding is using geo coordinates only, but the API itself allows to also query by station id (idx). Will be good to have this option in the binding configuration, this will allow to stick with the specific station if necessary. Thanks!