[mythtv-users] Events at the beginning of a recording

Jan Ceuleers jan.ceuleers at gmail.com
Wed Jan 25 19:19:54 UTC 2023


On 25/01/2023 20:11, Ian Cameron wrote:
> On Wed, 25 Jan 2023 at 16:34, Jan Ceuleers <jan.ceuleers at gmail.com
> <mailto:jan.ceuleers at gmail.com>> wrote:
> 
>     The order I see is as follows:
> 
>     1. The recording-started event is triggered first, almost simultaneously
>     with the mythexternalrecorder's tuner command (at "second 0").
> 
>     2. The recording-pending event is triggered next, at "second 5". So 5
>     seconds after the recording has already started.
> 
> 
> How are you observing this?
> 
> I'd be tempted to set up a script for the recording_pending event that
> simply runs:
> 
> date >> /tmp/pending.log
> 
> to see when and how many times it's called.

That's more or less what I'm doing, except that I'm having these scripts
send emails to myself that include the time stamp with second
resolution. I'm also having them create syslog entries.

For example, here is the recording-pending script (with the actual email
address redacted):

#!/bin/bash
(
  echo "$0: called with parameters $*"
  /bin/date
) | /usr/bin/mail -a From: jan.ceuleers at example.com -s "MythTV system
event $0" jan.ceuleers at example.com
logger "$0 called with parameters $*"



More information about the mythtv-users mailing list