-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large Overhaul #15
Large Overhaul #15
Conversation
@mathoudebine hope you don't mind such a big update, started off just moving some config out of code and kinda grew from there. :) |
Hi @Ebag333 and thanks for sharing this amazing work! We are now coming very close to the original software in terms of features 🚀 I tested on Linux platform and everything seems to be working fine, except for the signal handling that does not interrupt the program anymore. Do you also have this issue? I think it could be great to also add an exception handler with an error message for
|
max_value=CONFIG_DATA['STATS']['CPU']['PERCENTAGE']['GRAPH'].get("MAX_VALUE", 100), | ||
bar_color=CONFIG_DATA['STATS']['CPU']['PERCENTAGE']['GRAPH'].get("BAR_COLOR", (0, 0, 0)), | ||
bar_outline=CONFIG_DATA['STATS']['CPU']['PERCENTAGE']['GRAPH'].get("BAR_OUTLINE", False), | ||
background_image=CONFIG_DATA['STATS']['CPU']['PERCENTAGE']['GRAPH'].get("BACKGROUND_IMAGE", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
background_color attribute is missing (same for other progress bars in this file)
Yeah definitely need to handle not having an nVidia GPU. I'm not sure yet the best way of handling that, we could add a field to set your GPU type and skip nVidia if you don't have it, that makes the most sense to me. If you disable the GPU stats in the config, it won't try and run that, but that disables all GPU stats (which is kinda fine ATM, since there's no support for AMD/Intel). I think doing a config setting makes the most sense since most people won't have cases where they actively use a AMD and nVidia GPU at the same time. I'm also periodically getting an error when running for long periods of time (possibly only when PC is locked):
I'm thinking the best way of dealing with this is to stop updating if the PC locks, possibly also black out the screen. I'd personally like this so the display will last even longer anyway. I'm leaning toward trying to sneak that in this PR, but it's already pretty big so if you want to push that feature add off I'm okay with that. Thanks for the code review, I'll check on the rest of your comments. |
Hi, I pulled Ebag33's repo and this is pretty cool. I was able to get CPU temperature working on linux. I added the method below to the cpu class in stats.py:
Code added to scheduler.py:
Add a line to main and the settings to CONFIG.yaml and you get the CPU temperature displayed on linux. The only thing that would make this cooler is to add the ability to rotate the screen. Thanks for the awesome code. |
6e18ed1
to
4278f69
Compare
Hi @Ebag333 and @davehaglan |
This PR does a lot including:
I'm submitting this with a fully themed "terminal" style design that pulls and displays information for CPU/GPU/Memory/Disk. This uses PSUtil for most of the basic information, and GPUtil for the GPU (Nvidia only unfortunately).