FernetMenta / vdr-plugin-vnsiserver

VDR plugin to handle XBMC clients.
GNU General Public License v2.0
16 stars 33 forks source link

Request: How to configure kodi/vdr combination to shutdown after recording? #71

Open M-Reimer opened 8 years ago

M-Reimer commented 8 years ago

I have both, VDR and Kodi, on one machine. VDR is in background for Live TV and to record programmed timers.

If the machine gets automatically booted for a recording, then with "Plain VDR" the machine is shut down as soon as the recording is done and if there was no user activity.

I know that Kodi has a built-in "inactivity timeout" feature, but I had to disable this as I often watch Twitch streams for many hours and don't want to press buttons on the remote control to keep Kodi running.

Is there any way to make Kodi detect that it was booted just for a recording (checks if the next recording is within X minutes on start) to make it trigger a shutdown as soon as the last recording is done?

FernetMenta commented 8 years ago

There is nothing appropriate built into Kodi PVR. I use a little program that observes user interaction and VDR timers. After a recording has finished and there was no user interaction it queries VDR for next timer. If there is no active one for the next 10 minutes, it programs the next time for wakeup and shuts down the system.