# PM3 Configuration PM3_DEVICE=/dev/ttyACM0 PM3_TIMEOUT=30 # Session Configuration SESSION_TIMEOUT=300 # Server Configuration HOST=0.0.0.0 PORT=8000 # Update Configuration GITHUB_REPO=yourusername/dangerous-pi UPDATE_CHECK_INTERVAL=3600 # Wi-Fi Configuration WLAN_INTERFACE=wlan0 USB_WLAN_INTERFACE=wlan1 # UPS Configuration # UPS_TYPE options: "auto" (detect), "pisugar", "i2c", "none" # auto: Automatically detect PiSugar or I2C fuel gauge at startup UPS_TYPE=auto UPS_CHECK_INTERVAL=60 # I2C UPS settings (for generic fuel gauge HATs like MAX17040/MAX17048) UPS_I2C_ADDRESS=0x36 # PiSugar UPS settings (for PiSugar 2/3 series) UPS_PISUGAR_HOST=127.0.0.1 UPS_PISUGAR_PORT=8423 # BLE Configuration BLE_ENABLED=true BLE_DEVICE_NAME=DangerousPi # Security # Set AUTH_ENABLED=true to require authentication for all API endpoints AUTH_ENABLED=false AUTH_USERNAME=admin AUTH_PASSWORD=changeme # HTTPS Configuration # Set HTTPS_ENABLED=true to enable HTTPS with self-signed certificates # On first boot with HTTPS enabled, a certificate will be automatically generated # The certificate is valid for 10 years and covers: # - 192.168.4.1 (AP gateway IP) # - dangerous-pi.local (mDNS hostname) # - localhost # Note: Browsers will show a security warning for self-signed certificates # To regenerate the certificate, use the API: POST /api/system/ssl/regenerate HTTPS_ENABLED=false