Suggs: hack to create suggestions

Discussion in 'TiVo Series 1 - UK' started by mikerr, Sep 11, 2008.

  1. Nov 7, 2008 #201 of 259
    dbradbu3

    dbradbu3 Novice Tivo User

    16
    0
    Dec 29, 2006

    Advertisements

    Thanks Mikerr! You have really done a stunner here.
    I have been running V1.02 since Thursday night and it hasn't died yet, I have a list full of suggestions and no noticeable freezes just yet. :D

    We have just taken delivery of number 2 son (6 weeks old) and it's a god send to have a few suggs down there on the list when you just want something brainless to watch while you do the 2 / 3 / 4 am feeds :)

    Thanks again, and keep up the fab work :up:
     
  2. Nov 8, 2008 #202 of 259
    kitschcamp

    kitschcamp Tweaked and poked

    1,846
    0
    May 18, 2001
    Adelaide,...
    Have to say it's the same here, prior versions were fine (esp 0.94), but 1.02 does cause regular freezes.
     
  3. simbeav

    simbeav New Member

    57
    0
    Mar 14, 2005
    I've reverted to 0.94 as well.
    No noticable stuttering or freezing with 1.02, but I don't like the over zealous rejecting any title already in Now Playing and there definitely is a problem with blocklists. 1.02 was always wanting to record Time Team and The good Life despite them both being in my Blocklist.txt. 0.94 is rejecting them correctly.
    Still a great module though :up:
     
  4. Z1000

    Z1000 New Member

    2
    0
    Oct 13, 2008
    I've reverted to 0.94 as well.

    Version 1.02 was not reliable for me. 0.94 is running well at the moment.

    Great module even so, thank you

    Graham
     
  5. nickf

    nickf New Member

    113
    0
    Oct 12, 2001
    Suffolk, UK

    Advertisements

    Well just to buck the trend - 1.02 is the most stable version I've had. It's been running for 5 days, and freezes don't seem as bad.
     
  6. Rob Randall

    Rob Randall New Member

    103
    0
    Nov 28, 2002
    Coventry, UK
    I'm using 1.02, but I added some delays into the code as I was seeing a lot of picture glitches. Interestingly I was also seeing glitches in 0.94 until I added extra delays. The only other mod I made was to stop it trying to record programmes that were on earlier today.

    Otherwise 1.02 has been the best version for me so far :)

    I can't comment on the blocklist features as I don't use them.
     
  7. -MC-

    -MC- New Member

    113
    0
    Dec 9, 2005
    London
    Rob,

    Could you tell me what mods you've made to put in the delays as I'm getting a lockup and blocky picture briefly every half hour.

    I've been using your startup command:

    /var/hack/suggs.tcl -threshold 1 -console > /var/log/suggs.log 2>&1 &

    but for some reason found that it stopped irblast from starting :confused:


    Thanks :up:
     
  8. Rob Randall

    Rob Randall New Member

    103
    0
    Nov 28, 2002
    Coventry, UK
    Looks like I made a few more mods than I remember :) As well as the extra delays I made a couple of scheduler changes. I also made it run every 20 minutes to compensate for the extra delays.

    Anyway I've attached my modded version. I'm not sure all the delays are necessary, but it does the job for me (very slight sound blip when it loads the schedule cache from disk, but not that noticeable).

    My startup command is now

    /var/hack/suggs.tcl -threshold 1 -daysback 5 -console > /var/log/suggs.log 2>&1 &

    Not sure how this would affect irblast :confused: Maybe if we saw your rc.sysinit.author it would give some clues.
     

    Attached Files:

  9. -MC-

    -MC- New Member

    113
    0
    Dec 9, 2005
    London


    Thanks for that Rob, I'll give it a go :up:


    my rc.sysinit.author file :

    #!/bin/bash
    /var/hack/tivoweb-tcl/tivoweb
    /var/hack/tytools/tserver -s /var/hack/tytools/NowShowing.tcl &
    /var/hack/ir/irblast.tcl - forcestart >> /dev/null &
    /var/hack/endpad.tcl -auto >> /dev/null &
    /var/hack/suggs.tcl -threshold 1 -console > /var/log/suggs.log 2>&1 &



    .
     
  10. jonphil

    jonphil New Member

    524
    0
    Aug 7, 2002
    Derbyshire, UK
    sorry if it's already been covered, but how do I stop the running copy so I can downgrade to 0.94 version as 1.02 is stuttering so bad I'm missing 30secs of audio in recordings and it's getting annoying. the other version didn't seem to do it.
     
  11. nickf

    nickf New Member

    113
    0
    Oct 12, 2001
    Suffolk, UK
    Just start the new one, that will make the old one stop.

    Or remove /var/log/suggspid.xxxx
     
  12. verses

    verses TiVoTiVoTiVoTiVoTiVo

    331
    0
    Nov 6, 2002
    I see you have a space in your irblast startup line between the '-' and the 'forcestart'. I don't use IRBlast, but I looking at the support page for it it doesn't look like there should be one.
    Also I personally would make sure that every line ended ">>/dev/null 2>&1 &".

    So I would change the file to be as follows;
    Code:
    #!/bin/bash
    /var/hack/tivoweb-tcl/tivoweb >>/dev/null 2>&1 &
    /var/hack/tytools/tserver -s /var/hack/tytools/NowShowing.tcl >>/dev/null 2>&1 &
    /var/hack/ir/irblast.tcl -forcestart >>/dev/null 2>&1 &
    /var/hack/endpad.tcl -auto >>/dev/null 2>&1 &
    /var/hack/suggs.tcl -threshold 1 -console > /var/log/suggs.log >>/dev/null 2>&1 &
    Cheers,

    Ian

    PS: I haven't included any of the change to the Suggs startup line which were suggested above. I thought I'd leave that up to you as I don't use Suggs yet :)

    PPS: I'm pretty sure that the #!/bin/bash is not needed at the start of the file, but I left it in as I don't think it's doing any harm.
     
  13. mikerr

    mikerr TiVoCentral.co.uk

    2,599
    0
    Jun 2, 2005
    Lancashire, UK
    Well version 1.03 is uploaded, and I think all the stuttering problems should be fixed now the following line has been added:
    Code:
    setpri fifo 1
    ..and delays could probably be removed now too.
     
  14. -MC-

    -MC- New Member

    113
    0
    Dec 9, 2005
    London

    Thank Ian,

    I'll give that a go :up:

    Never noticed the "- " gap :rolleyes:
     
  15. Rob Randall

    Rob Randall New Member

    103
    0
    Nov 28, 2002
    Coventry, UK
    Correct. The added delays no longer seem to be required :)

    Does the setpri command used in suggs only affect it's own process priority or all subsequently started processes? I have setpri ts 0 $$ at the start of my rc.sysinit.author file.
     
  16. mesaka

    mesaka travelling member

    133
    0
    Sep 27, 2002
    A question - would I still get some stuttering on old programmes that were recorded on versions prior to 1.03?

    I ask as I installled 1.03 yesterday and later watched a show I had recorded with a previous version installed. I got stuttering still (roughly every 20 minutes) albeit not as bad as previously. While I was watching the prerecorded programme another was recording so I suppose the processer was under some strain.
     
  17. kitschcamp

    kitschcamp Tweaked and poked

    1,846
    0
    May 18, 2001
    Adelaide,...
    Hmm. This new version doesn't seem to be quite right. Since it started, it's not recorded a single suggestion. The logs seem to suggest why.

    Code:
    Friday 09:20:47: ... retrying later
    Friday 09:21:47: Waiting for 30 mins
    Friday 09:51:48: Checking for free space
    Friday 09:52:09: Scanning todo list
    Friday 09:52:21: Scanning now playing
    Friday 09:52:21: Reading schedule list from disk (cached)
    Friday 09:52:22: SCHEDULE {Martial Law} (128 / 102) on BRAVOD1 at 14:00
    Friday 09:52:23: Error... can't open object (errDbNotFound)
    
    while executing
    "db $db openidconstruction $showingobjid $subobjid"
    ("uplevel" body line 2)
    invoked from within
    "uplevel $body"
    invoked from within
    "transaction {uplevel $body}"
    (procedure "RetryTransaction" line 6)
    invoked from within
    "RetryTransaction {
    set showing [db $db openidconstruction $showingobjid $subobjid]
    
    if { [catch {set recording [db $db create Recording] }..."
    ("foreach" body line 52)
    invoked from within
    "foreach prog $allprogs {
    set recordThis 1
    set thumbData [lindex $prog 0]
    set genreThumb [lindex $prog 1]
    set title [lindex $prog 2]
    
    se..."
    Friday 09:52:23: ... retrying later
    Friday 09:53:23: Waiting for 30 mins
    This is repeating every 30 minutes.
     
  18. mikerr

    mikerr TiVoCentral.co.uk

    2,599
    0
    Jun 2, 2005
    Lancashire, UK
    Its possibly using an old cache file from a previous version,
    delete the cache files (suggs.channels & suggs.progs)

    Code:
    cd /var/hack
    rm suggs.channels
    rm suggs.progs
    
    They are recreated if they aren't there, or are over a day old.
     
  19. kitschcamp

    kitschcamp Tweaked and poked

    1,846
    0
    May 18, 2001
    Adelaide,...
    Ok, I'll give that a go and see what happens. Thanks!
     
  20. djb2002

    djb2002 Member

    176
    1
    May 1, 2006
    What does this hack not do, that the original suggestions feature do ?

    Thanks
    Daniel
     

Share This Page

spam firewall

Advertisements