| 1 |
labgrid-webapp |
| 2 |
============== |
| 3 |
|
| 4 |
labgrid-webapp implements a browser interface to access some of labgrid's |
| 5 |
information. |
| 6 |
|
| 7 |
Quick Start |
| 8 |
----------- |
| 9 |
|
| 10 |
.. code-block:: bash |
| 11 |
|
| 12 |
$ cd labgrid/ |
| 13 |
$ source venv/bin/activate |
| 14 |
venv $ pip install -r contrib/requirements-webapp.txt |
| 15 |
venv $ ./contrib/labgrid-webapp --help |
| 16 |
usage: labgrid-webapp [-h] [--coordinator ADDRESS] [--port PORT] [--proxy PROXY] |
| 17 |
|
| 18 |
Labgrid webapp |
| 19 |
|
| 20 |
options: |
| 21 |
-h, --help show this help message and exit |
| 22 |
--coordinator ADDRESS, -x ADDRESS |
| 23 |
Coordinator address as HOST[:PORT] (default: 127.0.0.1:20408) |
| 24 |
--port PORT Port to serve on |
| 25 |
--proxy PROXY, -P PROXY |
| 26 |
|
| 27 |
venv $ ./contrib/labgrid-webapp |
| 28 |
INFO: Available routes: |
| 29 |
INFO: - /labgrid/graph |
| 30 |
INFO: Started server process [2378028] |
| 31 |
INFO: Waiting for application startup. |
| 32 |
INFO: Application startup complete. |
| 33 |
INFO: Uvicorn running on http://0.0.0.0:8800 (Press CTRL+C to quit) |
| 34 |
... |
| 35 |
|
| 36 |
Please note that the graph feature relies on a valid `graphviz` system |
| 37 |
installation. See http://graphviz.org/download/ |
| 38 |
|
| 39 |
By default the application will start on port 8800. |
| 40 |
|
| 41 |
To see the graph, go to http://0.0.0.0:8800/labgrid/graph |
| 42 |
|
| 43 |
See http://0.0.0.0:8800/docs for more information on available endpoints. |