View Full Version : Using Mike C.'s Internet Explorer OSD
VaioUserChris
October 6th, 2004, 06:32 PM
Mike,
You had asked me to keep you posted as to how I was using your Internet Explorer OSD so I thought I'd fill you in. I have a new cable box with digital video recorder (Scientific Atlanta Explorer 8000) which allows you to record TV to the box. It's really cool except for the search function, which sucks. So I decided to use Girder on my computer to assist it with searches. Your OSD provides the user interface.
The first lua script asks the user what they want to search for. When the user clicks submit it calls the second script and passes the search terms as a payload. The second script then searches an XMLTV file (tv database file) on my computer for the search terms and writes all the results in HTML in a variable (it takes about 2 seconds to search a 12Mb file - pretty quick). It then calls the third script to display the results as well as buttons to record the program you want.
The buttons call a fourth script sending the program data is a payload. The fourt script sends the IR commands (through USB-UIRT) to the cable box to set the recording. The GML is attached including all the USB-UIRT codes for the Scientific Atlanta 8000.
Chris
Promixis
October 6th, 2004, 06:38 PM
Thanks! I will play with it later!
father of monstermagnet
October 7th, 2004, 04:46 AM
Cool !!! :D Nice use of IE app...
quixote
October 20th, 2004, 03:38 PM
Thanks! I will play with it later!
I thought you were married? :lol:
Hi guys. I lost my main hard drive, so I'm waiting for Girder 4 before I jump back into it. I had been putting off backing up my .GML and I lost everything so I really don't have it in me to start all over again yet. Just wanted to say hi and it's still interesting to watch what kind of projects you and the rest of the Girder community are up to. See ya!
Promixis
October 20th, 2004, 03:41 PM
Thanks! I will play with it later!
I thought you were married? :lol:
Hi guys. I lost my main hard drive, so I'm waiting for Girder 4 before I jump back into it. I had been putting off backing up my .GML and I lost everything so I really don't have it in me to start all over again yet. Just wanted to say hi and it's still interesting to watch what kind of projects you and the rest of the Girder community are up to. See ya!
Hey, don't wait for G4, come on back! ;)
quixote
October 20th, 2004, 03:49 PM
I'm still around, but I almost cried when I realized that all of my scripts and IR codes are stuck on a drive that has lost it MBR table. I've tried everything to recover it, and had put hundreds (?) of hours into creating that GML, (as I mentioned, I am no too swift at programming :-? ) But I will be back in action after a vaction and when G4 is available for purchase I'll hit it with renewed fervor!
I was also discouraged because I had ordered a throat vibration wireless microphone on ebay from mypopstuff.com on August 17 and I still have not received it. That set me back around $70 Cdn. with shipping. More like mypoopstuff.com... pft
VaioUserChris
October 20th, 2004, 07:27 PM
For myself, I'm a little hesitant about the thought of upgrading to Girder 4 when it becomes available. I'm sure Girder 4 will have a lot more cool features but I believe the upgrade also means having to convert all my Lua scripts to Lua 5.:-?
I wonder if someone will come up with a good Lua 4 to Lua 5 converter...
Or maybe there'll be support for Lua 4 in the new Girder? Mike? :D
Chris
Promixis
October 20th, 2004, 07:30 PM
Chris,
As they say, no pain no gain :D
Much will change in Girder 4 but much will be the same. Lua scripts will be broken :( but hopefully minimally. Lua 5 is a big step forward and well worth it.
VaioUserChris
October 20th, 2004, 07:37 PM
I was afraid of that.
Well, at least I'll be making good use of the Lua book I purchased. :wink:
Plus, this will give me a reason to streamline my scripts.
Chris
Promixis
October 21st, 2004, 03:23 AM
Now that's an attitude I like! :D
peegee
January 2nd, 2005, 12:00 PM
Im just tried parts of your script Chris and it works great!
I thought I could modify it a little to fit my needs better and got stuck, of course. :)
I want to search my TVData.xml file based on:
Start Time and Stop Time and Channel
This is to display "Now Showing Program" when i watch a certain channel.
How does this Node-pattern matching work?
I pasted some of your code below.
node = FC:SelectSingleNode(
--"//programme[@start > \""..date("%Y%m%d%H%M").."00"..timezonemarker.."\""
"//programme[@start > \"".."20041229120000 +0100".."\""
-- first criteria only show programs after this moment in time
.." and "..
"//programme//"..searchfield.." = \""..searchvalue.."\""
-- match our primary search value
.."]") -- close search criteria
I replaced the date function with a fixed string, just for testing.
"//programme[@start > \"".."20041229120000 +0100".."\""
This searches for programme node with the attribute start bigger than "20041229120000 +0100" right?
Im guessing it is here one would extend the patternmatching?
Hope someone could point me in the right direction here.
VaioUserChris
January 5th, 2005, 11:13 PM
Hi Peegee,
I'm glad you find the script useful. I found pattern matching in XML to be rather confusing and a major PIA. I thought about doing what you're attempting, but I wasn't able to get it to search for all the programs that occur at the present time. The best I got it to do was look for the first node that hasn't occured yet and then apply other search criteria from there. I'm sure it can be done but I couldn't figure it out.
Curtis Wren put together a plugin to make it easier to sort through XMLTV files. Maybe that woud work better for what you're trying to do. You can find info about that plugin on this post: http://www.promixis.com/phpBB2/viewtopic.php?t=9779&postdays=0&postorder=asc&start=0
Hope that helps...
Chris
Jlee
January 5th, 2005, 11:48 PM
I'm still around, but I almost cried when I realized that all of my scripts and IR codes are stuck on a drive that has lost it MBR table. I've tried everything to recover it, and had put hundreds (?) of hours into creating that GML,............
There must be some app out there that can recover files off that drive for you. I saw someone mention R-Studio in another forum.
peegee
January 6th, 2005, 03:52 AM
Chris.
Thanks for the tip on the XMLTv-plugin by Curtis Wren.
Looking at the plugindocs it says.
XMLTV_get
args: string channelId - get this from XMLTV_getChannel
string timestamp - This is in the format YYYYMMDDHHSS.
returns: table that describes a program that is on the given channel at the given time.
Which is great, just have to test it now. :)
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.