Matthias Schwarzott schrieb:
On Sunday 31 December 2006 13:36, Joachim Wilke wrote:
2006/12/30, Udo Richter udo_richter@gmx.de:
However, it might be worth thinking about giving plugins the ability to set a different wakeup time, so that a scheduled EPG scan plugin can be written.
I also think that this would be very helpful for some plugins. Manual start detection could also include a call to the plugins. A plugin that did "schedule" an EPG-scan or similar could tell VDR during start up, that VDR woke up because of this scheduled event set by this plugin. At the moment I use a relatively complex patch that does some "maintainance" task during the night. If it would be possible to modify the wakeup-time in a plugin I could re-implement the complete patch as a plugin.
I think a much easier solution (implementable in runvdr/vdr-initscript) is: Write down wakeup-time when shutting down and comparing that to time when system/vdr starts (with some margin).
That's exactly what my Gen2VDR distribution is doing, and it works fine. It's not the job of vdr to guess why it was started, but it would be nice if vdr offers an option to shutdown after next recording ( maybe via svdrp call ).