TD9991 commited on
Commit
2e88d65
1 Parent(s): 603824f

fix weather temp graph

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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['daily_temperature_2m_max_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"))
 
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"))