ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore_integration Namespace Reference

Functions

def register_with_adore_app (app, str url_prefix='/api/hardware')
 

Variables

 _HERE = os.path.dirname(os.path.abspath(__file__))
 

Detailed Description

adore_integration.py

Drop-in integration for adore_api.py.

Add two lines to adore_api.py after the app is created and CORS is applied:

    from hardware_monitor.hardware_monitor_api import get_hardware_monitor_blueprint
    app.register_blueprint(get_hardware_monitor_blueprint())

Then add the tab and panel to index.html (see adore_integration_snippet.html).

Alternatively, call register_with_adore_app(app) from within adore_api.py:

    try:
        from hardware_monitor.web_ui.adore_integration import register_with_adore_app
        register_with_adore_app(app)
        print("✓ hardware_monitor blueprint registered")
    except ImportError as e:
        print(f"⚠ hardware_monitor not available: {e}")

Function Documentation

◆ register_with_adore_app()

def adore_integration.register_with_adore_app (   app,
str   url_prefix = '/api/hardware' 
)
Register the hardware_monitor blueprint and hardware monitor UI route
into an existing Flask app instance (e.g. adore_api.app).

Args:
    app:        The Flask application instance.
    url_prefix: API prefix for hardware endpoints. Default: /api/hardware
Here is the call graph for this function:

Variable Documentation

◆ _HERE

adore_integration._HERE = os.path.dirname(os.path.abspath(__file__))
private