refactor: move home coordinates to gitignored secrets file

This commit is contained in:
Krzysztof kuhy Rudnicki 2026-03-02 12:57:34 +01:00
parent 3f5d57871f
commit bf4a8ce173
2 changed files with 8 additions and 5 deletions

3
.gitignore vendored
View File

@ -316,3 +316,6 @@ python_pkg/cinema_planner/pasted_content.txt
# FVM Version Cache # FVM Version Cache
.fvm/ .fvm/
CPP/miscelanious/howManyValidISBNNumbersAreThere/ISBN.txt CPP/miscelanious/howManyValidISBNNumbersAreThere/ISBN.txt
# Focus mode secrets (contains home GPS coordinates)
phone_focus_mode/config_secrets.sh

View File

@ -2,14 +2,14 @@
# ============================================================ # ============================================================
# Focus Mode Configuration # Focus Mode Configuration
# ============================================================ # ============================================================
# IMPORTANT: You MUST set HOME_LAT and HOME_LON to your # IMPORTANT: You MUST set HOME_LAT and HOME_LON in config_secrets.sh
# apartment's coordinates before deploying. # before deploying.
# Get them from Google Maps: right-click your apartment → coords # Get them from Google Maps: right-click your apartment → coords
# ============================================================ # ============================================================
# --- Home location (Warsaw, auto-detected via GPS on 2026-02-22) --- # --- Home location (loaded from config_secrets.sh, not tracked by git) ---
export HOME_LAT="REDACTED_LAT" SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
export HOME_LON="REDACTED_LON" . "$SCRIPT_DIR/config_secrets.sh"
# --- Radius in meters --- # --- Radius in meters ---
export RADIUS=250 export RADIUS=250