Author |
Topic |
jj Posts: 5 From: Registered: 13/06/2005 19:28 | Posted: Monday, June 13, 2005 - 19:32 | | (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 ??? |
Paul Webster Posts: 371 From: UK Registered: 22/05/2004 19:27 | Posted: Monday, June 13, 2005 - 21:41 | | (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 WebsterDABDig creator |
jj Posts: 5 From: Registered: 13/06/2005 19:28 | Posted: Monday, June 13, 2005 - 22:45 | | (IP Logged) |
ok - that sounds good, although it sounds more like a weekend job than a monday night 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 | Posted: Monday, June 13, 2005 - 23:12 | | (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 WebsterDABDig creator |
jj Posts: 5 From: Registered: 13/06/2005 19:28 | Posted: Monday, June 13, 2005 - 23:21 | | (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 | Posted: Monday, June 13, 2005 - 23:41 | | (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 WebsterDABDig creator |
jj Posts: 5 From: Registered: 13/06/2005 19:28 | Posted: Tuesday, June 14, 2005 - 06:12 | | (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 ? |
Paul Webster Posts: 371 From: UK Registered: 22/05/2004 19:27 | Posted: Tuesday, June 14, 2005 - 12:45 | | (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 WebsterDABDig creator |
jj Posts: 5 From: Registered: 13/06/2005 19:28 | Posted: Tuesday, June 14, 2005 - 22:30 | | (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 | Posted: Wednesday, June 15, 2005 - 07:45 | | (IP Logged) |
Ah sorry. That is a consequence of this facility not really existing 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 WebsterDABDig creator |