Exemple #1
0
def app(app):
    scheduler.setup(app)
    status.setup(app)
    commander_sim.setup(app)
    datastore.setup(app)
    codec.setup(app)
    return app
def app(app):
    service_status.setup(app)
    scheduler.setup(app)
    service_store.setup(app)
    commander_sim.setup(app)
    codec.setup(app)
    return app
Exemple #3
0
def app(app):
    """App + controller routes"""
    service_status.setup(app)
    block_store.setup(app)
    commander_sim.setup(app)
    scheduler.setup(app)
    codec.setup(app)
    spark.setup(app)
    return app
async def app(app):
    status.setup(app)
    scheduler.setup(app)
    datastore.setup(app)
    commander_sim.setup(app)
    codec.setup(app)
    device.setup(app)
    seeder.setup(app)
    return app
Exemple #5
0
def app(app):
    """App + controller routes"""
    status.setup(app)
    datastore.setup(app)
    commander_sim.setup(app)
    scheduler.setup(app)
    codec.setup(app)
    device.setup(app)
    return app
Exemple #6
0
async def app(app, loop):
    app['config']['volatile'] = True
    service_status.setup(app)
    scheduler.setup(app)
    config_store.setup(app)
    block_store.setup(app)
    commander_sim.setup(app)
    unit_conversion.setup(app)
    codec.setup(app)
    spark.setup(app)
    return app
async def app(app, mock_publisher, dummy_listener):
    """App + controller routes"""

    status.setup(app)
    scheduler.setup(app)
    datastore.setup(app)
    commander_sim.setup(app)
    codec.setup(app)
    device.setup(app)
    seeder.setup(app)
    object_api.setup(app)
    remote_api.setup(app)

    return app
Exemple #8
0
async def app(app, loop, mocker):
    """App + controller routes"""
    mocker.patch(TESTED + '.PUBLISH_INTERVAL_S', 0.001)

    status.setup(app)
    scheduler.setup(app)
    commander_sim.setup(app)
    datastore.setup(app)
    seeder.setup(app)
    codec.setup(app)
    device.setup(app)

    error_response.setup(app)
    sse_api.setup(app)

    return app
async def app(app, loop):
    """App + controller routes"""
    service_status.setup(app)
    scheduler.setup(app)
    commander_sim.setup(app)
    block_store.setup(app)
    block_cache.setup(app)
    config_store.setup(app)
    unit_conversion.setup(app)
    codec.setup(app)
    synchronization.setup(app)
    spark.setup(app)

    mqtt_api.setup(app)

    return app
Exemple #10
0
def main():
    app = service.create_app(parser=create_parser())
    logging.captureWarnings(True)
    config = app['config']

    if config['list_devices']:
        LOGGER.info('Listing connected devices: ')
        for dev in [[v for v in p] for p in communication.all_ports()]:
            LOGGER.info(f'>> {" | ".join(dev)}')
        # Exit application
        return

    status.setup(app)
    http_client.setup(app)

    if config['simulation']:
        commander_sim.setup(app)
    else:
        communication.setup(app)
        commander.setup(app)

    scheduler.setup(app)
    events.setup(app)

    couchdb_client.setup(app)
    datastore.setup(app)
    codec.setup(app)
    device.setup(app)
    broadcaster.setup(app)

    error_response.setup(app)
    debug_api.setup(app)
    alias_api.setup(app)
    object_api.setup(app)
    system_api.setup(app)
    remote_api.setup(app)
    codec_api.setup(app)
    sse_api.setup(app)

    seeder.setup(app)

    service.furnish(app)
    service.run(app)
Exemple #11
0
async def app(app, loop):
    """App + controller routes"""
    status.setup(app)
    scheduler.setup(app)
    commander_sim.setup(app)
    datastore.setup(app)
    codec.setup(app)
    seeder.setup(app)
    device.setup(app)

    error_response.setup(app)
    debug_api.setup(app)
    alias_api.setup(app)
    object_api.setup(app)
    system_api.setup(app)
    codec_api.setup(app)
    sse_api.setup(app)

    return app
Exemple #12
0
async def app(app, loop):
    """App + controller routes"""
    service_status.setup(app)
    scheduler.setup(app)
    commander_sim.setup(app)
    block_store.setup(app)
    block_cache.setup(app)
    config_store.setup(app)
    unit_conversion.setup(app)
    codec.setup(app)
    synchronization.setup(app)
    spark.setup(app)

    error_response.setup(app)
    debug_api.setup(app)
    blocks_api.setup(app)
    system_api.setup(app)
    settings_api.setup(app)

    return app