Skip to content

Commit 76d1b80

Browse files
authored
Merge pull request #231 from mathoudebine/fix/update-dependencies
2 parents de318c9 + 2818d1d commit 76d1b80

File tree

3 files changed

+33
-9
lines changed

3 files changed

+33
-9
lines changed

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "pip"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
allow:
9+
- dependency-type: "all"
10+
commit-message:
11+
prefix: ":arrow_up:"
12+
open-pull-requests-limit: 50
13+
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "daily"
18+
allow:
19+
- dependency-type: "all"
20+
commit-message:
21+
prefix: ":arrow_up:"
22+
open-pull-requests-limit: 50

library/lcd/lcd_comm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,11 @@ def DisplayProgressBar(self, x: int, y: int, width: int, height: int, min_value:
262262
bar_image = bar_image.crop(box=(x, y, x + width, y + height))
263263

264264
# Draw progress bar
265-
bar_filled_width = value / (max_value - min_value) * width
265+
bar_filled_width = (value / (max_value - min_value) * width) - 1
266+
if bar_filled_width < 0:
267+
bar_filled_width = 0
266268
draw = ImageDraw.Draw(bar_image)
267-
draw.rectangle([0, 0, bar_filled_width - 1, height - 1], fill=bar_color, outline=bar_color)
269+
draw.rectangle([0, 0, bar_filled_width, height - 1], fill=bar_color, outline=bar_color)
268270

269271
if bar_outline:
270272
# Draw outline

requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Python packages requirements
2-
Pillow~=9.3.0 # Image generation
2+
Pillow~=9.5.0 # Image generation
33
pyserial~=3.5 # Serial linl to communicate with the display
44
PyYAML~=6.0 # For themes files
5-
psutil~=5.9.4 # CPU / disk / network metrics
5+
psutil~=5.9.5 # CPU / disk / network metrics
66
GPUtil~=1.4.0 # Nvidia GPU
77
pystray~=0.19.4 # Tray icon (all OS)
8-
babel~=2.11.0 # Date/time formatting
9-
ruamel.yaml~=0.17.21 # For configuration editor
10-
sv-ttk~=2.4 # Tk Sun Valley theme for configuration editor
8+
babel~=2.12.1 # Date/time formatting
9+
ruamel.yaml~=0.17.26 # For configuration editor
10+
sv-ttk~=2.4.5 # Tk Sun Valley theme for configuration editor
1111

1212
# Following packages are for AMD GPU on Linux
1313
# Note: you may need to manually install Cython first
14-
Cython~=0.29.32; sys_platform=="linux"
14+
Cython~=0.29.34; sys_platform=="linux"
1515
pyamdgpuinfo~=2.1.3; sys_platform=="linux" and python_version <= "3.11" # Wheel package not yet available for Python > 3.11
1616
# For Python > 3.11, you need to install pyamdgpuinfo manually: see https://github.com/mathoudebine/turing-smart-screen-python/wiki/Troubleshooting#linux--macos-no-supported-gpu-found-with-an-amd-gpu-and-python-311
1717

@@ -20,4 +20,4 @@ pyadl~=0.1; sys_platform=="win32"
2020

2121
# Following packages are for LibreHardwareMonitor integration on Windows
2222
pythonnet~=3.0.1; sys_platform=="win32"
23-
pywin32>=305; sys_platform=="win32"
23+
pywin32>=306; sys_platform=="win32"

0 commit comments

Comments
 (0)