Project

General

Profile

Actions

Feature #562

closed

Run script or program when tvheadend goes to idle state

Added by Alain Kalker almost 14 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-06-11
Due date:
% Done:

0%

Estimated time:

Description

It would be nice to have tvheadend run a (configurable) script or program when it goes to idle state. This would enable that script (or something like a suspend / shutdown manager) to suspend / shutdown the tvheadend server to save energy.

Use cases:
- Shutdown the server, program RTC alarm to wake up just before next recording should start.
- Setup Wake-On-Lan, suspend or shutdown the server until client or manager process sends Magic Packet to wake it up again.
- When idle scanning is off: stop tvheadend, then shutdown power-hungry or overheating DVB tuner cards until next recording / client connect.
- Probably more

I think it could be implemented by simply executing

<scriptname> <tvheadendpidfile> [nextevent]

where [nextevent] is set only if there are any upcoming, scheduled events.

The script can now decide whether to stop tvheadend, program the RTC alarm, WOL, etcetera.

Kind regards,

Alain

P.S. Loving tvheadend, keep up the good work! :-)

Actions

Also available in: Atom PDF