Skip to content

Latest commit

 

History

History

contrib

labgrid-webapp

labgrid-webapp implements a browser interface to access some of labgrid's information.

Quick Start

$ cd labgrid/
$ source venv/bin/activate
venv $ pip install -r contrib/requirements-webapp.txt
venv $ ./contrib/labgrid-webapp --help
usage: labgrid-webapp [-h] [--crossbar URL] [--port PORT] [--proxy PROXY]

Labgrid webapp

options:
  -h, --help            show this help message and exit
  --crossbar URL, -x URL
                        Crossbar websocket URL (default: ws:https://127.0.0.1:20408/ws)
  --port PORT           Port to serve on
  --proxy PROXY, -P PROXY

venv $ ./contrib/labgrid-webapp --help
INFO:     Available routes:
INFO:       - /labgrid/graph
INFO:     Started server process [2378028]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http:https://0.0.0.0:8800 (Press CTRL+C to quit)
...

Please note that the graph feature relies on a valid graphviz system installation.

By default the application will start on port 8800.

See http:https://0.0.0.0:8800/docs for more information on available endpoints.