fix: pre-liberation review — frames dir, wigle config GET, debug redis-keys endpoint

CRITICAL:
- frames.py: FRAMES_DIR corrected to /tmp/adacam/pics
- frames.py: graceful handling when capture not started

IMPORTANT:
- wigle.py: added GET /api/1/wigle/config endpoint for Varroa
- app.py: added GET /api/1/debug/redis-keys endpoint for GPS troubleshooting
- install.sh: removed python validation that runs from wrong directory
This commit is contained in:
Kayos 2026-03-14 17:59:08 -07:00
parent 064378870b
commit 174de0637e
4 changed files with 57 additions and 8 deletions

View file

@ -21,14 +21,14 @@ cp systemd/adacam-api.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable adacam-api
# Generate device ID if not present
# Note: Config is generated by liberate.sh or on first API start
# We don't validate Python imports here as the working directory matters
if [ ! -f "$DATA_DIR/config.json" ]; then
python3 -c "from adacam_api import config; config.load()"
echo "[*] Generated new device ID"
echo "[*] Config will be generated on first API start"
fi
echo "[*] Starting adacam-api..."
systemctl restart adacam-api
systemctl status adacam-api --no-pager
systemctl status adacam-api --no-pager || true
echo "[+] Installation complete. API running on port 5000"