MAJ de domo91.py depuis develop

This commit is contained in:
2025-04-18 10:40:47 +02:00
parent 1d17bd7624
commit f244ce150d
2 changed files with 52 additions and 52 deletions

96
.idea/workspace.xml generated
View File

@@ -50,55 +50,55 @@
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
<option name="showScratchesAndConsoles" value="false" /> <option name="showScratchesAndConsoles" value="false" />
</component> </component>
<component name="PropertiesComponent"><![CDATA[{ <component name="PropertiesComponent">{
"keyToString": { &quot;keyToString&quot;: {
"Python.AlerteMonitoring.executor": "Run", &quot;Python.AlerteMonitoring.executor&quot;: &quot;Run&quot;,
"Python.Alerte_journalière.executor": "Run", &quot;Python.Alerte_journalière.executor&quot;: &quot;Run&quot;,
"Python.AlertesSondesSaclay.executor": "Run", &quot;Python.AlertesSondesSaclay.executor&quot;: &quot;Run&quot;,
"Python.Alertes_Saclay.executor": "Run", &quot;Python.Alertes_Saclay.executor&quot;: &quot;Run&quot;,
"Python.Alertes_Telegram.executor": "Run", &quot;Python.Alertes_Telegram.executor&quot;: &quot;Run&quot;,
"Python.Alertes_saclay.executor": "Run", &quot;Python.Alertes_saclay.executor&quot;: &quot;Run&quot;,
"Python.Alertes_telegram.executor": "Run", &quot;Python.Alertes_telegram.executor&quot;: &quot;Run&quot;,
"Python.Base.executor": "Run", &quot;Python.Base.executor&quot;: &quot;Run&quot;,
"Python.Base2.executor": "Run", &quot;Python.Base2.executor&quot;: &quot;Run&quot;,
"Python.Chat-Id.executor": "Run", &quot;Python.Chat-Id.executor&quot;: &quot;Run&quot;,
"Python.Chaufferie.executor": "Run", &quot;Python.Chaufferie.executor&quot;: &quot;Run&quot;,
"Python.Code_général.executor": "Run", &quot;Python.Code_général.executor&quot;: &quot;Run&quot;,
"Python.Connexion_mysql.executor": "Run", &quot;Python.Connexion_mysql.executor&quot;: &quot;Run&quot;,
"Python.Cuisine_meudon.executor": "Run", &quot;Python.Cuisine_meudon.executor&quot;: &quot;Run&quot;,
"Python.Cuisine_saclay.executor": "Run", &quot;Python.Cuisine_saclay.executor&quot;: &quot;Run&quot;,
"Python.Général.executor": "Run", &quot;Python.Général.executor&quot;: &quot;Run&quot;,
"Python.Insertion_tables_Msql.executor": "Run", &quot;Python.Insertion_tables_Msql.executor&quot;: &quot;Run&quot;,
"Python.Lecture_tableau_frigos.executor": "Run", &quot;Python.Lecture_tableau_frigos.executor&quot;: &quot;Run&quot;,
"Python.Monitor.executor": "Run", &quot;Python.Monitor.executor&quot;: &quot;Run&quot;,
"Python.Saclay.executor": "Run", &quot;Python.Saclay.executor&quot;: &quot;Run&quot;,
"Python.Saclay_buffer.executor": "Run", &quot;Python.Saclay_buffer.executor&quot;: &quot;Run&quot;,
"Python.Sondes tracker.executor": "Run", &quot;Python.Sondes tracker.executor&quot;: &quot;Run&quot;,
"Python.Streamlit.executor": "Run", &quot;Python.Streamlit.executor&quot;: &quot;Run&quot;,
"Python.Streamlit_Saaclay.executor": "Run", &quot;Python.Streamlit_Saaclay.executor&quot;: &quot;Run&quot;,
"Python.Streamlit_Saclay.executor": "Run", &quot;Python.Streamlit_Saclay.executor&quot;: &quot;Run&quot;,
"Python.Telegram_sondes.executor": "Run", &quot;Python.Telegram_sondes.executor&quot;: &quot;Run&quot;,
"Python.Test Tables MYSQL.executor": "Run", &quot;Python.Test Tables MYSQL.executor&quot;: &quot;Run&quot;,
"Python.Test Tables Sondes.executor": "Run", &quot;Python.Test Tables Sondes.executor&quot;: &quot;Run&quot;,
"Python.Test table Meudon.executor": "Run", &quot;Python.Test table Meudon.executor&quot;: &quot;Run&quot;,
"Python.Test table Saclay.executor": "Run", &quot;Python.Test table Saclay.executor&quot;: &quot;Run&quot;,
"Python.Test.executor": "Run", &quot;Python.Test.executor&quot;: &quot;Run&quot;,
"Python.Test_mail.executor": "Run", &quot;Python.Test_mail.executor&quot;: &quot;Run&quot;,
"Python.Tracker.executor": "Run", &quot;Python.Tracker.executor&quot;: &quot;Run&quot;,
"Python.Vérification Triggers.executor": "Run", &quot;Python.Vérification Triggers.executor&quot;: &quot;Run&quot;,
"Python.Vérification_temperatures_alertes_mail.executor": "Run", &quot;Python.Vérification_temperatures_alertes_mail.executor&quot;: &quot;Run&quot;,
"Python.domo91.executor": "Run", &quot;Python.domo91.executor&quot;: &quot;Run&quot;,
"Python.logs_analyses.executor": "Run", &quot;Python.logs_analyses.executor&quot;: &quot;Run&quot;,
"Python.test.executor": "Run", &quot;Python.test.executor&quot;: &quot;Run&quot;,
"RunOnceActivity.ShowReadmeOnStart": "true", &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
"RunOnceActivity.git.unshallow": "true", &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
"git-widget-placeholder": "Merging product", &quot;git-widget-placeholder&quot;: &quot;Merging product&quot;,
"ignore.virus.scanning.warn.message": "true", &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
"last_opened_file_path": "C:/Users/miche/PycharmProjects/Gestion sondes", &quot;last_opened_file_path&quot;: &quot;C:/Users/miche/PycharmProjects/Gestion sondes&quot;,
"settings.editor.selected.configurable": "com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable", &quot;settings.editor.selected.configurable&quot;: &quot;com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable&quot;,
"settings.editor.splitter.proportion": "0.28861153" &quot;settings.editor.splitter.proportion&quot;: &quot;0.28861153&quot;
} }
}]]></component> }</component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\miche\PycharmProjects\Gestion sondes" /> <recent name="C:\Users\miche\PycharmProjects\Gestion sondes" />

View File

@@ -171,10 +171,10 @@ if st.session_state["authenticated"]:
sonde_choisie = st.selectbox("🧪 Choisissez une sonde :", sondes) sonde_choisie = st.selectbox("🧪 Choisissez une sonde :", sondes)
df_sonde = df[df["Sonde"] == sonde_choisie] df_sonde = df[df["Sonde"] == sonde_choisie]
# Ajouter une colonne Heure pour faciliter les filtres # Ajouter une colonne Heure pour faciliter les filtres
df_sonde["Heure"] = df_sonde["Date"].dt.hour df_sonde["Heure"] = df_sonde["Date"].dt.hour
# Filtrage par tranche horaire # Filtrage par tranche horaire
tranche = st.radio("🕒 Tranche horaire :", tranche = st.radio("🕒 Tranche horaire :",
["Toute la journée", "Matin (6h-12h)", "Après-midi (12h-18h)", "Nuit (18h-6h)"]) ["Toute la journée", "Matin (6h-12h)", "Après-midi (12h-18h)", "Nuit (18h-6h)"])
@@ -203,7 +203,7 @@ if st.session_state["authenticated"]:
return "" return ""
# Appliquer le style uniquement à la colonne "Temperature" # Appliquer le style uniquement à la colonne "Temperature"
styled_df = df_filtré.style.applymap(surlignage_temp, subset=["Temperature"]) styled_df = df_filtré.style.applymap(surlignage_temp, subset=["Temperature"])
st.dataframe(styled_df, use_container_width=True) st.dataframe(styled_df, use_container_width=True)
@@ -218,7 +218,7 @@ if st.session_state["authenticated"]:
ax.xaxis.set_major_formatter(mdates.DateFormatter('%H:%M')) ax.xaxis.set_major_formatter(mdates.DateFormatter('%H:%M'))
ax.legend() ax.legend()
st.pyplot(fig) st.pyplot(fig)
# --- Affichage des alertes du jour --- # --- Affichage des alertes du jour ---
afficher_alertes = st.toggle("🚨 Afficher les alertes du jour") afficher_alertes = st.toggle("🚨 Afficher les alertes du jour")
if afficher_alertes: if afficher_alertes: