-
October 13th, 2002, 03:55 PM
#1
TivoWeb / Tivo Girder control
I have a setup that passes commands from an ATI rf Remote to Tivoweb, which is a web server that sits on the Tivo.
This gives me the ability to control the Tivo from any room in the house, with just the ati remote.
The calls to Tivoweb are made using the O.S. tab with
Execute
File http://Tivowebipaddress/sendkey/up
For this to work, I have to set IE options General Temporary Internet Files settings to Check for newer Every visit to the page.
I've been using this for a few months, but before I post it up....
1.) Is there a way to use a variable in the middle of the file argument?
So someone could set Tivowebipaddress = 192.x.x.x and save all the retyping? If not, no biggie, only takes 2 secs.
2.) Is there another way to call the page that would be faster than this constant redraw?
The problem is that without that setting change in IE, only the first press of one key gets sent, others just pull the cache, and the page request never goes..
TIA
J
-
October 13th, 2002, 03:55 PM
#2
It does work to expand variables in the File argument to Execute. Just put the variable name in square brackets, as elsewhere.
If I understand properly, you don't need to actually display the contents of the URL in IE. Accessing it just changes the state of the server (the TiVo) itself. For that, if it were me, I'd write an external script to do it and call that from Girder, passing the key as an argument. (Execute wscript.exe, pass script name as first arg.) Should be less than ten lines in either VBScript or JScript.
Roughly,
- WScript.Arguments has the command line parameters
- WScript.CreateObject of WinHttp.WinHttpRequest
- Open GET http://...
- Send
Detailed information on the objects is on MSDN.
-
October 13th, 2002, 03:55 PM
#3
MMcM,
Thanks for the info. Once I've finished wringing every event I can out of the dxr2, I'll look into this. (Got Mute and Disk/Video Title out a few mins ago. Think there is more to come)
J
-
June 10th, 2003, 07:23 PM
#4
Jason, Don't know if your still around. I have a similar setup here and wondering what you finally ended up with. I would prefer to bypass the browser all together. I have it kludged together where the sendkey is sent, wait 175ms and then closed the browser, real annoying
-
June 13th, 2003, 09:02 PM
#5
i did basically the same thing but used wget instead of ie. that combined with the open as hidden makes it work seamlessly(no windows pop up). oh, and be sure to use the -o option and specify a temp file...otherwise you end up with a new htm file for every click...that adds up fast! let me know if you need help setting it up.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules