mathoudebine / turing-smart-screen-python

Unofficial Python system monitor and library for small IPS USB-C displays like Turing Smart Screen or XuanFang
GNU General Public License v3.0
966 stars 166 forks source link

SystemUptime #492

Closed NurNano closed 3 days ago

NurNano commented 3 months ago

Im proud to say I've done my first Steps in Python 🥳

Added a SystemUptime Routine that gets the runtime of the System like wished in Incident #448. There are two new values you can get. ['STATS']['UPTIME']['SECONDS']['TEXT'] --> uptime from the system in seconds ['STATS']['UPTIME']['WITHDAYS']['TEXT'] --> formatted uptime from the system in the format "49 days, 16:47:16"

Tested it on Windows 11, Debian 12 and virtual Display via theme editor.

2024-03-29 15_52_38-Turing SysMon Theme Editor

mathoudebine commented 2 months ago

Thanks for the PR! I will try to integrate it soon 🙂

NurNano commented 4 weeks ago

I'm new to GIT. Have I to do anything now?

mathoudebine commented 4 weeks ago

@NurNano nothing in particular, don't worry about the conflict for now. I still have to review your PR, sorry for the delay

mathoudebine commented 3 days ago

Hi @NurNano i merged your PR in the main branch, thanks for contributing! I made a quick change from WITHDAYS to FORMATTED in the YAML