Ozon3
Ozon3 copied to clipboard
[BUG] For some cities, current data is reported but historical data is not. Example: get_city_air('Kinshasa') returns a valid result, but get_historical_data(city='Kinshasa') reurns 'Exception: The search for city "Kinshasa" returns no result. It is possible that the city does not have AQI station.'
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment
- OS: [e.g. MacOS]
- Python version [e.g. 3.9.12]
- Ozon3 Version [e.g. 1.7.1]
- Execution Environment [e.g. Jupyter Notebook]
Additional context Add any other context about the problem here.
Hey! Thanks for creating your first issue on Ozon3!
Hey @jimfoundry ! Thanks for creating this big report. It does seem like there isn't historical data available for every single city (though this is the first time I've ever seen this). Unfortunately, there isn't much we can do about the actual problem, as it depends on the underlying WAQI API's capabilities, and not on Ozon3.
However, we could improve the Ozon3 API so that at least a better error message/warning is displayed. Perhaps instead of crashing the program a warning could be better?
@Milind220
If no one has worked on the error message/warning, Id like to work on that request.
A total beginner here in contribution to Open source and I would like this to be my first project!