You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromopenmeteo_pyimportOWmanagerfromopenmeteo_py.Hourly.HourlyAirQualityimportHourlyAirQualityfromopenmeteo_py.Options.AirQualityOptionsimportAirQualityOptionsfromopenmeteo_py.Utils.constantsimport*# Latitude, Longitude longitude=33.89latitude=-6.31hourly=HourlyAirQuality()
options=AirQualityOptions(latitude,longitude,auto)
#notice that we had to give the value "None" for the hourly parameter,otherwise you'll be filling the hourly parameter instead of the daily one.mgr=OWmanager(options,OWmanager.air_quality,hourly.all())
# Download data,here we want it as a key value json where the keys are dates and values the corresponding values of that date (technically timestamp)meteo=mgr.get_data(1)
print(meteo)