|
|
|
03-28-2005, 12:19 PM
|
#1
|
|
Registered User
Join Date: Feb 2005
Posts: 111
|
A better /nowplaying/index.html
this file is an alternative to the generic 'now playing' webpage located on your tivo's webserver.
kinda nice to have if your pc's next to your tv.
it'll show you: total time, total space used, time left, expiration date, recording quality, plus various details about the program that are recorded.
to use
1. copy and paste into your favorite editor this xhtml code: http://my.opera.com/gman622/blog/show.dml/315486
++++save it as nowplaying.xhtml
2.-change line 9 to enter your tivo's location and IP (and storage space if you want)
-change line 14 to reflect your Media Access Key
-you can add more tivo's by uncommenting lines 10-13
***IMPORTANT: when you save the edited file the extension must be .xhtml
4. open in Firefox browser (Opera doesn't work)
Last edited by gman622 : 07-14-2006 at 09:03 PM.
|
|
|
03-28-2005, 02:47 PM
|
#2
|
|
tivo_xml developer
Join Date: Sep 2004
Location: Outside Phildadelphia
Posts: 1,887
|
Nice! That's a slick ajax script.
|
|
|
03-28-2005, 02:51 PM
|
#3
|
|
Registered User
Join Date: Oct 2003
Posts: 171
|
Nice ...
So, what is the most precise way to determine total disk space minus OS?
Code:
var totalGB = 29.252; //(optional) total gigabytes used to record shows
29.252 seems so precise you must have good reason.
Redrhino
|
|
|
03-28-2005, 07:42 PM
|
#4
|
|
No time to hack
Join Date: Jun 2004
Location: Groton, MA USA
Posts: 197
|
Nice, but how to download?
I like it! But, where is the link to download the .TiVo file?
I will play with it.
-Matt
|
|
|
03-28-2005, 08:16 PM
|
#5
|
|
Registered User
Join Date: Feb 2005
Posts: 111
|
Quote:
|
Originally Posted by redrhino
29.252 seems so precise you must have good reason.
|
all i did was fill up my tivo, start recording in five minutes increments until it deleted one of the five minute recordings; and then added up all the source sizes.
|
|
|
03-29-2005, 10:05 AM
|
#6
|
|
Registered User
Join Date: Oct 2003
Posts: 171
|
What is the size of the TiVo OS?
I figure that one could take the size of disk - size of OS to get the number you need...
I guess that one could also always add up all the sizes of shows in "now playing" via the web interface and ballpark it.
Redrhino
|
|
|
03-29-2005, 04:54 PM
|
#7
|
|
Registered User
Join Date: Mar 2005
Posts: 16
|
GMAN you rock!!!
|
|
|
03-30-2005, 02:17 AM
|
#8
|
|
DJ P
Join Date: Jul 2004
Posts: 225
|
It's cool but no place to link to tivo files...
sucks!
__________________
Visit To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Talk about music, iPods, TiVo, DJ'n... whatever you want to!
|
|
|
03-30-2005, 03:02 AM
|
#9
|
|
Registered User
Join Date: Feb 2004
Posts: 663
|
Man, this rocks.
Thanks!!
|
|
|
03-30-2005, 10:41 AM
|
#10
|
|
PP-ASEL
Join Date: May 2001
Location: Holly Springs, NC
Posts: 1,161
|
why not work with IE?
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. with To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
|
03-30-2005, 02:16 PM
|
#11
|
|
Registered User
Join Date: Feb 2005
Posts: 111
|
Quote:
|
Originally Posted by Paulson
It's cool but no place to link to tivo files...
sucks!
|
hopefully it doesn't suck as much now...the download link is the MB size.
i also added links for every name that's listed in the details to their respective
imdb page.
Last edited by gman622 : 10-20-2007 at 10:50 PM.
|
|
|
03-30-2005, 04:26 PM
|
#12
|
|
Registered User
Join Date: Mar 2005
Posts: 5
|
Quote:
|
Originally Posted by gman622
|
That needs to be saved on the Tivo, correct?
Any idea how to do that on a Toshiba Series 2 with DVD player built in?
|
|
|
03-30-2005, 04:43 PM
|
#13
|
|
an adventurer is me!
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 8,434
|
Quote:
|
Originally Posted by brichter
That needs to be saved on the Tivo, correct?
Any idea how to do that on a Toshiba Series 2 with DVD player built in?
|
No, you put this on your web server or run it through your browser on your PC. It will then connect to the specified TiVos and pull the information.
__________________
658~XL, 300 HD hrs (1TB Expander)
648~S3, 179 HD hrs (1TB Expander)
230~S2, 136 SD hrs (upgraded)
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. on Ubuntu
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
|
03-30-2005, 08:02 PM
|
#14
|
|
Registered User
Join Date: Oct 2002
Location: Wilmington, MA
Posts: 435
|
Thank you for the cool file.
I have a 90 hour tivo, and usually record everything in basic.
what should i put in this section?
var totalGB = 29.252; //(optional) total gigabytes used to record shows
Thanks again.
|
|
|
03-30-2005, 08:19 PM
|
#15
|
|
an adventurer is me!
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 8,434
|
Quote:
|
Originally Posted by windracer
No, you put this on your web server or run it through your browser on your PC. It will then connect to the specified TiVos and pull the information.
|
Actually, I take some of that back. It works fine through Firefox when the file is local on my PC. When I tried to serve it through Apache (via my Linux web server) to Firefox, it didn't work. Guess it's not meant to work that way.
Pretty cool looking though!
__________________
658~XL, 300 HD hrs (1TB Expander)
648~S3, 179 HD hrs (1TB Expander)
230~S2, 136 SD hrs (upgraded)
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. on Ubuntu
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
|
03-31-2005, 01:23 AM
|
#16
|
|
Registered User
Join Date: Feb 2005
Posts: 137
|
Quote:
|
Originally Posted by windracer
Actually, I take some of that back. It works fine through Firefox when the file is local on my PC. When I tried to serve it through Apache (via my Linux web server) to Firefox, it didn't work. Guess it's not meant to work that way.
Pretty cool looking though!
|
Nope it's not. If you look at it and know anything about javascript you'll quickly realize it's all client side meaning the machine that it's actually executing on needs to be able to reach your TiVo(s) through the network.
Of course, there's little to keep you from having a go-between where your webserver makes the exact same requests of the TiVo that the file does and the file in turn makes the request of your webserver. Like a pipe sort of.
At any rate, was just adding some details for anyone that cared about all that stuff.. 
__________________
Tivo Series 2 40hr
Humax T800 baked with InstantCake on a WD160GB
Last edited by boscodegama : 03-31-2005 at 01:39 AM.
|
|
|
03-31-2005, 06:48 PM
|
#17
|
|
Registered User
Join Date: Jul 2003
Location: Norman, OK
Posts: 76
|
Very nice... I wish the external links (to IMDB) opened in a seperate window. Guess if I wasn't so darned lazy I would fix it myself, though.
Very good work!
__________________
All generalizations are bad.
|
|
|
03-31-2005, 08:32 PM
|
#18
|
|
Registered User
Join Date: Feb 2005
Posts: 111
|
Quote:
|
Originally Posted by ElPuerco
I wish the external links (to IMDB) opened in a seperate window.
|
i have my preferences set in firefox for middle-clicked links to open in a background tab, or you can always right click->open in new tab/window.
personally i think's its rude when a webmaster doesn't leave the choice up to the user where he/she wants to open links.
|
|
|
04-01-2005, 06:12 PM
|
#19
|
|
Primate
Join Date: Feb 2004
Location: The Jungle
Posts: 36
|
Quote:
|
Originally Posted by gman622
|
When I click on the size, it prompts me for a username and password. Is there a default?
__________________
Tivo Should Be Purple
|
|
|
04-01-2005, 06:20 PM
|
#20
|
|
an adventurer is me!
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 8,434
|
Quote:
|
Originally Posted by grapeape
When I click on the size, it prompts me for a username and password. Is there a default?
|
Use 'tivo' as the username and your MAK as the password.
__________________
658~XL, 300 HD hrs (1TB Expander)
648~S3, 179 HD hrs (1TB Expander)
230~S2, 136 SD hrs (upgraded)
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. on Ubuntu
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
|
04-02-2005, 11:55 AM
|
#21
|
|
Registered User
Join Date: Feb 2005
Posts: 6
|
Just wanted to let you know.
It does NOT work in konqueror.
Loaded FireFox and it worked fine.
Would NEVER try Internet Extorter, so I would not know about it.
|
|
|
04-02-2005, 11:58 AM
|
#22
|
|
the anti-haX0r
Join Date: Oct 2004
Location: Washington DC Area
Posts: 373
|
Quote:
|
Originally Posted by Kriston
Just wanted to let you know.
It does NOT work in konqueror.
|
Thats odd, it works fine in Safari.
__________________
AnteL0pe
hotline://theabode.ath.cx
|
|
|
04-02-2005, 06:44 PM
|
#23
|
|
Registered User
Join Date: Feb 2005
Posts: 6
|
It is odd. I guess that it might be some of the new security features. When (if) I get some time I will dig a little deeper into it. I am running SuSE 9.2 on AMD 64 Athlon 3000+. It might be a 64 bit issue.
|
|
|
04-02-2005, 08:04 PM
|
#24
|
|
the anti-haX0r
Join Date: Oct 2004
Location: Washington DC Area
Posts: 373
|
I'll try it from a linux box as well...
__________________
AnteL0pe
hotline://theabode.ath.cx
|
|
|
04-02-2005, 09:29 PM
|
#25
|
|
Registered User
Join Date: Dec 2001
Location: Bellevue, WA
Posts: 50
|
When I tried this in Firefox nothing happened.
The JavaScript Console says line 7 has a syntax error.
That would be the line that has this:
<![CDATA[
I'm not a Java guy, can anyone tell me what is going on, I just downloaded this and made my tivo ip and mak changes. I also downloaded another copy just to make sure I didn't change line 7.
|
|
|
04-03-2005, 03:14 AM
|
#26
|
|
Registered User
Join Date: Feb 2005
Posts: 6
|
I just tried the 32 bit version (on a different computer). Same thing. I get the skeleton of the format, but no data is filled in. Mozilla and FireFox both work properly.
Konqueror never displays certificate or cookie info dialog like the others. It may be rejecting something before I see it.
|
|
|
04-03-2005, 11:40 AM
|
#27
|
|
Registered User
Join Date: Feb 2005
Posts: 6
|
I just enabled javascript debug and error checking. I gate a Parse Error at line 8.
This is the line that sets the tivo_ip variable.
Still investigating.
|
|
|
04-03-2005, 12:47 PM
|
#28
|
|
Evil Code Monkey
Join Date: Mar 2003
Location: Southern NJ
Posts: 3,645
|
This is very cool, but it suffers from the same bug that every other program that grabs all the shows at once from a TiVo does.
The TiVo will only return a maximum of 128 shows at one time. This means that your script will only show a maximum of (that's right) 128 shows. My TiVo contains 202 shows so the last 74 aren't picked up.
A simple fix for this is to grab a lower number of shows at once using the "AnchorOffset" and "ItemCount" parameters. For example by adding the following to the end of the URL it will grab 50 shows starting at index 100: "&ItemCount=50&AnchorOffest=100". If the number of shows left is less that the amount listed in ItemCount, than only the number of shows left will be returned. If the AnchorOffset is greater than the total number of shows, than no shows will be returned (the ItemCount XML variable will be 0).
I'm not sure exactly how this could be done easily in your code since it requires making multiple requests to the TiVo and parsing out the data for each request and your code doesn't look like it was designed to do this.
Also you do a blocking call which means the browser can't be used while the show listing is being downloaded. I once wrote a script to parse through a number of web pages using XMLHttpRequest and there is a way to write it so it does so in the background. Set the third parameter in the open() call to true and use the "onreadystatechange" variable to have it call a function when the server response comes in.
Last edited by morac : 04-03-2005 at 01:53 PM.
|
|
|
04-04-2005, 04:10 PM
|
#29
|
|
Registered User
Join Date: Feb 2005
Posts: 111
|
I've updated this so that the shows are now sortable.
By clicking on the table header titles you can sort by:
SourceStation, Title, CaptureDate, SourceSize, and Recording Quality.
You can still get it at:
http://home.ripway.com/2005-2/266393/nowPlaying.xhtml
*still only guaranteed to work with FireFox
|
|
|
04-04-2005, 04:41 PM
|
#30
|
|
Registered User
Join Date: Dec 2001
Location: Bellevue, WA
Posts: 50
|
All fine and very good, but can anyone explain why I get syntax error on line 7 when I try it in Firefox?
That would be the line that has this:
<![CDATA[
So far, the Firefox guarantee is not valid.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|