How daniego/rover-webserver works
rover-webserver is a Flask-based admin interface with browser pages and Bluetooth controller demos. The main workflow is a user opening a page, Flask selecting a template, and browser-side code interacting with a Bluetooth device or the configured engine service. The README also describes UV4L and engine host configuration. Source excerpts do not show the templates’ asset wiring or the container’s nginx routing, so those relationships are omitted; the /thing stream’s hardware object is referenced but not defined in the sampled source.
Main entry points: main.py Flask routes · bluetooth_handler.js Bluetooth handler · bootstrap.js Bootstrap UI · templates Admin pages
Components 10
Web server
- Flask routes
webserver/main.py - Thing state stream
webserver/main.py
Browser interface
- Admin pages
webserver/templates - Bluetooth handler
webserver/static/js/bluetooth_handler.js - Stylesheets
webserver/static/css
Browser libraries
- jQuery
webserver/static/js/jquery-1.12.4.js - Bootstrap UI
webserver/static/js/bootstrap.js
Other components
- Admin user
- BLE device
- Engine service
Connections 7
- Admin user → Flask routes: requests pages
webserver/main.py - Flask routes → Admin pages: renders templates
webserver/main.py - Admin user → Bluetooth handler: starts demo
- Bluetooth handler → BLE device: reads notifications
webserver/static/js/bluetooth_handler.js - Bluetooth handler → Engine service: posts readings
webserver/static/js/bluetooth_handler.js - Bootstrap UI → jQuery: requires
webserver/static/js/bootstrap.js - Flask routes → Thing state stream: serves events
webserver/main.py