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

Function zap_get_auth_status

webapp_modern.py:18225–18242  ·  view source on GitHub ↗

Get current ZAP authentication configuration status

()

Source from the content-addressed store, hash-verified

18223 else:
18224 return jsonify({'towers': [], 'total': 0})
18225 towers = session.get_cell_towers()
18226 return jsonify({'towers': towers, 'total': len(towers)})
18227 except Exception as e:
18228 return jsonify({'error': str(e)}), 500
18229
18230
18231@app.route('/api/wardriving/zigbee')
18232def wardriving_zigbee():
18233 """Get discovered Zigbee / 802.15.4 devices."""
18234 try:
18235 engine = _get_wardriving_engine()
18236 session_id = request.args.get('session_id')
18237 if session_id and (not engine.session or engine.session.session_id != session_id):
18238 from wardriving import WardrivingSession
18239 session = WardrivingSession(engine.data_dir, session_id=session_id)
18240 elif engine.session:
18241 session = engine.session
18242 else:
18243 return jsonify({'devices': [], 'total': 0})
18244 devices = session.get_zigbee_devices()
18245 return jsonify({'devices': devices, 'total': len(devices)})

Callers

nothing calls this directly

Calls 3

zap_get_auth_statusMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected