[mythtv-users] How to shedule recordings from command line?

Mario Bernard Mario.Bernhard at gmx.net
Wed Jul 12 19:36:30 UTC 2006


>From: "Michael T. Dean" <mtdean at thirdcontact.com>
>To: "Discussion about mythtv" <mythtv-users at mythtv.org>>
>Sent: Wednesday, 12. July 2006 21:18
>Subject: Re: [mythtv-users] How to shedule recordings from command line?
>

>On 07/12/2006 03:10 PM, Mario Bernard wrote:
>> From: "Brad Templeton"
>>   
>>> Well, in that sense, mysql is a command line interface for mythtv.  One can
>>> schedule programs in mythtv just with simple sql queries, often doable from
>>> the command line interface of the mysql command.
>...
>>> I don't know how long it takes for mythtv to do a reschedule_recordings on its
>>> own spontaneously, but I believe it does happen, in which case for recordings
>>> in the future you can just do SQL commands and that would be enough.
>>>     

>It runs the scheduler on restart and after mythfilldatabase runs.  It 
>also runs the scheduler in response to a reschedule request (which 
>should be made by a frontend after creating a new scheduler).  
>Reschedule requests can be made against all schedules or against a 
>specific schedule.  The easiest way (from the command-line) to do a 
>reschedule is:

>mythbackend --resched

>> These are the sql commands I used. It looks for a schedule on a specific channel and a specific starttime:
>>   
>...
>> Generating the first row into 'record' was easy. That it also required a row in 'recordmatch' didn't came up my mind for a long time.

>Are you sure that's your job.  Shouldn't that be left to the scheduler?

I developed this one year ago and I thought the scheduler recalculates it schedules periodical. Only after the inserts into 'recordmatch' it picked up the new schedules.
Later I noticed that when it didn't pick up the new inserted schedules I made temporary schedule on the frontend.

I try to drop the insert from recordmatch and use mythbackend --resched instead.

>With 'arguments' I meant a provided API (documented) which calls the Mythweb module doing the actual job.
>At the moment Mythweb scans a http post and does furhter processing before it calls a job which updates the recording schedules.
>It would be great not to do a lot of re-enginering. This can only be solved by a well-designed API. To design this API a person is needed who knows all specifics.
>Mythweb could use this API for its own purposes.

What do you think about the API ?

Mario



More information about the mythtv-users mailing list