csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
791 stars 175 forks source link

Accessing OWM pollution data #228

Closed nikhilv-quantela closed 6 years ago

nikhilv-quantela commented 6 years ago

Is there a way to access air pollution data of Open Weather Map from pyowm

csparpa commented 6 years ago

Here we go: https://github.com/csparpa/pyowm/wiki/Air-Pollution-API:-Carbon-Monoxide-Index

nikhilv-quantela commented 6 years ago

Thanks a lot, understood.

Just one doubt, I got the value of coi like this. {'precision': 6.818107749495539e-07, 'pressure': 0.10000000149011612, 'value': -5.378958007895562e-07}

Is negative volume mix ratio possible?

Thanks

csparpa commented 6 years ago

It looks like possible (though I have no idea about what it could mean on a chemical point of view :-/ )

On the OWM website, at this page: http://openweathermap.org/api/pollution/co you find examples responses with negative values for the value JSON attribute

I advise to drop a line to OWM tech support, just to be 100% sure they provide meaningful values

nikhilv-quantela commented 6 years ago

Thanks, will look into it