turing-smart-screen-python icon indicating copy to clipboard operation
turing-smart-screen-python copied to clipboard

Added multi-disk support

Open DrissiReda opened this issue 11 months ago • 7 comments

This is to continue upon @smandon's work on #224

Since there have been a lot of changes. I'm waiting for this to be implemented before I can buy and use the turing smart screen.

I made sure to keep compatibility with old configurations. I can add more themes configuration and also modifications that are needed if this is something the maintainers are interesting in merging.

I need help with designing the UI that can actually display the multiple disks. For now all this is good for is changing the disk whose stats are displayed instead of the default root. Other entries are ignored.

If you have any questions or requests feel free to ask.

DrissiReda avatar Jan 25 '25 22:01 DrissiReda

@mathoudebine this should normally solve the backwards compatibility issue that the other similar PR had. Is this something you think can be added?

DrissiReda avatar Feb 11 '25 13:02 DrissiReda

Hi @DrissiReda thank you for opening this PR, this is something that can definitely be added. I just have to think carefully when to merge this PR and the others that are open in a way everything is merged cleanly

mathoudebine avatar Feb 12 '25 07:02 mathoudebine

Of course. Just tell me if you need me to add something to avoid any issues. I actually need this because I only need to monitor disks. However I don’t know how to transform this into a visual theme to actually monitor my 5 disks. 

Message ID: @.***>

DrissiReda avatar Feb 12 '25 07:02 DrissiReda

Actually there are some things missing from the PR to make it fully working. Since you modified the library/sensors/sensors.py implementation of class Disk(ABC) these changes have to be applied to the other sensor classes that implement this interface.

You made the changes in library/sensors/sensors_python.py but you missed the changes in library/sensors/sensors_librahardwaremonitor.py. I think you can apply the same changes than in sensors_python.py because the same method is used to get disk data (psutil library).

Also, in library/sensors/sensors_stub_random.py and library/sensors/sensors_stub_static.py the 3 functions of the class Disk are missing the new path parameter in argument (even if it will not be used inside the functions)

mathoudebine avatar Feb 12 '25 07:02 mathoudebine

Actually there are some things missing from the PR to make it fully working. Since you modified the library/sensors/sensors.py implementation of class Disk(ABC) these changes have to be applied to the other sensor classes that implement this interface.

You made the changes in library/sensors/sensors_python.py but you missed the changes in library/sensors/sensors_librahardwaremonitor.py. I think you can apply the same changes than in sensors_python.py because the same method is used to get disk data (psutil library).

Also, in library/sensors/sensors_stub_random.py and library/sensors/sensors_stub_static.py the 3 functions of the class Disk are missing the new path parameter in argument (even if it will not be used inside the functions)

thanks for the input, I applied the requested changes

DrissiReda avatar Feb 12 '25 08:02 DrissiReda

any news on supporting this?

DrissiReda avatar Mar 18 '25 09:03 DrissiReda

GRAPH is not working with this PR.

flow23 avatar Nov 27 '25 16:11 flow23