Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lahdjirayhan opened this issue Apr 22, 2022 · 1 comment · Fixed by #124
Closed

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

lahdjirayhan opened this issue Apr 22, 2022 · 1 comment · Fixed by #124
Assignees

Comments

@lahdjirayhan
Copy link
Contributor

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
Copy link
Contributor Author

Hold my beer, I got this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants