From 3aae3078429dcd2970140535d937d3da4a0ac4bf Mon Sep 17 00:00:00 2001 From: PaulVua Date: Wed, 20 May 2026 11:36:42 +0200 Subject: [PATCH] v1.9.4: UI - Modal pour consulter wifi_connect.log depuis l'admin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajoute un bouton 'WiFi connect logs' dans logs.html qui ouvre un modal avec le contenu de logs/wifi_connect.log (créé en v1.9.3). Permet de diagnostiquer une tentative de connexion WiFi sans passer en SSH. Le contenu est chargé à l'ouverture du modal (pas au chargement de la page) pour éviter de saturer la limite de 6 connexions du navigateur sur la page Journal. Co-Authored-By: Claude Opus 4.7 (1M context) --- VERSION | 2 +- changelog.json | 13 +++++++++++++ html/logs.html | 26 ++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 77fee73..d615fd0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.9.3 +1.9.4 diff --git a/changelog.json b/changelog.json index 049ef8b..0b1f15c 100644 --- a/changelog.json +++ b/changelog.json @@ -1,5 +1,18 @@ { "versions": [ + { + "version": "1.9.4", + "date": "2026-05-20", + "changes": { + "features": [ + "logs.html: bouton 'WiFi connect logs' qui ouvre un modal affichant le contenu de logs/wifi_connect.log (introduit en v1.9.3), avec bouton Refresh. Permet de récupérer la chronologie complète d'une tentative de connexion WiFi directement depuis l'UI admin, sans passer en SSH" + ], + "improvements": [], + "fixes": [], + "compatibility": [] + }, + "notes": "Complète la v1.9.3 en rendant accessible le nouveau log dédié depuis l'interface admin (le fichier était écrit mais pas affiché dans la page Journal)." + }, { "version": "1.9.3", "date": "2026-05-20", diff --git a/html/logs.html b/html/logs.html index f88605e..60fc562 100755 --- a/html/logs.html +++ b/html/logs.html @@ -51,6 +51,11 @@

Le journal

Le journal des logs permet de savoir si les processus du capteur se déroulent correctement.

+
+ +
@@ -83,6 +88,21 @@
+ + +
@@ -187,6 +207,12 @@ window.onload = function() { }//end onload +function loadWifiLog() { + const container = document.getElementById('card_wifi_content'); + if (!container) return; + displayLogFile('../logs/wifi_connect.log', container, true, 1000); +} + function displayLogFile(logFilePath, containerElement, scrollToBottom = true, maxLines = 0) { // Show loading indicator containerElement.innerHTML = '
Loading log file...
';