Ozon3 icon indicating copy to clipboard operation
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.'

Open jimfoundry opened this issue 1 year ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

jimfoundry avatar Jun 26 '23 19:06 jimfoundry

Hey! Thanks for creating your first issue on Ozon3!

github-actions[bot] avatar Jun 26 '23 19:06 github-actions[bot]

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 avatar Jul 10 '23 05:07 Milind220

@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!

hkafrawi avatar Jan 06 '24 00:01 hkafrawi