Spaces:
Runtime error
Runtime error
fix weather temp graph
Browse files
utils.py
CHANGED
@@ -78,7 +78,7 @@ def respond(elevage, temperature, humidite, chutes_de_neige, couverture_nuageuse
|
|
78 |
def get_and_plot_meteo(lat, lon):
|
79 |
df = get_info_meteo(lat, lon)
|
80 |
fig = go.Figure()
|
81 |
-
fig.add_trace(go.Scatter(x=df['date'], y=df['
|
82 |
name="Température °C", mode="lines+markers"))
|
83 |
fig.add_trace(go.Scatter(x=df['date'], y=df['avg_hourly_relative_humidity_2m_%'],
|
84 |
name="Humidité moyenne en %", mode="lines+markers", yaxis="y2"))
|
|
|
78 |
def get_and_plot_meteo(lat, lon):
|
79 |
df = get_info_meteo(lat, lon)
|
80 |
fig = go.Figure()
|
81 |
+
fig.add_trace(go.Scatter(x=df['date'], y=df['avg_hourly_soil_temperature_0cm_C'],
|
82 |
name="Température °C", mode="lines+markers"))
|
83 |
fig.add_trace(go.Scatter(x=df['date'], y=df['avg_hourly_relative_humidity_2m_%'],
|
84 |
name="Humidité moyenne en %", mode="lines+markers", yaxis="y2"))
|