Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Programming mythtv interface

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


robert-ramsey at uiowa

Mar 9, 2007, 1:24 PM

Post #1 of 6 (874 views)
Permalink
Programming mythtv interface

Hi,

For several different reasons, I need to be able to programmatically add
jobs to the mythtv queue to be recorded. I know I could fake a post
request to programmatically fake a web request to schedule a recording,
but it seems like it would be simpler just to add the mysql entries to
the right tables for the backend to find. But then I'm not that
knowledgable about how the backend works. ;)

Can someone point me to that documentation for that?

Thanks,

bob
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


tom at redpepperracing

Mar 9, 2007, 1:41 PM

Post #2 of 6 (807 views)
Permalink
Re: Programming mythtv interface [In reply to]

Ramsey, Robert L wrote:
> Hi,
>
> For several different reasons, I need to be able to programmatically add
> jobs to the mythtv queue to be recorded. I know I could fake a post
> request to programmatically fake a web request to schedule a recording,
> but it seems like it would be simpler just to add the mysql entries to
> the right tables for the backend to find. But then I'm not that
> knowledgable about how the backend works. ;)
>
> Can someone point me to that documentation for that?

Worst case, turn on database logging on the backend, schedule a
recording, and look at the queries that are logged.

Tom

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


daspiras at gmail

Mar 9, 2007, 4:02 PM

Post #3 of 6 (795 views)
Permalink
Re: Programming mythtv interface [In reply to]

TABLE: record FIELDS: pk(recordid) k(chanid,starttime) k(title)
k(seriesid) k(programid)

I'd look at the source, too.

On 3/9/07, Tom Lichti <tom [at] redpepperracing> wrote:
> Ramsey, Robert L wrote:
> > Hi,
> >
> > For several different reasons, I need to be able to programmatically add
> > jobs to the mythtv queue to be recorded. I know I could fake a post
> > request to programmatically fake a web request to schedule a recording,
> > but it seems like it would be simpler just to add the mysql entries to
> > the right tables for the backend to find. But then I'm not that
> > knowledgable about how the backend works. ;)
> >
> > Can someone point me to that documentation for that?
>
> Worst case, turn on database logging on the backend, schedule a
> recording, and look at the queries that are logged.
>
> Tom
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


robert-ramsey at uiowa

Mar 9, 2007, 5:50 PM

Post #4 of 6 (793 views)
Permalink
Re: Programming mythtv interface [In reply to]

Good idea; I hadn't thought of that. More complicated than curl, but probably more productive in the long run.

Bob

-----Original Message-----
From: mythtv-users-bounces [at] mythtv on behalf of Tom Lichti
Sent: Fri 3/9/2007 3:41 PM
To: Discussion about mythtv
Subject: Re: [mythtv-users] Programming mythtv interface

Ramsey, Robert L wrote:
> Hi,
>
> For several different reasons, I need to be able to programmatically add
> jobs to the mythtv queue to be recorded. I know I could fake a post
> request to programmatically fake a web request to schedule a recording,
> but it seems like it would be simpler just to add the mysql entries to
> the right tables for the backend to find. But then I'm not that
> knowledgable about how the backend works. ;)
>
> Can someone point me to that documentation for that?

Worst case, turn on database logging on the backend, schedule a
recording, and look at the queries that are logged.

Tom

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


robert-ramsey at uiowa

Mar 9, 2007, 5:51 PM

Post #5 of 6 (806 views)
Permalink
Re: Programming mythtv interface [In reply to]

I had tried adding records to both the record table and the job_queue table, but that wasn't enough. I copied existing entries, changing only the start and stop times and the job wasn't picked up by the backend.

Is all the source a script or is the backend a binary? Guess I'll find out. :)

Thanks,

Bob

-----Original Message-----
From: mythtv-users-bounces [at] mythtv on behalf of D
Sent: Fri 3/9/2007 6:02 PM
To: Discussion about mythtv
Subject: Re: [mythtv-users] Programming mythtv interface

TABLE: record FIELDS: pk(recordid) k(chanid,starttime) k(title)
k(seriesid) k(programid)

I'd look at the source, too.

On 3/9/07, Tom Lichti <tom [at] redpepperracing> wrote:
> Ramsey, Robert L wrote:
> > Hi,
> >
> > For several different reasons, I need to be able to programmatically add
> > jobs to the mythtv queue to be recorded. I know I could fake a post
> > request to programmatically fake a web request to schedule a recording,
> > but it seems like it would be simpler just to add the mysql entries to
> > the right tables for the backend to find. But then I'm not that
> > knowledgable about how the backend works. ;)
> >
> > Can someone point me to that documentation for that?
>
> Worst case, turn on database logging on the backend, schedule a
> recording, and look at the queries that are logged.
>
> Tom
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


chris.rouch at gmail

Mar 19, 2007, 7:30 AM

Post #6 of 6 (749 views)
Permalink
Re: Programming mythtv interface [In reply to]

On 3/10/07, Ramsey, Robert L <robert-ramsey [at] uiowa> wrote:
>
> I had tried adding records to both the record table and the job_queue table, but that wasn't enough. I copied existing entries, changing only the start and stop times and the job wasn't picked up by the backend.
>
> Is all the source a script or is the backend a binary? Guess I'll find out. :)
>

If you don't already have something working, have a look at tvwish
(http://www.templetons.com/brad/myth/tvwish.html), which is a perl
script which schedules recordings. AFAIK it updates the db and then
kicks the backend to make it take note of the changes.

Chris
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.