tivoweb module - schedule

Discussion in 'TiVo Underground' started by dlowe, Jan 10, 2003.

  1. dlowe

    dlowe New Member

    7
    0
    Jan 10, 2003

    Advertisements

    Attached below if my first attempt at creating a TivoWeb module. I have been a long time lurker, but I finally took the dive and got a TurboNet card last week, and have been playing with TivoWeb modules for the past couple of days.

    The module that I have written shows in calendar format all upcoming "to-do" items and programs that are in your "now showing list". You can navigate to previous and coming weeks by click forward and back arrows.

    A couple of comments before you try this out yourself.

    This is my first TivoWeb module and the first time I have ever written code in TCL, so the coding is most likely not as efficient as it should be. I have also designed and tested to work on my Series 1 stand alone running 3.x. I have no idea if this code will work on any other versions, or platforms of TiVo. So you mileage will vary. Also, I am in the Eastern Time zone, and I don't know if other time zones will cause any display issues.

    Of course use at your own risk, there is no warranty implied or otherwise.

    Finally what do you think? Do you see this as a useful module? To me it is, because I like to know what is going to be recorded over the next couple of weeks, and what shows are on when.

    Please also provide some constructive criticism, how can I make the code more efficient, better platform support. Also any features that you would like to see?

    The attached zip file contains the schedule.itcl code and a schedule.css style sheet.

    For best look and feel, use my .css, and run IE. The site should work in all other browsers, but it will look best in IE.

    One finial note, the schedule starts daily at 12:00pm. This is my preference. I TiVo alot of shows in the eastern and pacific time zones. So to me a show like West Wing is a Wednesday show, even though it may be taped at 12:00 am eastern on Thursday morning.

    Feel free to play with the startTime and endTime variables to get the schedule to show the way that you want.

    Thanks,
    David
     
  2. dlowe

    dlowe New Member

    7
    0
    Jan 10, 2003
    don't know why but the attachment did not come through on the orginal post.

    Please note that the attached is NOT the lastest release. The latest release schedule-0.0.3.zip can be found in the 01-17-2003 posting
     

    Attached Files:

  3. level42

    level42 Slacker

    47
    0
    Apr 16, 2002
    Renton, WA
    hey, this is great! :) i have already cancelled some recordings from this and next week that i really didn't want.. i really like having the schdule represented this way, good work! let me know if you are interested in any feedback...

    thanks again,
    bill
     
  4. dperovic

    dperovic Where's my Series 3?

    24
    0
    Dec 20, 2001
    Cherry Hill, NJ
    Works like a charm for me. I'm running a SA with 3.1. Even with the TiVo Community theme it will be extremely useful. Thanks!
     
  5. SteveTheITGuy

    SteveTheITGuy New Member

    71
    0
    Oct 27, 2002

    Advertisements

    dlowe,

    Great module.. I love it! I think it is so much easier to look at the data in this format. Keep up the good work.
     
  6. zvonar

    zvonar New Member

    150
    0
    Jun 30, 2002
    I agree - great module and an enhancement to Tivoweb.

    One comment - for me the daily columns started at 12PM and run to 11PM, then 12AM the next day starts. For example, Sunday morning recordings are at the bottom of the Saturday column. Is this WAD?
     
  7. Milhouse

    Milhouse Member

    981
    0
    Sep 15, 2001
    South...
    On a UK TiVo:

    INTERNAL SERVER ERROR
    --cut here--
    action_schedule '/' ''
    invalid attribute: RecordingBehavior
    while executing
    "dbobj $rec get RecordingBehavior"
    ("uplevel" body line 6)
    invoked from within
    "uplevel $body"
    invoked from within
    "ForeachMfsFileTrans fsid name type $path $prefix 15 {

    set rec [db $db openid $fsid]
    set manual 0
    set suggestion 0
    ..."
    (procedure "::action_schedule" line 84)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--

    :(
     
  8. radish

    radish Honourable Member

    414
    0
    Dec 21, 2001
    NJ, USA
    Milhouse - you beat me to it! Exact same problem here, UK v2.5.5.

    Sounded so cool too :(
     
  9. trubin

    trubin New Member

    45
    0
    Aug 22, 2002
    Lincoln...
    very cool, but I don't like the way the times are organized, starting at 12pm, instead of 12am

    but other than that, execelent...
     
  10. SteveTheITGuy

    SteveTheITGuy New Member

    71
    0
    Oct 27, 2002
    Until dlowe gets it fixed for the UK guys, here is a quick screen pic with the Blue theme.

    trubin, you should be able to edit the scripts quite easily to change the start time.
     

    Attached Files:

  11. Milhouse

    Milhouse Member

    981
    0
    Sep 15, 2001
    South...
    Thanks Steve - I want it even more now! :)
     
  12. zvonar

    zvonar New Member

    150
    0
    Jun 30, 2002
    Line 193, 194, 195:
    Code:
       set startColumn [expr      61200 + $tzoffset]
       set startTime              61200
       set endTime               145800
    
    Change to:
    Code:
       set startColumn [expr      18000 + $tzoffset]
       set startTime              18000
       set endTime               102600
    
     
  13. stickboy

    stickboy Member

    49
    0
    Dec 24, 2002
    Great module! My only suggestion is to figure out something better to ditch the separate stylesheet, or make the stylesheet compatible with the existing themes. (i.e., don't mess with the colors or font faces)
     
  14. dlowe

    dlowe New Member

    7
    0
    Jan 10, 2003
    Thanks everyone for you postive feedback. I have posted an other point release for the code that will hopefully solve the problem that Milhouse & Radish posted. Plesae let me know since, I don't have a UK machine to test on.

    In regards to Zvonar's comment, you have done exactly what I expected users that did not want the time formated the way that I liked it. To make it easier for others down the road I added the following at the begining of the code module:


    # Start schedule day at 12:00PM

    set startColumn [expr 61200 + $tzoffset]
    set startTime 61200
    set endTime 145800


    # Start schedule day at 12:00AM

    #set startColumn [expr 18000 + $tzoffset]
    #set startTime 18000
    #set endTime 102600


    Just add/remove the comments for what ever one you want. I have keep the default the same as the orginal version.


    In regards to Stickboy's comment. You don't need to use my stylesheet as other have reported my module works fine with the other standard stylesheets. The schedule.css is just my preference, plus is works with all other modules. The module code does not use any fixed, font size, colour or face. So any style sheet should work.

    Once again thanks everyone for your encoragement.

    david
     
  15. dlowe

    dlowe New Member

    7
    0
    Jan 10, 2003
    Forgot the attachment.

    Please note that the attached is NOT the lastest release. The latest release schedule-0.0.3.zip can be found in the 01-17-2003 posting
     

    Attached Files:

  16. Milhouse

    Milhouse Member

    981
    0
    Sep 15, 2001
    South...
    dlowe - the new version works great with a UK v2.5.5 TiVo! :) Looks fine with Daynight2.css.

    One suggestion - would it be possible to view the Schedule without descriptions? Perhaps the addition of a checkbox to toggle the inclusion of descriptions - my default preference would be without descriptions, but would probably best if the default could be configured by editing the script.

    Great addition to the selection of modules - thanks for your efforts. :)
     
  17. Milhouse

    Milhouse Member

    981
    0
    Sep 15, 2001
    South...
    dlowe - now that I've had a bit longer to play with it I've noticed it's not showing any programmes for the whole of week #2 (or week #1, etc.). I initially thought it was because it didn't have any history and that there was nothing scheduled for Sunday 12th Jan but in fact there are three programmes in my ToDo list for Sunday (and they're not suggestions, all of them starting and ending on the Sunday so not spanning midnight). Also there are plenty of programmes in Now Showing for week #2 (and well into 2002) which I understand it uses to "back populate" the calendar.

    The following week (week #3) looks fine with programmes showing for each of the days.
     
  18. stickboy

    stickboy Member

    49
    0
    Dec 24, 2002
    I know, but it looks significantly better with your style sheet, which visibly distinguishes the show name from the episode description.

    I'm just saying that it would be nice if it were easier to merge your style sheet with the existing themes.
     
  19. TIVO_YORK99

    TIVO_YORK99 Member

    316
    0
    Feb 14, 2001
    York
    Just wanted to say thanks a lot for the module to dlowe.

    Works great on my UK Tivo.

    Pete
     
  20. trubin

    trubin New Member

    45
    0
    Aug 22, 2002
    Lincoln...
    I was working with the module, and think I may have ran across an issue. The attached image shows that Jerry Springer is in conflict of the new recording, but it doesn't show in the schedule module.

    I also noticed that some programs at the end of the week show up on the wrong day, but wasn't able to reproduce that one.
     

    Attached Files:

Share This Page

spam firewall

Advertisements