# VU1-Monitor
A CLI application for monitoring hardware using [VU1 Dials](https://streacom.com/products/vu1-dynamic-analogue-dials/).
## What is this?
The VU1 Dials come with a server application and demo monitoring app out of the box. The Demo app is set up to work on Windows machines only. This application fills this gap for both MacOS and Linux users that want to monitor their hardware using the VU1 Dials.
## Quickstart
### Prerequisites
1. To install `vu1-monitor` it is recommended to use `pipx` to instal the tool.
`pipx` is used to install Python CLI applications globally while still isolating them in virtual environments. `pipx` will manage upgrades and uninstalls of `vu1-monitor`. If `pipx` is not already installed, you can follow any of the options in the official [pipx installation instructions](https://pipx.pypa.io/stable/installation/).
2. `vu1-monitor` is a python CLI application and supports 3.10+.
3. `vu1-monitor` is a "VU" application and expects the `vu-server` to be running.
To run `vu-server`, you can follow the [instructions to install and run the application](https://vudials.com/)
4. GPU support is handled differently per device type.
- Nvidia GPUs will need the `nvidia-smi`.
- AMD GPUs are supported natively through their drivers.
### Install
To install `vu1-monitor` run the following:
```bash
pipx install vu1-monitor
```
### Start monitoring
To start monitoring, you can run the following:
```bash
vu1-monitor start
```
## Commands
`vu1-monitor` provides several utilities for interacting and configuring your VU1-Dials.
### Start & Stop
`vu1-monitor` can be simply started (to run in the background) and stopped:
```bash
# starts monitoring of all available dials
vu1-monitor start
# stop monitoring all available dials
vu1-monitor stop
```
`start` will automatically detect what dials can be updated based on their name.
### Run
`vu1-monitor` provides a `run` utility that runs monitoring within the CLI. By default it will only update the CPU dial. `run` can also update other dials and alter the update interval speed:
```bash
# runs all available dials, including CPU
vu1-monitor run --gpu --mem --net
# runs all dials, except CPU
vu1-monitor run --no-cpu --gpu --mem --net
# updates dials every second
vu1-monitor run --interval 1
```
`vu1-monitor` uses configuration to understand what GPU backend to use. To update this, you can set an envrionment varibale:
```bash
# set GPU backed to NVIDIA (Default)
export VU1__GPU__BACKEND=nvidia
# set GPU backed to AMD
export VU1__GPU__BACKEND=amd
```
### Backlight
`vu1-monitor` provides a series of pre-set backlight colours and brightness profiles for each / all dials.
```bash
# set the CPU dial to its default colour and brightness (LOW & WHITE)
vu1-monitor backlight --dial CPU
# sets the GPU dial backlight to red, at its maximum brightness
vu1-monitor backlight --dial MEMORY --colour RED --brightness MAX
```
### Image
`vu1-monitor` provides a utility to upload background images to each dial:
```bash
### sets the background image of the network dial to your supplied png
vu1-monitor image /your/file/path/dial.png --dial NETWORK
```
> [!NOTE]
> VU1 Dials expect their background images to be either in `.png` or `.jpg` formats and must be exactly 200 x 144 pixels. `vu1-monitor` and the `vu-server` are strict about this requirement and will reject anything outside of this.
### Reset
`vu1-monitor` provides a utility to reset each element (dial, backlight, image) of all dials:
```bash
# reset the position of a dial to 0
vu1-monitor reset dial
# reset the backlight of a dial to OFF
vu1-monitor reset backlight
# reset the image to default vu1-monitor images
vu1-monitor reset image
```
## Configuration
`vu1-monitor` is set up to work with the default configurations of `vu-server`. However, these configurations can be overridden using environment variables. `vu1-monitor` looks for environment variables by looking for the prefix `VU1`.
| Environment Variable Name | Description | Default Value |
| :--- | :--- | :--- |
| `VU1__NAME` | The name of the application | `VU1-Monitor` |
| `VU1__SERVER__HOSTNAME` | The hostname of the VU-Server | `localhost` |
| `VU1__SERVER__PORT` | The port of the VU-Server | `5430` |
| `VU1__SERVER__LOGGING_LEVEL` | The logging level of VU1-Monitor | `INFO` |
| `VU1__SERVER__KEY` | The API key to authenticate with VU-Server. The default value is the default value of VU-Server, please generate a new key in the VU UI Console and set as your new key | `cTpAWYuRpA2zx75Yh961Cg` |
| `VU1__SERVER__TIMEOUTS__RETRIES` | Number of retries to attempt on server timeout | `5` |
| `VU1__SERVER__TIMEOUTS__SLEEP` | Number of seconds to wait before retry attempt | `2` |
| `VU1__CPU__NAME` | The name of the Dial assigned to CPU monitoring | `CPU` |
| `VU1__GPU__NAME` | The name of the Dial assigned to GPU monitoring | `GPU` |
| `VU1__GPU__BACKEND` | The device type of the GPU. Valid values are: `nvidia`, `amd` | `nvidia` |
| `VU1__MEMORY__NAME` | The name of the Dial assigned to Memory monitoring | `MEMORY` |
| `VU1__NETWORK__NAME` | The name of the Dial assigned to Network monitoring | `NETWORK` |
> [!NOTE]
> `vu1-monitor` identifies specific Dials by their name, as configured in `vu-server`. Please make sure that each dial name matches what is expected by `vu1-monitor`
## Supported hardware
`vu1-monitor` supports OS agnostic tooling, particularly across Linux, MacOS & Linux. However, `vu1-monitor` is only tested and maintained on MacOS & Linux (`vu-server` had a default demo app for windows).
Currently, `vu1-monitor` supports NVIDIA & AMD GPU monitoring only. Apple GPU monitoring will be coming in later releases.
Raw data
{
"_id": null,
"home_page": "https://github.com/christian-nickerson/vu1-monitor",
"name": "vu1-monitor",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "vu1, vu1-dials, monitoring",
"author": "Christian Nickerson",
"author_email": "christian_nickerson@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/37/13/0b705cb5948c76e38c755d21dde25690e42085db76210e3529752b61dbd1/vu1_monitor-0.1.0.tar.gz",
"platform": null,
"description": "# VU1-Monitor\n\nA CLI application for monitoring hardware using [VU1 Dials](https://streacom.com/products/vu1-dynamic-analogue-dials/).\n\n## What is this?\n\nThe VU1 Dials come with a server application and demo monitoring app out of the box. The Demo app is set up to work on Windows machines only. This application fills this gap for both MacOS and Linux users that want to monitor their hardware using the VU1 Dials.\n\n## Quickstart\n\n### Prerequisites\n\n1. To install `vu1-monitor` it is recommended to use `pipx` to instal the tool.\n\n `pipx` is used to install Python CLI applications globally while still isolating them in virtual environments. `pipx` will manage upgrades and uninstalls of `vu1-monitor`. If `pipx` is not already installed, you can follow any of the options in the official [pipx installation instructions](https://pipx.pypa.io/stable/installation/).\n\n2. `vu1-monitor` is a python CLI application and supports 3.10+.\n3. `vu1-monitor` is a \"VU\" application and expects the `vu-server` to be running.\n\n To run `vu-server`, you can follow the [instructions to install and run the application](https://vudials.com/)\n\n4. GPU support is handled differently per device type.\n\n - Nvidia GPUs will need the `nvidia-smi`.\n - AMD GPUs are supported natively through their drivers.\n\n### Install\n\nTo install `vu1-monitor` run the following:\n\n```bash\npipx install vu1-monitor\n```\n\n### Start monitoring\n\nTo start monitoring, you can run the following:\n\n```bash\nvu1-monitor start\n```\n\n## Commands\n\n`vu1-monitor` provides several utilities for interacting and configuring your VU1-Dials.\n\n### Start & Stop\n\n`vu1-monitor` can be simply started (to run in the background) and stopped:\n\n```bash\n# starts monitoring of all available dials\nvu1-monitor start\n\n# stop monitoring all available dials\nvu1-monitor stop\n```\n\n`start` will automatically detect what dials can be updated based on their name.\n\n### Run\n\n`vu1-monitor` provides a `run` utility that runs monitoring within the CLI. By default it will only update the CPU dial. `run` can also update other dials and alter the update interval speed:\n\n```bash\n# runs all available dials, including CPU\nvu1-monitor run --gpu --mem --net\n\n# runs all dials, except CPU\nvu1-monitor run --no-cpu --gpu --mem --net\n\n# updates dials every second\nvu1-monitor run --interval 1\n```\n\n`vu1-monitor` uses configuration to understand what GPU backend to use. To update this, you can set an envrionment varibale:\n\n```bash\n# set GPU backed to NVIDIA (Default)\nexport VU1__GPU__BACKEND=nvidia\n\n# set GPU backed to AMD\nexport VU1__GPU__BACKEND=amd\n```\n\n### Backlight\n\n`vu1-monitor` provides a series of pre-set backlight colours and brightness profiles for each / all dials.\n\n```bash\n# set the CPU dial to its default colour and brightness (LOW & WHITE)\nvu1-monitor backlight --dial CPU\n\n# sets the GPU dial backlight to red, at its maximum brightness\nvu1-monitor backlight --dial MEMORY --colour RED --brightness MAX\n```\n\n### Image\n\n`vu1-monitor` provides a utility to upload background images to each dial:\n\n```bash\n### sets the background image of the network dial to your supplied png\n\nvu1-monitor image /your/file/path/dial.png --dial NETWORK\n```\n\n> [!NOTE]\n> VU1 Dials expect their background images to be either in `.png` or `.jpg` formats and must be exactly 200 x 144 pixels. `vu1-monitor` and the `vu-server` are strict about this requirement and will reject anything outside of this.\n\n### Reset\n\n`vu1-monitor` provides a utility to reset each element (dial, backlight, image) of all dials:\n\n```bash\n# reset the position of a dial to 0\nvu1-monitor reset dial\n\n# reset the backlight of a dial to OFF\nvu1-monitor reset backlight\n\n# reset the image to default vu1-monitor images\nvu1-monitor reset image\n```\n\n## Configuration\n\n`vu1-monitor` is set up to work with the default configurations of `vu-server`. However, these configurations can be overridden using environment variables. `vu1-monitor` looks for environment variables by looking for the prefix `VU1`.\n\n| Environment Variable Name | Description | Default Value |\n| :--- | :--- | :--- |\n| `VU1__NAME` | The name of the application | `VU1-Monitor` |\n| `VU1__SERVER__HOSTNAME` | The hostname of the VU-Server | `localhost` |\n| `VU1__SERVER__PORT` | The port of the VU-Server | `5430` |\n| `VU1__SERVER__LOGGING_LEVEL` | The logging level of VU1-Monitor | `INFO` |\n| `VU1__SERVER__KEY` | The API key to authenticate with VU-Server. The default value is the default value of VU-Server, please generate a new key in the VU UI Console and set as your new key | `cTpAWYuRpA2zx75Yh961Cg` |\n| `VU1__SERVER__TIMEOUTS__RETRIES` | Number of retries to attempt on server timeout | `5` |\n| `VU1__SERVER__TIMEOUTS__SLEEP` | Number of seconds to wait before retry attempt | `2` |\n| `VU1__CPU__NAME` | The name of the Dial assigned to CPU monitoring | `CPU` |\n| `VU1__GPU__NAME` | The name of the Dial assigned to GPU monitoring | `GPU` |\n| `VU1__GPU__BACKEND` | The device type of the GPU. Valid values are: `nvidia`, `amd` | `nvidia` |\n| `VU1__MEMORY__NAME` | The name of the Dial assigned to Memory monitoring | `MEMORY` |\n| `VU1__NETWORK__NAME` | The name of the Dial assigned to Network monitoring | `NETWORK` |\n\n> [!NOTE]\n> `vu1-monitor` identifies specific Dials by their name, as configured in `vu-server`. Please make sure that each dial name matches what is expected by `vu1-monitor`\n\n## Supported hardware\n\n`vu1-monitor` supports OS agnostic tooling, particularly across Linux, MacOS & Linux. However, `vu1-monitor` is only tested and maintained on MacOS & Linux (`vu-server` had a default demo app for windows).\n\nCurrently, `vu1-monitor` supports NVIDIA & AMD GPU monitoring only. Apple GPU monitoring will be coming in later releases.\n\n",
"bugtrack_url": null,
"license": "Apache Licence 2.0",
"summary": "A CLI application for monitoring hardware with VU1-Dials",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/christian-nickerson/vu1-monitor",
"Repository": "https://github.com/christian-nickerson/vu1-monitor"
},
"split_keywords": [
"vu1",
" vu1-dials",
" monitoring"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f453027bcbf7e2c242c8c9133d8ca7e53343233ea3b84a682534192522d5b20d",
"md5": "8f27874e7eaf02c89415d04e96330789",
"sha256": "33a7524a363ba7c7eebec20a0f0a5d4a38df9a0c5680f81d72129b19adb56b11"
},
"downloads": -1,
"filename": "vu1_monitor-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8f27874e7eaf02c89415d04e96330789",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 38322,
"upload_time": "2024-09-25T21:54:24",
"upload_time_iso_8601": "2024-09-25T21:54:24.317989Z",
"url": "https://files.pythonhosted.org/packages/f4/53/027bcbf7e2c242c8c9133d8ca7e53343233ea3b84a682534192522d5b20d/vu1_monitor-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "37130b705cb5948c76e38c755d21dde25690e42085db76210e3529752b61dbd1",
"md5": "c3fe822ec5c93a6cbbcdd8752439223e",
"sha256": "86970d97c6bedf58d06fec30d6a979e233104242a753ae2f240ccd82c5b671e7"
},
"downloads": -1,
"filename": "vu1_monitor-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "c3fe822ec5c93a6cbbcdd8752439223e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 33212,
"upload_time": "2024-09-25T21:54:25",
"upload_time_iso_8601": "2024-09-25T21:54:25.865416Z",
"url": "https://files.pythonhosted.org/packages/37/13/0b705cb5948c76e38c755d21dde25690e42085db76210e3529752b61dbd1/vu1_monitor-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-25 21:54:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "christian-nickerson",
"github_project": "vu1-monitor",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "vu1-monitor"
}