Serve the main dashboard page or captive portal for AP clients
()
| 4756 | installed, active = _sensing_unit_state() |
| 4757 | arch = os.uname().machine |
| 4758 | has_prebuilt = (arch == 'aarch64' and |
| 4759 | os.path.exists(os.path.join(shared_data.currentdir, 'bin', 'sensing-server'))) |
| 4760 | with _sensing_install_lock: |
| 4761 | installing = _sensing_installing |
| 4762 | return jsonify({ |
| 4763 | 'success': True, 'installed': installed, 'active': active, |
| 4764 | 'installing': installing, 'arch': arch, 'has_prebuilt': has_prebuilt, |
| 4765 | }) |
| 4766 | |
| 4767 | |
| 4768 | @app.route('/api/sensing/install', methods=['POST']) |
| 4769 | def sensing_install(): |
| 4770 | """Install (or rebuild) the bundled sensing backend in the background.""" |
| 4771 | global _sensing_installing |
nothing calls this directly
no test coverage detected