MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / wardriving_gps

Function wardriving_gps

webapp_modern.py:8290–8298  ·  view source on GitHub ↗

Get current GPS status and position.

()

Source from the content-addressed store, hash-verified

8288 return send_from_directory('web', 'wifi_config.html')
8289
8290
8291# Captive portal detection routes for mobile devices
8292@app.route('/generate_204')
8293@app.route('/gen_204')
8294@app.route('/connecttest.txt')
8295@app.route('/success.txt')
8296@app.route('/ncsi.txt')
8297def captive_portal_detection():
8298 """Handle captive portal detection requests from mobile devices"""
8299 if is_ap_client_request():
8300 # Redirect to captive portal for AP clients
8301 return '''<html><head><meta http-equiv="refresh" content="0; url=/portal"></head><body><a href="/portal">Click here for WiFi setup</a></body></html>''', 302

Callers

nothing calls this directly

Calls 2

_get_wardriving_engineFunction · 0.85
get_statusMethod · 0.45

Tested by

no test coverage detected