|
1 | 1 | # Libre Hardware Monitor Widget Configuration
|
2 | 2 |
|
3 |
| -| Option | Type | Default | Description | |
4 |
| -|-------------------------|---------|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------| |
5 |
| -| `label` | string | `"<span>\udb82\udcae </span> {info[value]}{info[unit]}"` | The primary label format. | |
6 |
| -| `label_alt` | string | `"<span>\uf4bc </span>{info[histogram]} {info[value]} ({info[min]}/{info[max]}) {info[unit]}"` | Histograms. The alternative label format. | |
7 |
| -| `sensor_id` | string | `"/amdcpu/0/load/0"` | Libre Hardware Monitor SensorId from http://localhost:8085/data.json | |
8 |
| -| `class_name` | string | `"libre-monitor-widget"` | CSS class name for styling of different widget instances. | |
9 |
| -| `update_interval` | integer | `1000` | The interval in milliseconds to update the widget. | |
10 |
| -| `precision` | integer | `1` | Floating point precision of the info[value]. | |
11 |
| -| `history_size` | integer | `60` | The size of the min/max history. | |
12 |
| -| `histogram_num_columns` | integer | `10` | The number of columns in the histogram. | |
13 |
| -| `histogram_fixed_min` | integer | `None` | Histogram minimum value. If None - set as history minimum value. | |
14 |
| -| `histogram_fixed_max` | integer | `None` | Histogram maximum value. If None - set as history maximum value. | |
15 |
| -| `server_host` | string | `"localhost"` | Libre Hardware Monitor server host. | |
16 |
| -| `server_port` | integer | `8085` | Libre Hardware Monitor server port. | |
17 |
| -| `server_username` | string | `""` | Libre Hardware Monitor username. Only needed if auth is enabled. | |
18 |
| -| `server_password` | string | `""` | Libre Hardware Monitor password. Only needed if auth is enabled. | |
19 |
| -| `histogram_icons` | list | `['\u2581', '\u2581', '\u2582', '\u2583', '\u2584', '\u2585', '\u2586', '\u2587', '\u2588']` | Icons representing CPU usage histograms. | |
20 |
| -| `callbacks` | dict | `{'on_left': 'toggle_label', 'on_middle': 'do_nothing', 'on_right': 'do_nothing'}` | Callback functions for different mouse button actions. | |
| 3 | +| Option | Type | Default | Description | |
| 4 | +|--------------------------|---------|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------| |
| 5 | +| `label` | string | `"<span>\udb82\udcae </span> {info[value]}{info[unit]}"` | The primary label format. | |
| 6 | +| `label_alt` | string | `"<span>\uf4bc </span>{info[histogram]} {info[value]} ({info[min]}/{info[max]}) {info[unit]}"` | Histograms. The alternative label format. | |
| 7 | +| `sensor_id` | string | `"/amdcpu/0/load/0"` | Libre Hardware Monitor SensorId from http://localhost:8085/data.json | |
| 8 | +| `class_name` | string | `"libre-monitor-widget"` | CSS class name for styling of different widget instances. | |
| 9 | +| `update_interval` | integer | `1000` | The interval in milliseconds to update the widget. | |
| 10 | +| `precision` | integer | `2` | Floating point precision of the info[value]. | |
| 11 | +| `history_size` | integer | `60` | The size of the min/max history. | |
| 12 | +| `histogram_num_columns` | integer | `10` | The number of columns in the histogram. | |
| 13 | +| `histogram_fixed_min` | integer | `None` | Histogram minimum value. If None - set as history minimum value. | |
| 14 | +| `histogram_fixed_max` | integer | `None` | Histogram maximum value. If None - set as history maximum value. | |
| 15 | +| `sensor_id_error_label` | string | `N/A` | The label shown when the sensor id is invalid or the sensor does not exist/disabled. | |
| 16 | +| `connection_error_label` | string | `Connection error...` | The label shown when YASB can't connect to the Libre Hardware Monitor Web server. Either the server is not running or the IP/port is wrong. | |
| 17 | +| `auth_error_label` | string | `Auth Failed...` | The label shown when there is a username/password issue while connecting to LHM Web server if the authentication is enabled in LHM settings. | |
| 18 | +| `server_host` | string | `"localhost"` | Libre Hardware Monitor server host. | |
| 19 | +| `server_port` | integer | `8085` | Libre Hardware Monitor server port. | |
| 20 | +| `server_username` | string | `""` | Libre Hardware Monitor username. Only needed if auth is enabled. | |
| 21 | +| `server_password` | string | `""` | Libre Hardware Monitor password. Only needed if auth is enabled. | |
| 22 | +| `histogram_icons` | list | `['\u2581', '\u2581', '\u2582', '\u2583', '\u2584', '\u2585', '\u2586', '\u2587', '\u2588']` | Icons representing CPU usage histograms. | |
| 23 | +| `callbacks` | dict | `{'on_left': 'toggle_label', 'on_middle': 'do_nothing', 'on_right': 'do_nothing'}` | Callback functions for different mouse button actions. | |
21 | 24 |
|
22 | 25 | ## Example Configuration (GPU Temperature)
|
23 | 26 |
|
|
29 | 32 | label_alt: "<span>\uf437 </span>{info[histogram]} {info[value]} ({info[min]}/{info[max]}) {info[unit]}"
|
30 | 33 | sensor_id: "/gpu-nvidia/0/temperature/0"
|
31 | 34 | update_interval: 1000
|
32 |
| - precision: 1 |
| 35 | + precision: 2 |
33 | 36 | histogram_num_columns: 10
|
34 | 37 | class_name: "libre-monitor-widget"
|
35 | 38 |
|
|
80 | 83 | - **histogram_fixed_max**: Set the fixed maximum value of the histogram. Actual sensor max value from the history is not changed. If not set manually it will be set as history maximum value.
|
81 | 84 | - **histogram_icons**: A list of icons representing different values of the histogram.
|
82 | 85 | - **histogram_num_columns**: The number of columns to display in the histogram.
|
| 86 | +- **sensor_id_error_label**: The label shown when the sensor id is invalid or the sensor does not exist/disabled. |
| 87 | +- **connection_error_label**: The label shown when YASB can't connect to the Libre Hardware Monitor Web server. Either the server is not running or the IP/port is wrong. |
| 88 | +- **auth_error_label**: The label shown when there is a username/password issue while connecting to LHM Web server if the authentication is enabled in LHM settings. |
83 | 89 | - **server_host**: The host of the Libre Hardware Monitor server.
|
84 | 90 | - **server_port**: The port of the Libre Hardware Monitor server.
|
85 | 91 | - **server_username**: The username of the Libre Hardware Monitor server. Required if auth is enabled.
|
|
0 commit comments