DABDig Forums
register | my profile | my bookmarks | my notifications | search | faqs
Show topics:     
   All Forums
    Other EPG
        DabDig - watch folder ?
 
  Jump to:     
Bookmark This Topic | E-mail This Topic To A Friend   Previous Topic   Next Topic
Author Topic
jj
Posts: 5
From:
Registered: 13/06/2005 19:28
Show this author's profile    Email the author of this post
Posted: Monday, June 13, 2005 - 19:32 Edit this message  Reply to this message with quotes  (IP Logged)

Just an idea - possibly to help other other progs and tools interact with Nebula's DigiTV..

Is it possible for DABDig to watch a folder (user defined anywhere) and if say a text file is uploaded using a standard format - a timer is added to the reg for Digitv to pick up on ? - the reason i ask is im trying to get my modded xbox (running XBMC) to interact with digitv.

I've tried and failed gettig python to interact with the web interface, but a new tv guide has been released (myTV - in python) which possibly could ftp timer settings to a txt file on the home pc ??

Well, its an idea ??? Smile

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Monday, June 13, 2005 - 21:41 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

DABDig itself is not a permanently running application ... however it can readily be run from the command line and has an undocumented ability to be passed a file name to take its instructions from.

So - if you wrote a unique file per transaction - and then had a batch file running which then polled a directory once every 'n' minutes then if it found a file it could invoke DABDig on it, wait for it to complete and then delete/move the file.

The file contents should be the same style as your see in the dabdig.txt for when it is called by DigiGuide ...

e.g. something like

"REC" "BBC One" "1" "Show title" "2005" "12" "25" "5" "15" "60" "A show description of some sort"


Paul Webster

DABDig creator

jj
Posts: 5
From:
Registered: 13/06/2005 19:28
Show this author's profile    Email the author of this post
Posted: Monday, June 13, 2005 - 22:45 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

ok - that sounds good, although it sounds more like a weekend job than a monday night Smile

Can I check what each individual parameter is, and what the final version would look ike..

"REC" "BBC One" "1" "Show title" "2005" "12" "25" "5" "15" "60" "A show description of some sort"

what is the 12, 25, 5, 15 and I guess 60 is minutes (?)

and the final version, would it be a text file which dabdig opens with the command as you exampled below with quotes ?

Cheers !

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Monday, June 13, 2005 - 23:12 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

If you run dabdig.vbe with no parameters it will give you a command line definition.

The numbers are year, month, day, hour, minute and duration.

The example I gave was to record something at Christmas.

dabdig.vbe @filename.txt

if the syntax to get this facility to work.

If some other syntax is easier just tell me and I'll see what I can do.

I also run XBMC at home - but not for TV schedules - but am happy to experiment.


Paul Webster

DABDig creator

jj
Posts: 5
From:
Registered: 13/06/2005 19:28
Show this author's profile    Email the author of this post
Posted: Monday, June 13, 2005 - 23:21 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Well, as background Ive just installed the myTV script from xbmcscripts.com - which grabs the data from the radiotimes xml. It just gave me the idea really - its the one thing hich if i could get working would probably complete the xbmc project for me, even if it were just triggering recordings on a relativley basic level - it would be spot on.

Im going to get in touch with the author of the script and see if he is open to developing a version towards this way... hopefully, as my python is dreadful.

Programing is totally over my head unfortunatley (even for work i project manage - not do anything!) so i'll have to see what i can come up with re batch scripts etc... and give it a go !!

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Monday, June 13, 2005 - 23:41 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Probably have to wait next week-end before I can take a more detailed look - but offer remains to help.

Is there a fairly good web-browser that can be launched from XBMC?

If so - then it could access DigiGuide on the DABDig PC (DigiGuide has built-in skinable web-server) - which in turn can set DABDig markers etc.


Paul Webster

DABDig creator

jj
Posts: 5
From:
Registered: 13/06/2005 19:28
Show this author's profile    Email the author of this post
Posted: Tuesday, June 14, 2005 - 06:12 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

OK - cheers for the offer of help, i'll have to take it up at an early stage unfortunatley !

I ran the following parameters, but keep getting errors:

"mp2" "BBC One" "1" "test1" "2005" "06" "14" "6" "15" "5"

log:

14/06/2005 06:10:16 - 2.54b08 - "C:\1.txt"

14/06/2005 06:10:16 - 2.54b08 - Wrong parameters: Usage-"<StreamType>" "<ChannelName>" "<ChannelAssignment>" "<ProgrammeName>" "<StartYear>" "<StartMonth>" "<StartDay>" "<StartHour>" "<StartMinute>" "<MinutesDuration>" ["<Description>" ["<Category>"]]

... do not forget the quotation marks - because of spaces in ChannelName and ProgrammeName etc

... Oh Yes - do not put the <> or [] signs in! The [] signs indicate optional parameter.

14/06/2005 06:10:17 - 2.54b08 - From DigiGuide reminder ...

dabdig.vbe "mp2" "$ChannelName" "$ChannelID" "$ProgrammeName" $Timestart("%Y" "%m" "%d" "%H" "%M") "$Duration"

Can sometimes replace "mp2" with "mp3" to record smaller, lower quality files - check your recording program.

14/06/2005 06:10:20 - 2.54b08 - Also can sometimes replace "mp2" with "play" to listen rather than record

When recording from Satellite - ChannelName should be <TransponderId/ChannelId>

14/06/2005 06:10:25 - 2.54b08 - Given command: "C:\1.txt"

I also tried REC instead of mp2....

Am I missing something ?

Frown

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Tuesday, June 14, 2005 - 12:45 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

YOu need to either put all of the parameters on the command line to DABDig or put a commercial-at (@) in front of the file name that contains that parameters.


Paul Webster

DABDig creator

jj
Posts: 5
From:
Registered: 13/06/2005 19:28
Show this author's profile    Email the author of this post
Posted: Tuesday, June 14, 2005 - 22:30 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

ah yes.. that did it !

Is there a way of disabling the ok/info button after it has sucessfully added the timer ?

Cheers.

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Wednesday, June 15, 2005 - 07:45 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Ah sorry. That is a consequence of this facility not really existing Wink

I still have some diagnostics in it.

If you wait 10 seconds the box will go away by itself - so for unattended use it won't really matter anyway.

Send me a note and I'll reply with the very first 2.55 build attached ... I've just changed it to write the data to the log file rather than the screen.


Paul Webster

DABDig creator

  Previous Topic   Next Topic

Admin/Moderator: Thread Management