def app(app):
    service_status.setup(app)
    scheduler.setup(app)
    service_store.setup(app)
    commander_sim.setup(app)
    codec.setup(app)
    return app
def app(app):
    app['ini'] = parse_ini(app)
    app['config']['simulation'] = True
    app['config']['volatile'] = True
    app['config']['device_id'] = '123456789012345678901234'

    service_status.setup(app)
    scheduler.setup(app)
    codec.setup(app)

    connection.setup(app)
    commander.setup(app)

    global_store.setup(app)
    service_store.setup(app)
    block_store.setup(app)
    block_cache.setup(app)
    synchronization.setup(app)
    controller.setup(app)

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

    return app
def app(app):
    service_status.setup(app)
    scheduler.setup(app)
    codec.setup(app)
    service_store.setup(app)
    connection_sim.setup(app)
    return app
Exemple #4
0
def app(app, mocker):
    app['config']['command_timeout'] = 1
    service_status.setup(app)
    scheduler.setup(app)
    codec.setup(app)
    connection_sim.setup(app)
    commander.setup(app)
    return app
Exemple #5
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
def app(app):
    service_status.setup(app)
    scheduler.setup(app)
    codec.setup(app)
    connection_sim.setup(app)
    commander.setup(app)
    block_store.setup(app)
    block_cache.setup(app)
    global_store.setup(app)
    service_store.setup(app)
    synchronization.setup(app)
    controller.setup(app)
    return app
Exemple #7
0
def app(app):
    app['config']['broadcast_interval'] = 0.01
    app['config']['history_topic'] = 'testcast/history'
    app['config']['state_topic'] = 'testcast/state'
    service_status.setup(app)
    scheduler.setup(app)
    block_cache.setup(app)
    codec.setup(app)
    block_store.setup(app)
    global_store.setup(app)
    service_store.setup(app)
    connection_sim.setup(app)
    commander.setup(app)
    synchronization.setup(app)
    controller.setup(app)
    return app
Exemple #8
0
async def app(app, event_loop):
    """App + controller routes"""
    scheduler.setup(app)
    service_status.setup(app)
    block_store.setup(app)
    block_cache.setup(app)
    global_store.setup(app)
    service_store.setup(app)
    codec.setup(app)
    connection_sim.setup(app)
    commander.setup(app)
    synchronization.setup(app)
    controller.setup(app)

    mqtt_api.setup(app)

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

    if getenv('ENABLE_DEBUGGER', False):  # pragma: no cover
        import debugpy
        debugpy.listen(('0.0.0.0', 5678))
        LOGGER.info('Debugger is enabled and listening on 5678')

    if config['simulation']:
        config['device_id'] = config['device_id'] or '123456789012345678901234'

    scheduler.setup(app)
    mqtt.setup(app)
    http.setup(app)

    global_store.setup(app)
    service_store.setup(app)
    block_store.setup(app)
    block_cache.setup(app)

    service_status.setup(app)
    codec.setup(app)
    connection.setup(app)
    commander.setup(app)
    synchronization.setup(app)

    controller.setup(app)
    broadcaster.setup(app)

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

    service.furnish(app)
    service.run(app)
Exemple #10
0
async def app(app, event_loop):
    """App + controller routes"""
    service_status.setup(app)
    scheduler.setup(app)
    codec.setup(app)
    connection_sim.setup(app)
    commander.setup(app)
    block_store.setup(app)
    block_cache.setup(app)
    global_store.setup(app)
    service_store.setup(app)
    synchronization.setup(app)
    controller.setup(app)

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

    return app