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:
parent
f2a89badf1
commit
5fa7d8fd11
4 changed files with 57 additions and 8 deletions
|
|
@ -110,6 +110,18 @@ def create_app():
|
|||
)
|
||||
return jsonify({'ok': True, 'ssh_enabled': enable})
|
||||
|
||||
# ── DEBUG ENDPOINTS ────────────────────────────────────────────────────
|
||||
@app.route('/api/1/debug/redis-keys')
|
||||
def redis_keys():
|
||||
"""Debug endpoint — list Redis keys for GPS/IMU troubleshooting."""
|
||||
try:
|
||||
import redis
|
||||
r = redis.Redis(host='localhost', port=6379, decode_responses=True)
|
||||
keys = r.keys('*')
|
||||
return jsonify({'keys': sorted(keys)})
|
||||
except Exception as e:
|
||||
return jsonify({'error': str(e)}), 503
|
||||
|
||||
# Start background forwarder thread
|
||||
forwarder.start_retry_thread()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue