TiVoWeb Module : Manual Record

Discussion in 'TiVo Underground' started by cwingert, Jun 12, 2003.

  1. slidervf101

    slidervf101 New Member

    6
    0
    Dec 17, 2003

    Advertisements

    Cwingert - I'm eager to get your manualrecord module working on my T-60 w/ Tivoweb Plus 1.2.1 but every time I load it I get this:

    --cut here--
    action_manrec '/' ''
    expected integer but got "43.1"
    while executing
    "lsort -integer [array names channeltablenum]"
    (procedure "::action_manrec" line 17)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--

    You may have seen that I have similar trouble with your channelgrid module in another thread. Perhaps a common problem? Please let me know if you have any suggestions!
     
  2. john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand
    I am guessing you are running a very old version. Any of the more recent versions will resolve your issue (consider using the latest version in this post)
     
  3. slidervf101

    slidervf101 New Member

    6
    0
    Dec 17, 2003
    Yup - That was it. Nice script. Thanks!
     
  4. dbeusee

    dbeusee New Member

    4
    0
    Aug 11, 2005
    When I tried 0.2.0, I noticed some issues not present on the older "03/25/2003 - v0.0.4 [Alpha]" version I seem to have.

    If I choose to use Season Pass, ui/seasonpass tivowebplus screen breaks with an error while processing the entry created with 0.2.0 manrec (somthing to do with invalid /shedule format). I am not interested in reproducing to record the exact error because it was a hassle to delete. Also, it didn't create the todo or recording entries. Shouldn't it do that?

    Secondly, if I choose not to use season pass, it doesn't create a season pass entry (along with creating the todo & recording entries) as the older version does (this might be intentional, but why not create it?).

    All versions have timezone issues anyway, which I recently fixed in the 0.0.4 version I'm using (I'm attaching my fixed version here). Someone might want to merge the tz fixes into the latest version. Included in the zip file is the original manrec.itcl my changes are based on. Probably you only want the changes related to the tz bug, which I found trying to create manual recordings during this coming daylight savings time change (people in such timezones will notice their recordnigs staring an hour earlier next week).

    Nice script! I hope my changes help others out there suffering from these tz problems...

    -Don
     

    Attached Files:

  5. Nov 1, 2005 #205 of 287
    john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand

    Advertisements

    I have had a quick look at the issue you are trying to describe, but can seem to duplicate it. Unfortunately without the complete text of the error message there is little that can be done to resolve it. Something that also needs to be pointed out is that various releases of TW/TWP sometimes gets confused and needs to be restarted.

    The entry in the ToDo list should appear after a short period of time - when the TiVo next populates the internal structure.

    Correct... if you choose not to create a season pass then the software does not create a season pass entry. The reason for this was that some users without full subscriptions were unable to setup a manual recording two weeks into the future. The limit is only enforced if the recording is associated with a season pass, so the solution was to make this optional. It also has the added benefit of not cluttering up the season passes if you schedule many adhoc manual recordings.

    Timezone issues should have been resolved a while ago for all users. They are relatively easy to fix, if some details are provided. Looking at your changes it looks like you may be handling the boundary conditions (I need to have a look at the get_tzoffset code to see if it is performing the smarts) and I will look at rolling those changes into the latest code base (I run GMT/UTC so the changes will need to be tested by somebody).
    Update: The get_tzoffset() function you are using is an internal function which has changed between versions, so your changes are not compatible with TivoWeb users (you are assuming the TivoWebPlus version of get_tzoffset). An option would be to duplicate the TWP code and call it something different - that way it will still work for TW users - I have opted (in the attached v0.2.1beta) for some code that will use the TWP function if it is available, otherwise it will just use the current value of tzoffset.

    The following is the change log for the module:
    Code:
    12/06/2003  - v0.0.1 [Alpha] - Initial public release
    13/06/2003  - v0.0.2 [Alpha] - Software 2.5 or later wants a Series in the Program
    18/06/2003  - v0.0.2 [Alpha] - Add manual season pass
    14/07/2003  - v0.0.3 [Alpha] - Add manual season pass scheduling of two weeks of recording
    
    20/05/2004  - v0.0.4 [Patch] - Add (commented) code for SVideo input search
    20/05/2004  - v0.0.5 [Patch] - Allow user to select number of weeks to record
    24/05/2004  - v0.0.6 [Patch] - Allow user to select number of days to keep a recording
    26/05/2004  - v0.0.7 [Patch] - Allow user to select maximum number of episodes to keep
    18/06/2004  - v0.0.8 [Patch] - 2.5.5 uses SeasonPass tydir, 3.0 uses SeasonPass/User
    26/06/2004  - v0.0.9 [Patch] - Define defaults for GUI and HTTP interface
    27/08/2004  - v0.1.0 [Patch] - Fixed up an issue with TZ and repeat recordings
    09/09/2004  - v0.1.1 [Patch] - Cosmetic fix to use noon and midnight
    15/09/2004  - v0.1.2 [Patch] - Support for keep "Until I Delete"
    09/10/2004  - v0.1.3 [Patch] - Support for digital (real) channel numbers
    15/10/2004  - v0.1.4 [Patch] - Made the creation of a season pass optional
    13/11/2004  - v0.1.5 [Patch] - "Start Minute" changed from a list to an entry field
    09/03/2005  - v0.1.6 [Patch] - Using a little DHTML to clean up the form
    15/03/2005  - v0.1.7 [Patch] - Supports a configuration file
    05/07/2005  - v0.1.8 [Patch] - Conflict support for dual-tuner units under TWP
    07/07/2005  - v0.1.9 [Patch] - True manual season pass implemented (and a new GUI)
    13/07/2005  - v0.2.0 [Patch] - Allow selection of favourite channels (for mobiles)
    02/11/2005  - v0.2.1 [Patch] - Uses TWP's get_tzoffset function if available
    
    I have two stand-alone systems (a UK-v2.5.5 and US-v3.0) which I test with. It could be that later versions of the TiVo software require some changes to the code. I don't mind making the changes if others are not willing to have a go at it, but I will need to know what errors are being experienced and may need somebody to test the module.
     

    Attached Files:

  6. Nov 7, 2005 #206 of 287
    john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand
    A small change to translate callsigns into station fsid's. This allows some other modules such as confresManual to use this version. Previously they had their own specific version of the code. There is no need to upgrade to this version unless you are using such a module.
     

    Attached Files:

  7. Nov 8, 2005 #207 of 287
    vertigo235

    vertigo235 Well-Known Member TCF Club

    19,214
    1,293
    Oct 27, 2000
    Charlotte
    I set up a manual recording one night to catch the winning lottery #'s and checked hte ToDo list it was there.

    But somehoe it disapeared.

    What gives?
     
  8. Nov 8, 2005 #208 of 287
    john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand
    That is a little interesting. Unless the recording was removed to record a conflict on another channel? Are you able to check your "Deleted History" to see why the recording was cancelled - that may give some indication as to the reason.
     
  9. Nov 8, 2005 #209 of 287
    jasch

    jasch New Member

    310
    0
    Jun 8, 2001
    I had a version with single tuner support, and this new version really works great.

    I have created a system that read the conflics Tivo #1 and manually schedules them to Tivo #2. The problem I have is I end up with duplicates.

    Can manrec be modified so it checks first if the current record parameters already exists? (since I am creating the same recording, same channel, same duration, etc).

    For example, tonight Tivo #2 is recording My Name is Earl on both tuners :-(

    Thanks in advance!
     
  10. Nov 8, 2005 #210 of 287
    Fofer

    Fofer Bo55man69

    93,288
    4,629
    Oct 29, 2000
  11. Nov 8, 2005 #211 of 287
    john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand
    This is a feature ! Since the TiVo only has one bookmark per recording, this will enable both you and your significant other to have different bookmark locations within the "same" show :)

    Seriously though, this will not be hard to implement. It will require a few extra database lookups and I may not get it right the first time as I do not have a dual tuner system to play with, but expect to see something in the next day or so. I am actually toying with the idea of including conflict resolution for a multi-TiVo environment within this module.
     
  12. Nov 8, 2005 #212 of 287
    jasch

    jasch New Member

    310
    0
    Jun 8, 2001
    Yeah, it's a CGI I created on my webserver (using Coldfusion), that automatically polls my Tivos every morning, creates a SQL dabatase with the to-do list of all Tivos in my house (4 in all), re-schedules conflicts on a backup Tivo, and emails me a list of the Scheduled Recordings for that day.
     
  13. Nov 9, 2005 #213 of 287
    john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand
    This version has an additional check to stop duplicate recordings on a dual tuner unit. It also provides hotlinks when there is a conflict to make it a little easier to resolve if required.
     

    Attached Files:

  14. Nov 9, 2005 #214 of 287
    vertigo235

    vertigo235 Well-Known Member TCF Club

    19,214
    1,293
    Oct 27, 2000
    Charlotte

    Unfortunetly it's been a while since it happened, and I havn't used the module since (because I didn't trust it), maybe it's because I didn't click the "Force Record" option?
     
  15. Nov 9, 2005 #215 of 287
    jasch

    jasch New Member

    310
    0
    Jun 8, 2001
    Thank you so much. That was fast. I will give it a test drive later today!
     
  16. jasch

    jasch New Member

    310
    0
    Jun 8, 2001
    It works great!
     
  17. dbeusee

    dbeusee New Member

    4
    0
    Aug 11, 2005
    You realize of course this means TW users will still experience the tz boundary bugs I fixed. I think you should duplicate the TWP code (call it manrec_get_tzoffset) in the case where get_tzoffset doesn't exist. This will solve the problem for TW users and still allow TWP to use it's own internal routine.

    I enhanced the script further (based on 0.2.3) to allow users to specify channum and optionally showdate. Showdate replaces wodatetz and is more friendly, allowing the user to specify a date like 12/31. The default for showdate is 0:0, which is the current date, which works fine for repeats. This allows users to use this script with cron to keep resubmitting continuous repeats of manual recordings.

    -Don
     

    Attached Files:

  18. john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand
    If the user is worried about timezones then they really should update to TWP as it includes improved timezone handling. By including the code in ManRec for TW users would only improve that one module, the others (such as the UI modules) would still suffer during the changeover periods. I am also aware of the limited memory available... and duplicating code is a little bit of a waste.

    This version includes your enhancements (although I have used chnnum, and added tzoffset to the showdate expression) and most parameters can now be used when calling the module as well as in the manrec.cnf file. So, for instance, you may like to add a "set chnnum 1" to your configuration file to default to the second station in the channel list.

    The current list of parameters is as follows:
    Code:
     weeks           Number of weeks to record
     keepdays        Number of days to keep the recording
     keepmost        Number of recordings to keep for this show
     createSP        Do we create a season pass (0/1)
    
     titlestr        Title of the recording
     episodestr      Episode title of the recording
     descriptionstr  Description of the recording
    
     repeat          Repeat options (once,daily,weekdays,0-6)
     recqual         Recording Quality as a percent (0,40,75,100)
     forcerecord     Force the recording (deletes conflicts)
     durationstr     Durection of the recording (in minutes)
    
     favs            Populate the channel list with only the favourite channels
     daysahead       Populate the date list with the specified number of days
    
     showdate        Date of the recording (MM/DD[/YY])
     wodatetz        Starting date of the recording (days since epoch)
     wotimetz        Starting time of the recording (HH)
     womin           Starting minute of the recording (MM)
    
     chnsel          Station FSID
     chnnum          Station number
     callsign        Station Callsign
    
    Update: Please note that my TiVo's run with no timezone (GMT) so any comments concerning the handling of timezones or bug fixes are more than welcome. I try to run through the logic in my head, but testing such this functionality is not so easy for me.
     

    Attached Files:

  19. my02awe

    my02awe New Member

    4
    0
    Jun 19, 2005

    Hi
    This is probably the module I use the most ....
    but as a TIVOgnoramus I've only just updated to 024. and decided to try a config file as well. The paramiter used was "set faves 0" which I changed to "1" .....
    #
    # Default setting for the creation of Season Passes
    #
    set createSP 0
    #
    # If you wish to be able to select a date more than
    # two weeks into the future then change this setting
    #
    set daysahead 42
    #
    # The following is the default recording quality
    #
    set recqual 40
    #
    # Set the following to 1 to only show your favourite
    # channels in the drop down channel list.
    #
    set favs 0
    set showdate MM/DD[/YY]
    set weeks 8

    all went well - then I realised that recent channel additions have not been "officially" included and despite appearing as "Sat" in favourites - they don't appear in the channel list

    Now I can't display the full list to save my life.
    I've tried every permutation set favs 0, favs 0 # set favs 0 and even deleting the .cfg file - nothing seems to work :confused:

    help!

    Also can't set more than 2 weeks recordings with "set weeks 8"
     
  20. john1980

    john1980 New Member

    179
    0
    Jun 17, 2004
    New Zealand
    This will mean that only the favourite channels will be displayed in the drop-down list.

    Okay... the above is likely to cause an issue as you need to remove the "set showdate MM/DD[/YY]" from the configuration file.

    Are you using the ChannelPref module to set your favourites, or your TiVo GUI? The module should work with both. If you are still having trouble then the version of TiVo software you are running would be handy, as well as if you are using TivoWebPlus or just TivoWeb.

    Removing the .cfg file (or using the default) and reloading TivoWeb should restart the module using the defaults.

    I think you will find that would have been due to the error (the show date MM/DD[/YY]) in the configuration file.
     

Share This Page

spam firewall

Advertisements