DzonDou 0 Posted September 19, 2016 Posted September 19, 2016 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?
mastrmind11 722 Posted September 19, 2016 Posted September 19, 2016 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
DzonDou 0 Posted September 20, 2016 Author Posted September 20, 2016 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 Thank you for your suggestion. I am totaly not familiar with this subject. But I like to lern so I will try it.
dcrdev 255 Posted September 26, 2016 Posted September 26, 2016 I've written a bash script for another task that requires communication with the Emby API - take a look for ideas: https://github.com/dcrdev/Promovie/blob/master/promovie.sh#L319 Particularly the notify_push and notify_update functions.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now