Jump to content

How to check connected clients with bash script?


DzonDou

Recommended Posts

I am running an ubuntu machine with emby-server and some other services such as tvhedend, backup and kodi frontend.

I do not need it running for all the time. So I have written some bash scripts witch are taking care about powering up and down the machine. One of the functions is to block power off when kodi or backup service is running or there are active or upcoming recording.

I do not know how to block powering off when there is an active connection to emby-server via emby client or DLNa client. Is there any way to check it with bash script?

Link to comment
Share on other sites

mastrmind11

I am running an ubuntu machine with emby-server and some other services such as tvhedend, backup and kodi frontend.

I do not need it running for all the time. So I have written some bash scripts witch are taking care about powering up and down the machine. One of the functions is to block power off when kodi or backup service is running or there are active or upcoming recording.

I do not know how to block powering off when there is an active connection to emby-server via emby client or DLNa client. Is there any way to check it with bash script?

I've not tried to mess with the API yet, but you should be able to use the API and check to see if anyone has anything playing/paused/etc.  https://github.com/MediaBrowser/Emby/wiki/Playback-Check-ins

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...