1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iTivoweb - Module for iPhone

Discussion in 'TiVo Series 1 - UK' started by warrenrb, Jan 13, 2009.

  1. warrenrb

    warrenrb Quiet Member

    330
    0
    Jul 20, 2002
    Belfast
    OK, I've zipped up what I've done so far, if anyone wants to try it and see if it's worth continuing with.

    Remember, this is me hacking around with Johala_reewi's xhtml-mp module, to make it iPhone friendly. He gets all the credit for the clever stuff, and my apologies if he finds this a horrid bastardisation of his work!

    Also, the usual "use at your own risk" stuff applies - this is very early version and I haven't got to a lot of the sections yet. Now Playing and ToDo work pretty well so far, and show what I'm aiming for.

    I've structured the contents of the folder as a guide to where things go:
    iphone.css and apple-touch-icon.png go in your tivoweb-tcl folder, and itivoweb.itcl goes into the modules folder within that folder.

    One tip: if you bookmark the home page of the module to your Phone/Touch home screen, you'll get a nice Tivo icon to go straight to it! :D

    I look forward to your thoughts!

    Cheers,
    Warren.
     

    Attached Files:

  2. warrenrb

    warrenrb Quiet Member

    330
    0
    Jul 20, 2002
    Belfast
    Some screengrabs:

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
  3. rslatkin

    rslatkin New Member

    29
    0
    Sep 4, 2002
    Is there any way to use this with TivoWebPlus? Your screenshots look great!
     
  4. RichardJH

    RichardJH New Member

    1,195
    0
    Oct 7, 2002
    Hanworth....
    will this work with an XDA orbit touch screen phone running Windows Mobile 6.

    The screenshots look great.
     
  5. warrenrb

    warrenrb Quiet Member

    330
    0
    Jul 20, 2002
    Belfast
    Wow, I thought absolutely no-one was the slightest bit interested! :)

    TivoWebPlus - I dunno - I just currently run TivoWeb. Aren't the modules cross-compatible? (I assume you've tried it already?). In terms of the code, as I mention I'm hacking/styling a pre-existing 'xhtml-mp module', so the changes for TivoWebPlus compatibility would have to come from that modules author I'm afraid.

    Regarding the XDA Orbit - This is just a browsable module in Tivoweb, like any other, so installing it and browsing it on your XDA would work, but the CSS is all completely optimised for iPhone/iPod Touch Safari(Webkit) browser, so I doubt you would get the same layout.

    Problems would be many - screen res, installed fonts (this uses Helvetica), Webkit specific CSS (I think I'm using rounded corner boxes in one part).

    Have you tried how the original xhtml-mp module looks on there?
    http://www.tivocommunity.com/tivo-vb/showthread.php?t=344615
     
  6. RichardJH

    RichardJH New Member

    1,195
    0
    Oct 7, 2002
    Hanworth....
    Tried it and the problems are as you said. I have left it installed lest someone gives me an iPhone (my XDA was a free gift)

    I will try the other option and will report in that thread.

    Well done Warren

    Update re xhtml-mp:- Tried it on my XDA (WM6) and works well. Less cluttered on screen than standard TivoWeb
     
  7. Apr 7, 2009 #7 of 48
    cleudo

    cleudo New Member

    255
    0
    Apr 7, 2002
    Scotland
    Works great in my iphone - had a bit of trouble getting the icon to load, till I put it in a few other directories other than the one you mentioned - then it found it.

    The text in the info section is a bit difficult to read I'm finding - can you make it a bit bigger or make it black?

    Great job though - very useful.
     
  8. Apr 7, 2009 #8 of 48
    healeydave

    healeydave from tivoland.com

    944
    0
    Jun 4, 2003
    Midlands
    I'm loving this, nice job Warren, I have added a news snippet linking to this from my home page.

    hehehe, the iPhone advert just came on TV whilst posting this :)

    If you have no objections Warren, I would like to include this in my Hard Disk build.
     
  9. Apr 9, 2009 #9 of 48
    stevencarpenter

    stevencarpenter New Member

    35
    0
    Sep 4, 2003
    Works a treat under TWP 1.3.1, all you need to do is,
    copy iphone.css into the /var/hack/tivowebplus/themes folder,
    copy apple-touch-icon.png into the /var/hack/tivowebplus/images folder and copy itivoweb.itcl into the /var/hack/tivowebplus/modules folder.

    Is anyone planning to develop this any further? Sadly I just don't have the time but am happy to test any updates. :)

    Cheers!
     
  10. warrenrb

    warrenrb Quiet Member

    330
    0
    Jul 20, 2002
    Belfast
    Hi All,

    Sorry it's still unfinished - super busy at my end, plus it didn't seem to get much of a response when I posted it, so I didn't think there was any real interest.

    I'll try and get some time to finish styling some of the unfinished parts soon.
     
  11. cleudo

    cleudo New Member

    255
    0
    Apr 7, 2002
    Scotland
    With the iphone price dumping, more forum members probably own one now (I picked up the 16GB one last week for £57 & the company I work for gets me a 30% discount on the line rental woo hoo!)
     
  12. rslatkin

    rslatkin New Member

    29
    0
    Sep 4, 2002
    It's not working for me on TWP 2.1.b3. When I click on the iTivoweb link in the main menu, I get 404 Not Found.
     
  13. johala_reewi

    johala_reewi New Member

    865
    0
    Oct 30, 2002
    Southampton UK
    TWP 2 requires older modules to be re-engineered. AFAIK iTivoweb will only work on TW and TWP 1.
     
  14. rslatkin

    rslatkin New Member

    29
    0
    Sep 4, 2002
    I tried iTivoWeb on TWP 1.3.1, and it looks pretty good. The only problem I'm having is that it's not using the "Prefix" from tivoweb.cfg (url_prefix variable.)

    I would love to see some more development on this. Tivo and iPhone are my two favorite gadgets!
     
  15. johala_reewi

    johala_reewi New Member

    865
    0
    Oct 30, 2002
    Southampton UK
    Do you have an example?
     
  16. rslatkin

    rslatkin New Member

    29
    0
    Sep 4, 2002
    When I first tried it, I wasn't seeing the iphone theme. I added the global variable url_prefix and changed this line in itivoweb.itcl:

    Code:
    puts -nonewline $chan {<link media="screen" rel="stylesheet" href="iphone.css" type="text/css" />}
    to this:

    Code:
    puts -nonewline $chan {<link media="screen" rel="stylesheet" href="$url_prefix/iphone.css" type="text/css" />}
    Also, when I try to click on any of the links on the main page, they are missing the prefix "/tivo/" that I have specified in my tivoweb.cfg. The URL should look like:

    http://hostname.net/tivo/itivoweb/t

    but instead it looks like:

    http://hostname.net/itivoweb/t
     
  17. johala_reewi

    johala_reewi New Member

    865
    0
    Oct 30, 2002
    Southampton UK
    That'll be my fault.
    iTivoweb was based on xTivoweb which didn't use the $url_prefix.

    I can update xTivoweb to support the $url_prefix but that won't fix iTivoweb unless Warren does some more development.
     
  18. rslatkin

    rslatkin New Member

    29
    0
    Sep 4, 2002
    I've done a little bit to add the url_prefix where it needs to go. Here is a diff of my changes so far:

    Code:
    51a52,53
    >   global url_prefix
    >
    99c100
    <   puts -nonewline $chan {<link rel="apple-touch-icon" href="/apple-touch-icon.png">}
    ---
    >   puts -nonewline $chan {<link rel="apple-touch-icon" href="$url_prefix/images/apple-touch-icon.png">}
    113c114
    <   puts -nonewline $chan {<link media="screen" rel="stylesheet" href="/iphone.css" type="text/css" />}
    ---
    >   puts -nonewline $chan {<link media="screen" rel="stylesheet" href="$url_prefix/iphone.css" type="text/css" />}
    138c139
    <     default { itivoweb_home $chan }
    ---
    >     default { itivoweb_home $chan $url_prefix}
    140c141
    <   puts -nonewline $chan {<h1><a href="/itivoweb/0">Home</a></h1>}
    ---
    >   puts -nonewline $chan "<h1><a href=\"/${url_prefix}itivoweb/0\">Home</a></h1>"
    147c148
    < proc itivoweb_home {chan} {
    ---
    > proc itivoweb_home {chan prefix} {
    151,156c152,157
    <   puts -nonewline $chan {<li><a href='/itivoweb/n?lf=t&d=a&f=n&g=Go'>Now Showing</a></li>}
    <   puts -nonewline $chan {<li><a href='/itivoweb/t'>To Do</a></li>}
    <   puts -nonewline $chan {<li><a href='/itivoweb/r'>Record</a></li>}
    <   puts -nonewline $chan {<li><a href='/itivoweb/p'>Season Passes</a></li>}
    <   puts -nonewline $chan {<li><a href='/itivoweb/i'>Info & Phone</a></li>}
    <   puts -nonewline $chan {<li><a href='/itivoweb/b'>Restart Tivoweb</a></li>}
    ---
    >   puts -nonewline $chan "<li><a href=\"/${prefix}itivoweb/n?lf=t&d=a&f=n&g=Go\">Now Showing</a></li>"
    >   puts -nonewline $chan "<li><a href=\"/${prefix}itivoweb/t\">To Do</a></li>"
    >   puts -nonewline $chan "<li><a href=\"/${prefix}itivoweb/r\">Record</a></li>"
    >   puts -nonewline $chan "<li><a href=\"/${prefix}itivoweb/p\">Season Passes</a></li>"
    >   puts -nonewline $chan "<li><a href=\"/${prefix}itivoweb/i\">Info & Phone</a></li>"
    >   puts -nonewline $chan "<li><a href=\"/${prefix}itivoweb/b\">Restart Tivoweb</a></li>"
    
     
  19. johala_reewi

    johala_reewi New Member

    865
    0
    Oct 30, 2002
    Southampton UK
    Ta.

    Will retrofit these to xTivoweb just in case non iphone mobile users haev a similar problem.
     
  20. rslatkin

    rslatkin New Member

    29
    0
    Sep 4, 2002
    I'm having trouble with another issue. I looked at the code, but I wasn't able to tell what the problem is. I hope someone who's more experienced with tcl and tivoweb can help.

    When I tap on a show in the ToDo or Now Showing list, I get this error just after "View Upcoming."

    Code:
    INTERNAL SERVER ERROR
    --cut here--
    action_itivoweb '/s' 'set "s" "8109162/12";'
    can't open object (0x11007)
    
        while executing
    "db $db openid $spfsid"
        ("uplevel" body line 10)
        invoked from within
    "uplevel $body"
        invoked from within
    "transaction {uplevel $body}"
        (procedure "RetryTransaction" line 5)
        invoked from within
    "RetryTransaction {
          catch {mfs scan "/SeasonPass" -start "$prefix" -count 1} batch
          if { $batch == "" } {
            set done 1
            set spf..."
        (procedure "itivoweb_find_spfsid" line 10)
        invoked from within
    "itivoweb_find_spfsid $seriesfsid $stationfsid"
        (procedure "itivoweb_showprogram" line 152)
        invoked from within
    "itivoweb_showprogram $chan "
        ("default" arm line 1)
        invoked from within
    "switch -exact -- $o {
        r { itivoweb_record_showing $chan }
        c { itivoweb_cancel_recording $chan }
        d { itivoweb_delete_showing $chan }
        e ..."
        (procedure "itivoweb_show" line 4)
        invoked from within
    "itivoweb_show $chan "
        ("s" arm line 1)
        invoked from within
    "switch -exact -- $path {
        n { itivoweb_nowshowing $chan }
        t { itivoweb_todo $chan }
        r { itivoweb_record $chan }
        h { itivoweb_history $c..."
        (procedure "::action_itivoweb" line 98)
        invoked from within
    "::action_$action $chan $part $env"
        ("eval" body line 1)
        invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--
     

Share This Page