Re: [mythtv-users] Query for the scheduled recording

2005-07-24 Thread Hamish Moffatt
On Fri, Jul 22, 2005 at 09:36:23PM +, [EMAIL PROTECTED] wrote: Myth's built-in auto shutdown/wakeup does exactly that but there are some situations where it is not invoked and I would like to have a way to shut the machine down. For example, the backend is started in 'user' mode (not

Re: [mythtv-users] Query for the scheduled recording

2005-07-24 Thread Paul Andreassen
On Sun, 24 Jul 2005 03:37 am, Mitko Haralanov wrote: On Sat, 23 Jul 2005 10:02:57 -0400 George Nassas [EMAIL PROTECTED] wrote: The same info is available in an xml format by going http://localhost:6544/xml. I did not know about this at all! I am gonna have to take a look at it. Look at

Re: [mythtv-users] Query for the scheduled recording

2005-07-23 Thread George Nassas
On 22-Jul-05, at 11:30 PM, [EMAIL PROTECTED] wrote: Do you feel like parsing some html? Myth has a self-contained web server that gives the system status on port 6544 of the backend machine, including the times of the next ten scheduled recordings. Here's an exerpt from `lynx -dump

Re: [mythtv-users] Query for the scheduled recording

2005-07-23 Thread Mitko Haralanov
On Sat, 23 Jul 2005 10:02:57 -0400 George Nassas [EMAIL PROTECTED] wrote: The same info is available in an xml format by going http://localhost:6544/xml. I did not know about this at all! I am gonna have to take a look at it. Unfortunately this leaks a bit on each call so if you use it

Re: [mythtv-users] Query for the scheduled recording

2005-07-23 Thread Mitko Haralanov
On Fri, 22 Jul 2005 22:31:53 + [EMAIL PROTECTED] wrote: However, I did go back to the source and I found a SQL query in AddNewRecords in scheduler.cpp. Honestly, the query makes my head hurt when I look at it but is that the query I should be looking at? After looking at some code, I

[mythtv-users] Query for the scheduled recording

2005-07-22 Thread voidtrance
Hi, I am trying to write a small app that will serve as a replacement for the system's shutdown/reboot/halt but with one major difference - it will query the mythtv database to get the time of the next scheduled recording and set the BIOS wakeup time. The purpose of this app is to enable the

Re: [mythtv-users] Query for the scheduled recording

2005-07-22 Thread Alex Brekken
Maybe I'm way off here since I've never used it, but doesn't Myth's built-in auto shutdown/wakeup functionality do exactly that - set the BIOS wakeup time to be X number of minutes before the next scheduled recording?? On 7/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am trying to

Re: [mythtv-users] Query for the scheduled recording

2005-07-22 Thread voidtrance
Myth's built-in auto shutdown/wakeup does exactly that but there are some situations where it is not invoked and I would like to have a way to shut the machine down. For example, the backend is started in 'user' mode (not 'auto') and a frontend never connects. In this case, the idle timeout

Re: [mythtv-users] Query for the scheduled recording

2005-07-22 Thread Josh Burks
On 7/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am trying to write a small app that will serve as a replacement for the system's shutdown/reboot/halt but with one major difference - it will query the mythtv database to get the time of the next scheduled recording and set the

Re: [mythtv-users] Query for the scheduled recording

2005-07-22 Thread Brad Fuller
[EMAIL PROTECTED] wrote: Myth's built-in auto shutdown/wakeup does exactly that but there are some situations where it is not invoked and I would like to have a way to shut the machine down. really? I thought you needed a separate app running because of the different ways MBs write to

Re: [mythtv-users] Query for the scheduled recording

2005-07-22 Thread voidtrance
You _do_ need a separate app to write to the CMOS (nvram-wakeup for example). However, nvram-wakeup does not know what time to set the WakeUp time to. It gets that as one of the command line argument. Here is the sequence of evens (devs, if I am wrong correct me): 1. mythbackend starts in

Re: [mythtv-users] Query for the scheduled recording

2005-07-22 Thread voidtrance
I am pretty sure that it handles all the scheduling internally but once it has decided what and when it will record, it writes it in the database, as far as I can tell. Otherwise, I see no point of the 'record' or 'recordmatch' tables (Devs, am I correct?) However, I did go back to the source

Re: [mythtv-users] Query for the scheduled recording

2005-07-22 Thread chris
On Fri, Jul 22, 2005 at 05:28:54PM +, [EMAIL PROTECTED] wrote: I have made some pretty good progress but now I need to find out the time of the next recording from the database. Do you feel like parsing some html? Myth has a self-contained web server that gives the system status on port