Kobo: URL https + curl -L + entrée nm (start/stop)
This commit is contained in:
@@ -6,7 +6,7 @@ BASE="/mnt/onboard/.adds/Monitorink"
|
||||
cd "$BASE" || exit 1
|
||||
|
||||
# --- Configuration (adapter au besoin) ---
|
||||
export MONITORINK_URL="http://monitorink.homelab.nestor-server.fr/image.png"
|
||||
export MONITORINK_URL="https://monitorink.homelab.nestor-server.fr/image.png"
|
||||
export MONITORINK_REFRESH=600
|
||||
|
||||
# Gouverneur CPU économe pendant les phases actives.
|
||||
|
||||
@@ -53,7 +53,7 @@ while true; do
|
||||
./scripts/force-wifi-connection.sh
|
||||
./scripts/obtain-ip.sh
|
||||
|
||||
if curl -fsS -m 30 -o "$TMP" "$IMAGE_URL"; then
|
||||
if curl -fsSL -m 30 -o "$TMP" "$IMAGE_URL"; then
|
||||
display
|
||||
else
|
||||
"$FBINK" -pmh "Monitorink : image indisponible ($(date '+%H:%M'))"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Entrée NickelMenu pour Monitorink.
|
||||
# À copier dans /mnt/onboard/.adds/nm/monitorink
|
||||
# Lance le dashboard en tâche de fond. Pour arrêter : maintenir le bouton power
|
||||
# (réveil + reprise Nickel), ou tuer le process via une entrée dédiée si besoin.
|
||||
# À copier dans /mnt/onboard/.adds/nm/monitorink (fichier séparé, ne touche pas à `config`).
|
||||
# NickelMenu agrège tous les fichiers du dossier nm/.
|
||||
|
||||
menu_item :main :Monitorink :cmd_spawn :exec /mnt/onboard/.adds/Monitorink/monitorink.sh
|
||||
chain_success :dialog :Monitorink démarré
|
||||
menu_item :main :Monitorink STOP :cmd_spawn :exec pkill -f monitorinkloop.sh
|
||||
|
||||
Reference in New Issue
Block a user