timothycrosley / streamdeck-ui

A Linux compatible UI for the Elgato Stream Deck.
https://timothycrosley.github.io/streamdeck-ui/
MIT License
1.12k stars 240 forks source link

Reacting to image change/update on disk/system SIGUSR1 #312

Open daveletourneau opened 1 year ago

daveletourneau commented 1 year ago

Bonsoir groupe :)

I need some guidance for something I had on my mind for some time. I would simply like to make the state update when...

a) an image (on disk) updates

and/or

b) react to a system message (like SIGUSR1)

First I thought that the first option was the best one but I like the idea of a system listener.

Got a few decades of coding and tinkering but never realy used Python for much (sorry 😬). I would like to be oriented in the right direction for my first experiments. I'm pretty sure this is something that is needed to solve some other interactivity/media processing problems.

So, I'm going to start right now on my own but any pointers would be really appreciated. There are certainly other angles to tackle the problem that have not considered.

Thanks for this great open source project!

daveletourneau commented 1 year ago

Ok, just had some tests with a small script that generate an analog and a digital clock image of the current time that I call each minute with cron. The script then restart the service: systemctl --user restart streamdeck. A bit clunky for a solution but it works... almost 😕. Restarting the service means that the processes started by the application are all killed once a minute. I think I will try to implement the reloading of the service (as opposed to restarting). I'm sure there is a better way to do what I want but at least I'll familiarize with the code.

coolapso commented 1 year ago

hi, this project seems to be stale and a new fork as been made with the intention of replacing this one.

if this still an issue please reopen it at: https://github.com/streamdeck-linux-gui/streamdeck-linux-gui