Skip to content

Commit adaae9c

Browse files
authored
Merge branch 'mathoudebine:main' into SystemSensors
2 parents 9370af7 + f500862 commit adaae9c

1,087 files changed

Lines changed: 3810 additions & 144 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Generate Linux Packages
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
generate-windows-installer:
12+
name: Generate Linux Packages
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Git Checkout ${{github.event.release.tag_name}}
17+
uses: actions/checkout@v6
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version: '3.14'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install -r requirements.txt
28+
29+
- name: Run PyInstaller to create binaries
30+
run: |
31+
pyinstaller --noconfirm turing-system-monitor.spec
32+
echo "${{github.event.release.tag_name}}" > ./dist/turing-system-monitor/version.txt
33+
ln -s configure ./dist/turing-system-monitor/turing-smart-screen
34+
35+
- name: Create archive from generated binaries
36+
run: |
37+
rm -rf "./dist/turing-system-monitor/res/themes/--Theme examples"
38+
tar -czvf "turing-system-monitor-${{github.event.release.tag_name}}-linux.tar.gz" -C "./dist/turing-system-monitor/" .
39+
40+
- name: '📦 Archive Linux binaries'
41+
uses: actions/upload-artifact@v7
42+
with:
43+
name: turing-system-monitor-${{github.event.release.tag_name}}-linux
44+
path: turing-system-monitor-${{github.event.release.tag_name}}-linux.tar.gz
45+
if-no-files-found: error
46+
47+
- name: '📩 Publish Linux binaries to Release'
48+
run: |
49+
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-linux.tar.gz
50+
env:
51+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/generate-windows-packages-debug.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,30 @@ jobs:
4444
- name: Create portable zip archive from generated binaries
4545
run: |
4646
Remove-Item -r ".\dist\turing-system-monitor\res\themes\--Theme examples\"
47-
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip ".\dist\turing-system-monitor"
47+
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-debug-portable-windows.zip ".\dist\turing-system-monitor"
4848
4949
- name: '📦 Archive Windows installer'
5050
uses: actions/upload-artifact@v7
5151
with:
52-
name: turing-system-monitor-${{github.event.release.tag_name}}-debug
53-
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
52+
name: turing-system-monitor-${{github.event.release.tag_name}}-debug-windows
53+
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug-windows.exe
5454
if-no-files-found: error
5555

5656
- name: '📦 Archive Windows portable archive'
5757
uses: actions/upload-artifact@v7
5858
with:
59-
name: turing-system-monitor-${{github.event.release.tag_name}}-portable-debug
60-
path: turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
59+
name: turing-system-monitor-${{github.event.release.tag_name}}-debug-portable-windows
60+
path: turing-system-monitor-${{github.event.release.tag_name}}-debug-portable-windows.zip
6161
if-no-files-found: error
6262

6363
- name: '📩 Publish Windows installer to Release'
6464
run: |
65-
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
65+
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug-windows.exe
6666
env:
6767
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868

6969
- name: '📩 Publish Windows portable zip to Release'
7070
run: |
71-
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
71+
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-debug-portable-windows.zip
7272
env:
7373
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/generate-windows-packages.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,30 @@ jobs:
4444
- name: Create portable zip archive from generated binaries
4545
run: |
4646
Remove-Item -r ".\dist\turing-system-monitor\res\themes\--Theme examples\"
47-
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable.zip ".\dist\turing-system-monitor"
47+
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable-windows.zip ".\dist\turing-system-monitor"
4848
4949
- name: '📦 Archive Windows installer'
5050
uses: actions/upload-artifact@v7
5151
with:
52-
name: turing-system-monitor-${{github.event.release.tag_name}}
53-
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}.exe
52+
name: turing-system-monitor-${{github.event.release.tag_name}}-windows
53+
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-windows.exe
5454
if-no-files-found: error
5555

5656
- name: '📦 Archive Windows portable archive'
5757
uses: actions/upload-artifact@v7
5858
with:
59-
name: turing-system-monitor-${{github.event.release.tag_name}}-portable
60-
path: turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
59+
name: turing-system-monitor-${{github.event.release.tag_name}}-portable-windows
60+
path: turing-system-monitor-${{github.event.release.tag_name}}-portable-windows.zip
6161
if-no-files-found: error
6262

6363
- name: '📩 Publish Windows installer to Release'
6464
run: |
65-
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}.exe
65+
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-windows.exe
6666
env:
6767
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868

6969
- name: '📩 Publish Windows portable zip to Release'
7070
run: |
71-
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
71+
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable-windows.zip
7272
env:
7373
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,5 @@ dmypy.json
140140
screencap.png
141141
tmp
142142

143+
version.txt
143144
external/LibreHardwareMonitor/LibreHardwareMonitorLib.sys

README.md

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,30 @@
11
# ![Icon](https://raw.githubusercontent.com/mathoudebine/turing-smart-screen-python/main/res/icons/monitor-icon-17865/24.png) turing-smart-screen-python
22

3-
### ⚠️ DISCLAIMER - PLEASE READ ⚠️
4-
5-
This project is **not affiliated, associated, authorized, endorsed by, or in any way officially connected with Turing / XuanFang / Kipye brands**, or any of theirs subsidiaries, affiliates, manufacturers or sellers of their products. All product and company names are the registered trademarks of their original owners.
6-
7-
This project is an open-source alternative software, NOT the original software provided for the smart screens. **Please do not open issues for USBMonitor.exe/ExtendScreen.exe or for the smart screens hardware here**.
8-
* for Turing Smart Screen, use the official forum here: http://discuz.turzx.com/
9-
* for other smart screens, contact your reseller
10-
---
3+
> [!WARNING]
4+
>
5+
> This project is **not affiliated, associated, authorized, endorsed by, or in any way officially connected with Turing / XuanFang / Kipye brands**, or any of theirs subsidiaries, affiliates, manufacturers or sellers of their products. All product and company names are the registered trademarks of their original owners.
6+
>
7+
> This project is an open-source alternative software, NOT the original software provided for the smart screens. **Please do not open issues for USBMonitor.exe/ExtendScreen.exe or for the smart screens hardware here**.
8+
> * for Turing Smart Screen, use the official forum here: http://discuz.turzx.com/
9+
> * for other smart screens, contact your reseller
1110
1211
![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black) ![Windows](https://img.shields.io/badge/Windows%2010%2F11-0078D6?style=for-the-badge&logoColor=white&logo=data:image/svg%2bxml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+V2luZG93czwvdGl0bGU+PHBhdGggZmlsbCA9ICIjRkZGRkZGIiBkPSJNMCwwSDExLjM3N1YxMS4zNzJIMFpNMTIuNjIzLDBIMjRWMTEuMzcySDEyLjYyM1pNMCwxMi42MjNIMTEuMzc3VjI0SDBabTEyLjYyMywwSDI0VjI0SDEyLjYyMyIvPjwvc3ZnPg==) [![macOS](https://img.shields.io/badge/mac%20os%20(⚠️major%20bug)-000000?style=for-the-badge&logo=apple&logoColor=white)](https://github.com/mathoudebine/turing-smart-screen-python/issues/7) ![Raspberry Pi](https://img.shields.io/badge/Raspberry%20Pi-A22846?style=for-the-badge&logo=Raspberry%20Pi&logoColor=white) ![Python](https://img.shields.io/badge/Python-3.X-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) [![Licence](https://img.shields.io/github/license/mathoudebine/turing-smart-screen-python?style=for-the-badge)](./LICENSE)
1312

14-
A Python system monitor program and an abstraction library for **small IPS USB-C (UART) displays.**
13+
A Python system monitor program and an abstraction library for **small IPS USB-C displays.**
1514

1615
Supported operating systems : macOS, Windows, Linux (incl. Raspberry Pi), basically all OS that support Python 3.9+
1716

1817
### ✅ Supported smart screens models:
1918

20-
| ✅ Turing Smart Screen 3.5" | ✅ XuanFang 3.5" | ✅ Turing Smart Screen 5" |
21-
|------------------------------------------------------|---------------------------------------------------|---------------------------------------------|
22-
| <img src="res/docs/turing.webp"/> | <img src="res/docs/xuanfang.webp"/> | <img src="res/docs/turing5inch.png"/> |
23-
| also improperly called "revision A" by the resellers | revision B & flagship (with backplate & RGB LEDs) | basic support (no video or storage for now) |
24-
25-
| ⚠️ Turing Smart Screen 8.8" | ✅ Turing Smart Screen 2.1" / 2.8" |
26-
|---------------------------------------------|------------------------------------------------------------------|
27-
| <img src="res/docs/turing8inch.webp"/> | <img src="res/docs/turing2inch.webp" width="60%" height="60%"/> |
28-
| basic support (no video or storage for now)<br/>⚠️ [New revision V1.1 not supported!](https://github.com/mathoudebine/turing-smart-screen-python/issues/727) | basic support (no video or storage for now) |
19+
| ✅ Turing Smart Screen / TURZX |
20+
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
21+
| <img src="res/docs/turing.webp" width="30%" height="30%"/> <img src="res/docs/turing46inch.png" width="30%" height="30%"/> <img src="res/docs/turing5inch.png" width="30%" height="30%"/> <br/> <img src="res/docs/turing2inch.webp" width="30%" height="30%"/> <img src="res/docs/turing8inch.png" width="30%" height="30%"/> <img src="res/docs/turing8inch.webp" width="30%" height="30%"/> |
22+
| All available sizes and hardware revisions supported: **2.1" / 2.8" / 3.5" / 4.6" / 5" / 5.2" / 8.0" / 8.8" / 9.2" / 12.3"** <br/>UART and USB protocols supported. Note: no video or storage support for now |
2923

30-
|[UsbPCMonitor 3.5" / 5"](https://aliexpress.com/item/1005003931363455.html) |[Kipye Qiye Smart Display 3.5"](https://www.aliexpress.us/item/3256803899049957.html) |
31-
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
32-
| <img src="res/docs/UsbPCMonitor_5inch.webp" width="60%" height="60%"/> | <img src="res/docs/kipye-qiye-35.webp" width="60%" height="60%"/> |
33-
| Unknown manufacturer, visually similar to Turing 3.5" / 5". Original software is `UsbPCMonitor.exe` | Front panel has an engraved inscription "奇叶智显" Qiye Zhixian (Qiye Smart Display) |
24+
|XuanFang 3.5" |[UsbPCMonitor 3.5" / 5"](https://aliexpress.com/item/1005003931363455.html) | ✅ Kipye Qiye Smart Display 3.5" |
25+
|---------------------------------------------------|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|
26+
| <img src="res/docs/xuanfang.webp"/> | <img src="res/docs/UsbPCMonitor_5inch.webp" width="60%" height="60%"/> | <img src="res/docs/kipye-qiye-35.webp" width="60%" height="60%"/> |
27+
| revision B & flagship (with backplate & RGB LEDs) | Unknown manufacturer, visually similar to Turing 3.5" / 5". Original software is `UsbPCMonitor.exe` | Front panel has an engraved inscription "奇叶智显" Qiye Zhixian (Qiye Smart Display) |
3428

3529
| ✅ WeAct Studio Display FS V1 0.96" | ✅ WeAct Studio Display FS V1 3.5" |
3630
|---------------------------------------------------------------|--------------------------------------------------------------|
@@ -87,7 +81,7 @@ Some themes are already included for a quick start!
8781

8882
* Fully functional multi-OS code base (operates out of the box, tested on Windows, Linux & MacOS).
8983
* Display configuration using GUI configuration wizard or `config.yaml` file: no Python code to edit.
90-
* Compatible with [3.5" & 5" smart screen models (Turing, XuanFang...)](https://github.com/mathoudebine/turing-smart-screen-python/wiki/Hardware-revisions). Backplate RGB LEDs are also supported for available models!
84+
* Compatible with [multiple smart screen models (Turing, XuanFang...)](https://github.com/mathoudebine/turing-smart-screen-python/wiki/Hardware-revisions). Backplate RGB LEDs are also supported for available models!
9185
* Support [multiple hardware sensors and metrics (CPU/GPU usage, temperatures, memory, disks, etc)](https://github.com/mathoudebine/turing-smart-screen-python/wiki/System-monitor-:-themes#stats-entry) with configurable refresh intervals.
9286
* Allow [creation of themes (see `res/themes`) with `theme.yaml` files using theme editor](https://github.com/mathoudebine/turing-smart-screen-python/wiki/System-monitor-:-themes) to be [shared with the community!](https://github.com/mathoudebine/turing-smart-screen-python/discussions/categories/themes)
9387
* Easy to expand: [custom Python data sources](https://github.com/mathoudebine/turing-smart-screen-python/wiki/System-monitor-:-themes#add-custom-stats-to-a-theme) can be written to pull specific information and display it on themes like any other sensor.

config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
config:
33
# Configuration values to set up basic communication
44
# Set your COM port e.g. COM3 for Windows, /dev/ttyACM0 for Linux...
5-
# Use AUTO for COM port auto-discovery (may not work on every setup)
5+
# Use AUTO for COM port auto-discovery (may not work on every setup) or if device is not detected as a COM port
66
# COM_PORT: "/dev/ttyACM0"
77
# COM_PORT: "COM3"
88
COM_PORT: "AUTO"
@@ -68,6 +68,7 @@ display:
6868
# - B for Xuanfang 3.5" (inc. flagship)
6969
# - C for Turing 2.1"/2.8"/5"/8.8"
7070
# - D for Kipye Qiye Smart Display 3.5"
71+
# - TUR_USB for Turing HW revisions 1.x: 4.6"/5.2"/8.0"/8.8"/9.2"
7172
# - WEACT_A for WeAct Studio Display FS V1 3.5"
7273
# - WEACT_B for WeAct Studio Display FS V1 0.96"
7374
# - SIMU for simulated display (image written in screencap.png). Width & height will be detected from the theme

0 commit comments

Comments
 (0)