From 99300db2ca69cfb66a58b142f9af63e22408243d Mon Sep 17 00:00:00 2001 From: Michel Date: Fri, 12 Sep 2025 14:10:57 +0200 Subject: [PATCH] MAJ SG --- .env | 2 +- .idea/dataSources.local.xml | 2 +- .idea/data_source_mapping.xml | 6 ------ Societe_Generale.py | 2 +- Vider_logs_Vps.py => Vider_Logs.py | 6 +++--- 5 files changed, 6 insertions(+), 12 deletions(-) delete mode 100644 .idea/data_source_mapping.xml rename Vider_logs_Vps.py => Vider_Logs.py (93%) diff --git a/.env b/.env index ebd5fb0..99faa96 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ DB_HOST=162.19.78.131 DB_USER=SG DB_PASSWORD=A*Rb2Q@i72m8tM6@!$* -DB_NAME=SG + MQTT_HOST=162.19.78.131 MQTT_USER=sondes diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index 8829a65..5a26e28 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,6 +1,6 @@ - + #@ diff --git a/.idea/data_source_mapping.xml b/.idea/data_source_mapping.xml deleted file mode 100644 index eee14b2..0000000 --- a/.idea/data_source_mapping.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Societe_Generale.py b/Societe_Generale.py index 14fbb62..fd166dd 100644 --- a/Societe_Generale.py +++ b/Societe_Generale.py @@ -15,7 +15,7 @@ conn = mysql.connector.connect( host=os.getenv("DB_HOST"), user=os.getenv("DB_USER"), password=os.getenv("DB_PASSWORD"), - database="DB_NAME" + database="SG" ) cursor = conn.cursor() diff --git a/Vider_logs_Vps.py b/Vider_Logs.py similarity index 93% rename from Vider_logs_Vps.py rename to Vider_Logs.py index cb602f5..44d3ad2 100644 --- a/Vider_logs_Vps.py +++ b/Vider_Logs.py @@ -1,10 +1,10 @@ import paramiko # Configuration -hostname = "54.36.188.119" +hostname = "162.19.78.131" port = 22 username = "debian" -password = "9DpdTzFj" -chemin_script = "/home/debian/travail/tools/Vider_logs_Vps_local.py" +password = "lpZwixbBUFtGY" +chemin_script = "/home/debian/Gestion_sondes/app/Vider_Logs.py" # Connexion SSH avec clé + passphrase try: