streamdeck-ui icon indicating copy to clipboard operation
streamdeck-ui copied to clipboard

Reacting to image change/update on disk/system SIGUSR1

Open daveletourneau opened this issue 2 years ago • 2 comments

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 avatar Mar 24 '23 00:03 daveletourneau

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.

daveletourneau avatar Mar 25 '23 12:03 daveletourneau

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

coolapso avatar Jul 27 '23 21:07 coolapso