From bf4a8ce173231a0ab199729758b407f2d4023180 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Mon, 2 Mar 2026 12:57:34 +0100 Subject: [PATCH] refactor: move home coordinates to gitignored secrets file --- .gitignore | 3 +++ phone_focus_mode/config.sh | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index f419996..fde57a6 100644 --- a/.gitignore +++ b/.gitignore @@ -316,3 +316,6 @@ python_pkg/cinema_planner/pasted_content.txt # FVM Version Cache .fvm/ CPP/miscelanious/howManyValidISBNNumbersAreThere/ISBN.txt + +# Focus mode secrets (contains home GPS coordinates) +phone_focus_mode/config_secrets.sh diff --git a/phone_focus_mode/config.sh b/phone_focus_mode/config.sh index 03a92a7..9551858 100755 --- a/phone_focus_mode/config.sh +++ b/phone_focus_mode/config.sh @@ -2,14 +2,14 @@ # ============================================================ # Focus Mode Configuration # ============================================================ -# IMPORTANT: You MUST set HOME_LAT and HOME_LON to your -# apartment's coordinates before deploying. +# IMPORTANT: You MUST set HOME_LAT and HOME_LON in config_secrets.sh +# before deploying. # Get them from Google Maps: right-click your apartment → coords # ============================================================ -# --- Home location (Warsaw, auto-detected via GPS on 2026-02-22) --- -export HOME_LAT="REDACTED_LAT" -export HOME_LON="REDACTED_LON" +# --- Home location (loaded from config_secrets.sh, not tracked by git) --- +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +. "$SCRIPT_DIR/config_secrets.sh" # --- Radius in meters --- export RADIUS=250