Kobo: logs sync (fiabilité) + refresh 180s

This commit is contained in:
2026-06-15 12:22:47 +02:00
parent 19a0d9153f
commit 5ac4c23118
2 changed files with 3 additions and 2 deletions

View File

@@ -11,9 +11,10 @@ cd "$BASE" || exit 1
# --- Configuration (adapter au besoin) --- # --- Configuration (adapter au besoin) ---
# HTTP direct vers l'IP du homelab (busybox wget, pas de curl/DNS/TLS requis). # HTTP direct vers l'IP du homelab (busybox wget, pas de curl/DNS/TLS requis).
export MONITORINK_URL="http://192.168.0.43:8899/image.png" export MONITORINK_URL="http://192.168.0.43:8899/image.png"
export MONITORINK_REFRESH=600 export MONITORINK_REFRESH=180 # secondes (compromis fraîcheur horloge / batterie ; ajustable)
echo "===== monitorink start $(date) =====" >> "$LOG" echo "===== monitorink start $(date) =====" >> "$LOG"
sync
# Gouverneur CPU économe (Libra 2 = policy0 ; fallback générique). # Gouverneur CPU économe (Libra 2 = policy0 ; fallback générique).
echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 2>/dev/null echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 2>/dev/null

View File

@@ -16,7 +16,7 @@ TMP="/tmp/monitorink.png"
FBINK="./bin/fbink/fbink" FBINK="./bin/fbink/fbink"
BUSYBOX="./bin/busybox_kobo" BUSYBOX="./bin/busybox_kobo"
log() { echo "[$(date '+%H:%M:%S')] $*"; } log() { echo "[$(date '+%H:%M:%S')] $*"; sync; }
fetch() { fetch() {
# busybox wget (toujours présent), fallback curl si dispo dans le PATH. # busybox wget (toujours présent), fallback curl si dispo dans le PATH.