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] 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.' #174

Open jimfoundry opened 1 year ago

jimfoundry commented 1 year ago

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

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 year ago

Hey! Thanks for creating your first issue on Ozon3!

Milind220 commented 1 year ago

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?

hkafrawi commented 8 months ago

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