bergware / dynamix

51 stars 38 forks source link

S3 sleep check active Plex streams #58

Open Niellles opened 2 years ago

Niellles commented 2 years ago

I am thinking of adding a setting where the server won't go to sleep when someone is streaming from Plex. Just wondering whether this feature would be considered useful and would be accepted into the plugin.

Asking because there wouldn't be much use for me making this custom when it will be removed with every update of the plugin.

bjoerns1983 commented 2 years ago

Any reason why this cant be achieved by monitoring the Ethernet Traffic? That is already implemented and it works for more that one specific media center server (eg Plex, Emby, Jellyfin etc)

Niellles commented 2 years ago

That's my current setup, however the ethernet traffic may have a million other causes. In my case seeding Linux ISO torrents usually keeps my server from going to sleep.

(Another feature I thought of would be excluding some containers' traffic from the amount of traffic being checked. This seems way more complex to implement, though.)

Falcosc commented 2 years ago

Could you start creating a custom sulution to test it? For example I thought about filtering the trafic assertiation by IP range or route based on what will work and hardcode it into the script as proof of concept? Plex filtering is maybe to specific but a flag for internal trafic only would be useable for more usecases.