diff --git a/command-center/README.md b/command-center/README.md index 152dd3e7..ee1a8aab 100644 --- a/command-center/README.md +++ b/command-center/README.md @@ -6,12 +6,18 @@ This is a textual TUI panel for the controller server. ## Usage -Run +Run the following command to open command center in terminal. +```sh +uv run textual run src.__main__:app ``` -uv run textual run src.__main__:LightDanceApp + +In order to open command center in browser, run + +```sh +uv run server.py ``` ## Configuration -You can change data such as serial port or music file path in `src/config.py`. Alternatively, you can also connect to other serial port or other music after opening command center UI. \ No newline at end of file +You can change data such as serial port or music file path in `src/config.py`. Alternatively, you can also connect to other serial port or other music after opening command center UI. diff --git a/command-center/server.py b/command-center/server.py index 9585183f..6d874faa 100644 --- a/command-center/server.py +++ b/command-center/server.py @@ -1,5 +1,5 @@ from textual_serve.server import Server -server = Server("python -m src", host="192.168.0.140") +server = Server("uv run -m src", host="0.0.0.0", port=5678) server.serve(debug=True)