Schedule and record with ALOT of cards www

Xlobby plugin development

Postby Marbles_00 on Tue Sep 05, 2006 2:46 pm

Thanks for replying Lasse. I ended up getting it to work...seems I was having a computer OS problem...rebooted and the changes occured. I configured the Xschedule.ini from EPG to c254 and after the reboot, I did a quick record and the DBRecord log file reported that the input was now c254 (changed from svideo1). Used zoom on the recorded file and it played back fine.

I will have to try out your MP plugin and see how it works for me. Thanks again.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: Schedule and record with ALOT of cards www

Postby Marbles_00 on Mon May 19, 2008 2:26 pm

Lar,

I know you don't or really support this plugin anymore. I've tried the your MP TV3 plugin, I've tried the XLTV plugin, and so far, this one appears to be the best solution for my needs. I've been in talks with the dabdig developer in adding support for DVB Dream. I've been successful in getting dadig to start DVB Dream and record from command line. I'm passing commands from xschedular to dabig...and it can record that way, but the thing I notice though is that xlobby/xschedular will hang until dabdig passes the command to DVB Dream, then I get the overlay open to say it has been passed. I just don't understand how to stop that from happening as xlobby is useless until dabdig passes the info along. I think it most likely is something in the xschedular.ini file but I don't know for sure.

Any help would be appreciated.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: Schedule and record with ALOT of cards www

Postby lar282 on Tue May 20, 2008 6:37 am

I'll check the code this week. I'll get back to u
(If I can find the source code!)

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: Schedule and record with ALOT of cards www

Postby lar282 on Tue May 20, 2008 5:50 pm

Marbles_00 wrote:Lar,

I know you don't or really support this plugin anymore. I've tried the your MP TV3 plugin, I've tried the XLTV plugin, and so far, this one appears to be the best solution for my needs. I've been in talks with the dabdig developer in adding support for DVB Dream. I've been successful in getting dadig to start DVB Dream and record from command line. I'm passing commands from xschedular to dabig...and it can record that way, but the thing I notice though is that xlobby/xschedular will hang until dabdig passes the command to DVB Dream, then I get the overlay open to say it has been passed. I just don't understand how to stop that from happening as xlobby is useless until dabdig passes the info along. I think it most likely is something in the xschedular.ini file but I don't know for sure.

Any help would be appreciated.


Its because the code waits for the exit code of the application
while (!myProcess.HasExited)

How do u want it???I can add a new command same as record but not wait for exit, but then u don't know if the schedule is ok!


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: Schedule and record with ALOT of cards www

Postby Marbles_00 on Tue May 20, 2008 6:21 pm

Correct me if I'm wrong, but if I'm understanding you, it is waiting for the scheduler to exit, not dabdig? I do like that but, right now xlobby is stranded until recordings start. Not only that but, if corrected so it behaved in a way that didn't hang xlobby and I was able to watch a movie or something. It could be a little bit of a distraction should a recording start during watching a DVD movie, and an overlay suddenly pops up on the screen confirming that Dabdig has passed the info successfully.

Would it be difficult to make it a variable to set in the ini file. A 0 would make it behave as stands. By making the variable a 1 it will bypass waiting for an exit? Yeah, I will loose the integration aspect, but them the chances I take.

Thanks for looking into this request by the way.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: Schedule and record with ALOT of cards www

Postby lar282 on Tue May 20, 2008 6:27 pm

what XL command are u using?
commands.Add("RecordNow");
commands.Add("StopRecordNow");
commands.Add("ScheduleSelected");
commands.Add("Scheduledaily");
commands.Add("Scheduleweekly");

HAve to try and follow what u do. So long ago I looked into the code

If I look in the code there is an option to create a schedule and then an option to run DabDig.Its the latter that waits.

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: Schedule and record with ALOT of cards www

Postby lar282 on Tue May 20, 2008 7:13 pm

try this dll

http://www.xlobby.com/files/Shaggy/xschedule.dll


and set the varibale
WaitForDabDig=false
in the ini file

PS:NOT tested so keep the old dll in a safe place:DS

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: Schedule and record with ALOT of cards www

Postby Marbles_00 on Wed May 21, 2008 1:11 am

I will be using these commands mainly:
commands.Add("ScheduleSelected");
commands.Add("Scheduledaily");
commands.Add("Scheduleweekly");

The Start and Stop Recording now I most likely won't use as I will just use the command line commands within DVB Dream. Who, am I kidding, I will most likely try them out.

Thanks for the .dll, I will try it out when I get back from the gym.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: Schedule and record with ALOT of cards www

Postby Marbles_00 on Mon May 26, 2008 1:59 pm

Okay, sorry it took so long to give some feedback. I ran into some EPG issues. Now I that I have a working EPG, I tried the new .dll. First does it matter where 'WaitForDabDig=false' resides in the .ini file? I tried right at the beginning, and after the setup commands for dabdig, but it did not seem to make a difference (yes I restarted xlobby after replacing the .dll). It didn't seem to make much of a difference though either way :( .
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: Schedule and record with ALOT of cards www

Postby lar282 on Tue May 27, 2008 6:46 am

I uploaded a new DLL for u. try and get back to me
http://www.xlobby.com/files/Shaggy/xschedule.dll

The
WaitForDabDig=true
Must be in the
[SCHEDULE_CONFIG]
section

I rebuilt the dll and added a Log that says the variable for u. Can u try it and check
the log file (\log\xschedule.log). Find the line
WaitForDabDig= (value)

the code was made when I didn't know how to use xml files. The ini file is picky and will not exept any
spaces before or after the equal sign.

Sorry that I can't test it here but I am afraid I dont even remember what to have in the ini file. Its been along time since I used it.


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: Schedule and record with ALOT of cards www

Postby Marbles_00 on Tue May 27, 2008 10:21 am

Sorry that I can't test it here but I am afraid I dont even remember what to have in the ini file. Its been along time since I used it.


Hey, totally understand. I'm just elated that your actually taking the time to look into it, since it is a plugin you don't openly support/use anymore. Thanks for taking the time to look into it.

I will try the new .dll when given the chance.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: Schedule and record with ALOT of cards www

Postby Marbles_00 on Tue May 27, 2008 4:15 pm

I don't mind one bit being your tester. With that being said, the latest dll still did not work, but the WaitForDabig variable is shown in the log file:
Code: Select all
5/27/2008 11:03:32 AM Reading the conversion EPG table
5/27/2008 11:03:32 AM Reading INI file
5/27/2008 11:03:32 AM Found ini file.reading all the values
5/27/2008 11:03:32 AM INI File values: 1systemepgdabdigDABDIGc:\dabdig\dabdig.vbec:\Recorded_TVc:\scheduledTV
5/27/2008 11:03:32 AM USESCHEDULER=0
5/27/2008 11:03:32 AM WaitForDabDig=False
5/27/2008 11:05:03 AM EPG_Goto_Now was envoked: tvguide.xml
5/27/2008 11:05:03 AM GOTONOW starting. The EPG in xlobby must have a ID of 666 for it to work. also as a parameter the XML filename must be passed as an argument. For example tvguide.xml
5/27/2008 11:05:03 AM checking if EPG existxlobby2.EPG
5/27/2008 11:05:03 AM Converting dates to int for comparisen
5/27/2008 11:05:03 AM checking if EPG exist after the refreshxlobby2.EPG
5/27/2008 11:05:03 AM epg goto now. The show is longer than the current time. trying to comensate. 2 times
5/27/2008 11:05:03 AM epg goto now. The show is longer than the current time. trying to comensate. 2 times
5/27/2008 11:05:03 AM all Done:2:::52711::52711
5/27/2008 11:05:25 AM ScheduleSelected ONCE was envoked
5/27/2008 11:05:25 AM checking if EPG existxlobby2.EPG
5/27/2008 11:05:25 AM Channnel=xlobby2.TvChannelCurrentProgram=xlobby2.TvProgram
5/27/2008 11:05:25 AM Jumping to reading INI file
5/27/2008 11:05:25 AM Reading INI file
5/27/2008 11:05:25 AM Found ini file.reading all the values
5/27/2008 11:05:25 AM INI File values: 1systemepgdabdigDABDIGc:\dabdig\dabdig.vbec:\Recorded_TVc:\scheduledTV
5/27/2008 11:05:25 AM USESCHEDULER=0
5/27/2008 11:05:25 AM WaitForDabDig=False
5/27/2008 11:05:25 AM Done reading INI filec:\Recorded_TVc:\dabdig\dabdig.vbeepg
5/27/2008 11:05:25 AM Minute before:30 Minute after:29
5/27/2008 11:05:25 AM Wrong Date format. Redefining date
5/27/2008 11:05:25 AM Trying to find a channel conversion
5/27/2008 11:05:25 AM Did NOT Find a channel conversion
5/27/2008 11:05:25 AM Running DabDig command without scheduling it: ::Wscript.exe "c:\dabdig\dabdig.vbe" record "CJNT" "CJNT" "La Bella Vita" 08 05 27 11 30 31


For what its worth, I also tried with the USESCHEDULER=1 (against what is explained in the ini file), and the schedule did not get passed over to dabdig (as it shouldn't...but it was worth a try).
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: Schedule and record with ALOT of cards www

Postby lar282 on Tue May 27, 2008 6:13 pm

Marbles can u mail me your ini file please. That way I can try here.
Also where can I get the dabdig.vbe?

//Lasse
lasse10@telia.com
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Previous