plex-restart/.env.example
2026-04-12 13:03:45 -04:00

32 lines
978 B
Plaintext

# PiKVM Monitor Configuration
# IP address of the host to monitor
HOST_IP=192.168.1.10
# Fallback gateway IP (for network-level connectivity check)
GATEWAY_IP=192.168.1.1
# Interval between pings (in seconds) - default: 180 (3 minutes)
PING_INTERVAL=180
# Downtime threshold before triggering reset (in minutes) - default: 15
# 15 minutes = 5 failed pings at 3-minute intervals
DOWNTIME_THRESHOLD=15
# GPIO pin number for power button control - default: BCM pin 17
# Check your PiKVM documentation for the correct GPIO pin
POWER_BUTTON_GPIO=17
# Duration of long press to power down (in seconds) - default: 5
LONG_PRESS_DURATION=5
# Duration of short press to power on (in seconds) - default: 1
SHORT_PRESS_DURATION=1
# Wait time between power down and power on (in seconds) - default: 90 (1.5 min)
# Allows time for cooldown and system shutdown
WAIT_BEFORE_REBOOT=90
# Log file path (inside container at /var/log/pikvm-monitor.log)
LOG_FILE=/var/log/pikvm-monitor.log