LiquidGUI [1.1.0.0] DEV

- Implemented the ability to change fan speed.
- Placeholder GUI button to max out fan speed.
This commit is contained in:
2023-08-19 18:04:38 +01:00
parent 7b32a214df
commit ba1d19cc0b
2 changed files with 16 additions and 4 deletions
+8 -2
View File
@@ -1,4 +1,4 @@
from liquidctl import find_liquidctl_devices
from liquidctl import find_liquidctl_devices, cli
class LiquidCTL_Init():
device_name = None
@@ -34,4 +34,10 @@ class LiquidCTL_Init():
elif key == "Fan speed":
self.device_fanSpeed = value
elif key == "Pump speed":
self.device_pumpSpeed = value
self.device_pumpSpeed = value
def SetFanSpeed(self, speed):
with self.dev.connect():
cli._device_set_speed(self.dev, args={"<temperature>": [],
"<channel>": "fan",
"<percentage>": [str(speed)]})