Ozon3Org / Ozon3

An open-source Python package to easily obtain real-time, historical, or forecasted air quality data for anywhere in the world. Reliable, accurate and simple.
GNU General Public License v3.0
66 stars 23 forks source link

Bug: `get_range_coordinates_air` says it can't parse the returned data #123

Closed lahdjirayhan closed 2 years ago

lahdjirayhan commented 2 years ago

Current behavior

LOWER = (50, 0)
UPPER = (51, 1)
o3.get_range_coordinates_air(LOWER, UPPER)

The above code block raises an Exception as follows:

Exception: Can't parse the returned response:
{'status': 'ok', 'data': [{'lat': 50.805778, 'lon': 0.271611, 'uid': 3175, 'aqi': '69', 'station': {'name': 'Eastbourne, United Kingdom', 'time': '2022-04-23T00:00:00+09:00'}}]}

Expected behavior

It should parse normally because the returned data looks fine as it is.

Version information

Python 3.8.5, Ozone v1.7.1

lahdjirayhan commented 2 years ago

Hold my beer, I got this