Rend l'ensemble du repo agnostique de l'infra perso (paths/domaines/services paramétrés)

This commit is contained in:
jerem
2026-06-19 00:13:50 +02:00
parent 848dac9948
commit df66d33031
8 changed files with 48 additions and 34 deletions

View File

@@ -13,8 +13,8 @@ BASE="/mnt/onboard/.adds/Monitorink"
LOG="$BASE/monitorink.log"
cd "$BASE" || exit 1
# --- Configuration ---
export MONITORINK_URL="http://192.168.0.43:8899/image.png"
# --- Configuration --- (adapter à l'IP/host LAN de ton serveur Monitorink)
export MONITORINK_URL="http://192.168.1.50:8899/image.png"
export MONITORINK_REFRESH=900 # PROD: refresh partiel 15 min (moins de réveils = batterie)
# Cadence du full refresh : côté SERVEUR via MONITORINK_FULL_INTERVAL_MIN (défaut 120 = 2 h),
# indépendante du cycle. Entre deux fulls, seuls les blocs modifiés sont rafraîchis (partiel).

View File

@@ -9,7 +9,7 @@
BASE="$(dirname "$0")"
cd "$BASE" || exit 1
IMAGE_URL="${MONITORINK_URL:-https://monitorink.homelab.nestor-server.fr/image.png}"
IMAGE_URL="${MONITORINK_URL:-http://monitorink.local/image.png}"
# Endpoints du refresh partiel, dérivés de l'URL image (.../image.png -> .../frame.meta|frame.png).
BASE_URL="${IMAGE_URL%/image.png}"
META_URL="$BASE_URL/frame.meta"