Activity

dan1984

I finally implemented live loading the configs. If the json setting file is updated, the watchfiles library catches it and updates the commands, texts, etc… Only problem is that it works only once :P Ill fix it tomorrow probably.

Also, I got rid of the docker sdk and just went back to using asyncio subproc shells. I think this way is better because I can use the same function on LXC’s and VMs later on.

I am still using eval on the custom commands parts DX if anyone has an idea to replace eval it would be very appreciated! :)

Attachment
0
dan1984

Made the CPU part display more info.
Also the disks arn’t placeholders now. (only problem, I use btrfs so the root and home subvols just return the same usage…)
Finally got the Docker SDK log view working. I really need to get used to async…
Also the ‘custom’ command widget is kinda working. (It uses EVAL. very customizable. gota fix that someday)

Attachment
0
dan1984

I needed a TUI dashboard for my homelab so that i can ssh with my phone and see the stats easily.
I wanted a btop like smooth TUI so i decided on using Textual.
I first created the ram and cpu stat windows.
The progress bar was a lot of pain to render properly :(

Attachment
Attachment
1

Comments

dan1984
dan1984 16 days ago

The SSD’s are placeholders. I only have 1T :)

dan1984

I’m still cleaning up the code :(
However…
I got tired at one point and made changes to how the buttons on each track component work.
Previously, when the user clicks the play button, it would just empty the queue and play the track immediately.
Now, it doesn’t empty the queue. And if another track is playing, it will be added right after the current track in the queue. if no track is playing, the button will play the track immediately.

Attachment
0
dan1984

Today I revisited a project I abandoned 2 months ago.

Back then, I wanted a music player that has yt-dlp features, and I wanted it quick. So I used Copilot a lot to quickly make it. It worked for a while, but one day it didn’t.

Since it’s winter vacation now, I have more time to actually make it elegant.
So today I mainly focused on refactoring and cleaning up the awful code me and copilot wrote 2 months ago. I think that’s how it’s going to be for this week. Next week, I’ll work on improving the UX and stuff.

Attachment
2

Comments

Keyboard1000n17
Keyboard1000n17 about 1 month ago

w music choice 🔥

Keyboard1000n17
Keyboard1000n17 about 1 month ago

w music choice 🔥