uwscli 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {uwscli-0.1.0/src/uwscli.egg-info → uwscli-0.2.0}/PKG-INFO +13 -7
- {uwscli-0.1.0 → uwscli-0.2.0}/README.md +12 -6
- {uwscli-0.1.0 → uwscli-0.2.0}/pyproject.toml +9 -1
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/__init__.py +3 -1
- uwscli-0.2.0/src/uwscli/cli.py +712 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/lcd.py +57 -21
- uwscli-0.2.0/src/uwscli/led.py +7 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/structs.py +2 -2
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/system_usb.py +18 -8
- uwscli-0.2.0/src/uwscli/tinyuz.py +192 -0
- uwscli-0.2.0/src/uwscli/tlcontroller.py +129 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/usbutil.py +17 -5
- uwscli-0.2.0/src/uwscli/wireless.py +800 -0
- {uwscli-0.1.0 → uwscli-0.2.0/src/uwscli.egg-info}/PKG-INFO +13 -7
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/SOURCES.txt +6 -1
- {uwscli-0.1.0 → uwscli-0.2.0}/tests/test_cli_errors.py +22 -13
- uwscli-0.2.0/tests/test_cli_output.py +538 -0
- uwscli-0.2.0/tests/test_led_compression.py +97 -0
- uwscli-0.2.0/tests/test_wireless_integration.py +321 -0
- uwscli-0.2.0/tests/test_wireless_led_packets.py +85 -0
- uwscli-0.1.0/src/uwscli/cli.py +0 -416
- uwscli-0.1.0/src/uwscli/wireless.py +0 -362
- uwscli-0.1.0/tests/test_cli_output.py +0 -186
- uwscli-0.1.0/tests/test_wireless_integration.py +0 -92
- {uwscli-0.1.0 → uwscli-0.2.0}/LICENSE +0 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/setup.cfg +0 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli/logging_utils.py +0 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/dependency_links.txt +0 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/entry_points.txt +0 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/requires.txt +0 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/src/uwscli.egg-info/top_level.txt +0 -0
- {uwscli-0.1.0 → uwscli-0.2.0}/tests/test_usbutil.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uwscli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Uni-Wireless-Sync: wireless control toolkit for TL LCD fan hubs
|
|
5
5
|
Author: Study Hsueh
|
|
6
6
|
License: MIT License
|
|
@@ -55,13 +55,13 @@ Provides-Extra: images
|
|
|
55
55
|
Requires-Dist: Pillow>=10.0; extra == "images"
|
|
56
56
|
Dynamic: license-file
|
|
57
57
|
|
|
58
|
-
#
|
|
58
|
+
# Uni Wireless Sync CLI
|
|
59
59
|
|
|
60
60
|
Warning: This is an unofficial implementation; use at your own risk.
|
|
61
61
|
|
|
62
62
|
## Overview
|
|
63
63
|
|
|
64
|
-
UWS CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
|
|
64
|
+
Uni Wireless Sync (UWS) CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
|
|
65
65
|
|
|
66
66
|
## Supported Hardware
|
|
67
67
|
|
|
@@ -115,8 +115,8 @@ uws lcd keep-alive --serial <usb-serial> --interval 5
|
|
|
115
115
|
uws fan set-fan --mac aa:bb:cc:dd:ee:ff --pwm 120
|
|
116
116
|
uws fan bind --mac aa:bb:cc:dd:ee:ff
|
|
117
117
|
uws fan unbind --mac aa:bb:cc:dd:ee:ff
|
|
118
|
-
uws fan pwm-sync --all
|
|
119
|
-
uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --
|
|
118
|
+
uws fan pwm-sync --all
|
|
119
|
+
uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --once
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
`uws lcd list` prints JSON rows that include a `serial` field—copy that value when invoking other LCD subcommands.
|
|
@@ -127,10 +127,11 @@ uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --disable --fallback-pwm 120
|
|
|
127
127
|
- `uws lcd info --serial <usb-serial>` – read firmware and handshake data.
|
|
128
128
|
- `uws lcd send-jpg --serial <usb-serial> --file <image.jpg>` – stream a JPEG asset.
|
|
129
129
|
- `uws lcd keep-alive --serial <usb-serial> [--interval seconds]` – emit periodic handshakes to prevent the wireless panel from dimming.
|
|
130
|
-
- `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
|
|
130
|
+
- `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--jpg-index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
|
|
131
131
|
- `uws fan list` – fetch a snapshot of bound wireless devices via the RF receiver.
|
|
132
132
|
- `uws fan set-fan --mac <aa:bb:..> --pwm <0-255>` – send a single shot PWM update to the matching wireless hub using the RF sender.
|
|
133
|
-
- `uws fan
|
|
133
|
+
- `uws fan set-led --mac <aa:bb:..> --mode static|rainbow|frames` – apply LED effects (experimental).
|
|
134
|
+
- `uws fan pwm-sync --all|--mac [--once]` – mirror motherboard PWM output to bound hubs (looping by default, single iteration with `--once`).
|
|
134
135
|
|
|
135
136
|
## Dependencies
|
|
136
137
|
|
|
@@ -155,6 +156,11 @@ SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8041", M
|
|
|
155
156
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
|
|
156
157
|
SUBSYSTEM=="usb_device", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
|
|
157
158
|
SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8040", MODE="0666", GROUP="plugdev"
|
|
159
|
+
|
|
160
|
+
# Luminary Micro TL-LCD Wireless-1.3
|
|
161
|
+
SUBSYSTEM=="usb", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
|
|
162
|
+
SUBSYSTEM=="usb_device", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
|
|
163
|
+
SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="0006", MODE="0666", GROUP="plugdev"
|
|
158
164
|
```
|
|
159
165
|
|
|
160
166
|
Reload the rules and replug the dongles:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Uni Wireless Sync CLI
|
|
2
2
|
|
|
3
3
|
Warning: This is an unofficial implementation; use at your own risk.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
UWS CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
|
|
7
|
+
Uni Wireless Sync (UWS) CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
|
|
8
8
|
|
|
9
9
|
## Supported Hardware
|
|
10
10
|
|
|
@@ -58,8 +58,8 @@ uws lcd keep-alive --serial <usb-serial> --interval 5
|
|
|
58
58
|
uws fan set-fan --mac aa:bb:cc:dd:ee:ff --pwm 120
|
|
59
59
|
uws fan bind --mac aa:bb:cc:dd:ee:ff
|
|
60
60
|
uws fan unbind --mac aa:bb:cc:dd:ee:ff
|
|
61
|
-
uws fan pwm-sync --all
|
|
62
|
-
uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --
|
|
61
|
+
uws fan pwm-sync --all
|
|
62
|
+
uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --once
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
`uws lcd list` prints JSON rows that include a `serial` field—copy that value when invoking other LCD subcommands.
|
|
@@ -70,10 +70,11 @@ uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --disable --fallback-pwm 120
|
|
|
70
70
|
- `uws lcd info --serial <usb-serial>` – read firmware and handshake data.
|
|
71
71
|
- `uws lcd send-jpg --serial <usb-serial> --file <image.jpg>` – stream a JPEG asset.
|
|
72
72
|
- `uws lcd keep-alive --serial <usb-serial> [--interval seconds]` – emit periodic handshakes to prevent the wireless panel from dimming.
|
|
73
|
-
- `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
|
|
73
|
+
- `uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--jpg-index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]` – send an `LCDControlSetting` payload.
|
|
74
74
|
- `uws fan list` – fetch a snapshot of bound wireless devices via the RF receiver.
|
|
75
75
|
- `uws fan set-fan --mac <aa:bb:..> --pwm <0-255>` – send a single shot PWM update to the matching wireless hub using the RF sender.
|
|
76
|
-
- `uws fan
|
|
76
|
+
- `uws fan set-led --mac <aa:bb:..> --mode static|rainbow|frames` – apply LED effects (experimental).
|
|
77
|
+
- `uws fan pwm-sync --all|--mac [--once]` – mirror motherboard PWM output to bound hubs (looping by default, single iteration with `--once`).
|
|
77
78
|
|
|
78
79
|
## Dependencies
|
|
79
80
|
|
|
@@ -98,6 +99,11 @@ SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8041", M
|
|
|
98
99
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
|
|
99
100
|
SUBSYSTEM=="usb_device", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
|
|
100
101
|
SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8040", MODE="0666", GROUP="plugdev"
|
|
102
|
+
|
|
103
|
+
# Luminary Micro TL-LCD Wireless-1.3
|
|
104
|
+
SUBSYSTEM=="usb", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
|
|
105
|
+
SUBSYSTEM=="usb_device", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
|
|
106
|
+
SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="0006", MODE="0666", GROUP="plugdev"
|
|
101
107
|
```
|
|
102
108
|
|
|
103
109
|
Reload the rules and replug the dongles:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uwscli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0"
|
|
4
4
|
description = "Uni-Wireless-Sync: wireless control toolkit for TL LCD fan hubs"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -52,6 +52,14 @@ include = ["uwscli", "uwscli.*"]
|
|
|
52
52
|
pythonpath = ["src"]
|
|
53
53
|
addopts = "-ra"
|
|
54
54
|
|
|
55
|
+
[tool.mypy]
|
|
56
|
+
python_version = "3.10"
|
|
57
|
+
ignore_missing_imports = true
|
|
58
|
+
strict_optional = true
|
|
59
|
+
warn_redundant_casts = true
|
|
60
|
+
warn_unused_ignores = true
|
|
61
|
+
show_error_codes = true
|
|
62
|
+
|
|
55
63
|
[build-system]
|
|
56
64
|
requires = ["setuptools>=68", "wheel"]
|
|
57
65
|
build-backend = "setuptools.build_meta"
|