From c33236020deb3a45fbadf8dad1a9bcdc4b9309dd Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Tue, 26 May 2026 14:58:11 +0200 Subject: [PATCH] install.sh: update credentials template to current format Switch from flat username/password keys to nested credentials block and add interval_s, host, port, log_dir with their defaults. Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 1c3435b..4e177c7 100755 --- a/install.sh +++ b/install.sh @@ -51,10 +51,16 @@ chmod 700 "$CREDS_DIR" if [[ ! -f "$CREDS_FILE" ]]; then cat > "$CREDS_FILE" <<'EOF' { - "username": "me@example.com", - "password": "secret", - "vin": "", - "domains": ["charging", "measurements", "readiness"] + "credentials": { + "username": "me@example.com", + "password": "secret" + }, + "vin": "", + "domains": ["charging", "measurements", "readiness"], + "interval_s": 300, + "host": "0.0.0.0", + "port": 9999, + "log_dir": "./logs" } EOF chmod 600 "$CREDS_FILE" @@ -110,7 +116,7 @@ echo "━━━━━━━━━━━━━━━━━━━━━━━━ echo " Installation complete." echo "" echo " Next steps:" -echo " 1. Edit credentials:" +echo " 1. Edit credentials (username, password, vin, interval_s, …):" echo " \$EDITOR $CREDS_FILE" echo "" echo " 2. Start the service:"