125 location = weather.GeoLocation.by_query(resp.search_params[
"query"])
128 json_data = resp.json()
132 service=
"Open-meteo",
136 for index, time
in enumerate(json_data[
"hourly"][
"time"]):
138 if time < json_data[
"current"][
"time"]:
143 for key
in data_of_interest:
144 hourly_data[key] = json_data[
"hourly"][key][index]
148 weather_answer.forecasts.append(forecast_data)
150 res.add(weather_answer)