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

DailyMail: a daily e-mailed status report from your TiVo

Discussion in 'TiVo Series 1 - UK' started by sanderton, Oct 28, 2003.

  1. Feb 18, 2004 #501 of 2705
    tivo-onion

    tivo-onion Pickled All Day Long

    473
    0
    Jan 9, 2004
    Guildford, UK
    No problem - will start doing that with every zip file I release - good point,

    cheers

    Chris
     
  2. Feb 19, 2004 #502 of 2705
    gardavis

    gardavis New Member

    140
    0
    Nov 24, 2001
    Deerfield...
    I attempted an upgrade from version 7 to 27 and when I run the command manually, it does not get very far. After about a second, this is output to the screen:

    /var/hack => ./dailymail_jazz.tcl
    ": no such file or directory


    I read back a few pages to get the latest zip file with all the files and images and then replaced with the recently posted version 27. I think I got the files in the correct directories - the itcl files went into tivoweb-tcl/modules and the dailymail_jazz.tcl and the cfg file into /var/hack. Images are on my web server.

    I updated the new cfg from the parameters from my old one.

    Any ideas on how to determine what "blank" filename is being used?

    Does the .tcl language have a line-by-line trace mode like the set -x in sh?

    Thanks,
    Gary
     
  3. Feb 19, 2004 #503 of 2705
    gardavis

    gardavis New Member

    140
    0
    Nov 24, 2001
    Deerfield...
    Solved by searching this thread - ftp using ws_ftp auto mode should have used binary mode. For some reason, my IE ftp stopped working so I used ws_ftp instead.

    There have been quite a few updates since my last install and I am impressed.

    Thanks!
    Gary
     
  4. Feb 21, 2004 #504 of 2705
    managerxxx

    managerxxx New Member

    60
    0
    Oct 13, 2003
    TivoOnion

    Thanks for dailymail_jazz - it just gets better and better. One question I do have is regarding logging. From V2.5 onwards I'm having erratic results with my cron job. According to the cron log the job is being run at the required time - however the only jazz logs that I see are those that appear to result from manually running from the web gui. If I run the jazz file manually I don't seem to have any problems.

    Is there anything else that I can do to debug the issues that I'm seeing? I assume that I should be able to pipe the jazz 'transactions' fired off from cron to a log file??

    Thanks
     
  5. Feb 21, 2004 #505 of 2705
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    I may have posted this before, but in case I didn't, this is the cronjob line that works every day for me:

    # Fifteen after eight a.m., Maine time, every weekday, push dailymail
    15 13 * * 1-5 /tvbin/tivosh /var/hack/dailymail/dailymail_jazz.tcl > /var/hack/log/dailymail_jazz 2>&1

    You'll note that I've put dailymail in its own directory, which requires adjustments to almost all the files to get the path correct.

    Note to onion: A nice improvement would be to specify the path as being that where the executable was found. That can be done in html and dos, but I don't know about TCL.
     
  6. Feb 23, 2004 #506 of 2705
    ddub

    ddub New Member

    50
    0
    May 6, 2002
    West Yorkshire
    Is it possible to have this module post to 2 email addresses automatically?

    Would be nice to have one sent to home account, and one sent to work email address.

    Darren
     
  7. Feb 23, 2004 #507 of 2705
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Tivo-onion says,
    "5. Added capability to pass in an alternate email recipient on the commandline and through tivoweb with a new updated version of the senddailymail.itcl module, also provided in the attached zip file.

    on the command line two arguments are now allowed, the override "hours ahead" value and the override "recipient email", for example.....

    dailymail_jazz.tcl 72 jim@beans.com

    ......will send a jazz dailymail to "jim@beans.com" looking ahead for the next 72 hours."

    So one way to address your request would be to put in a second cronjob with the override e-mail address.
     
  8. Feb 23, 2004 #508 of 2705
    ddub

    ddub New Member

    50
    0
    May 6, 2002
    West Yorkshire
    Thanks, Ill give it a go...

    Darren
     
  9. Feb 24, 2004 #509 of 2705
    tivo-onion

    tivo-onion Pickled All Day Long

    473
    0
    Jan 9, 2004
    Guildford, UK
    Next version (v0.30) available with the following updated features:

    1. The current module version number and release date is now added to the generated email.

    2. The ability to send an email to up to 3 recipients has been added.

    3. A dynamic debugging capability has been added to the module.

    4. The link from the noreddot (lightulb) “stopped” graphic to the noreddotcontrol.itcl tivoweb module has been removed and the noreddotcontrol.itcl tivoweb module has been removed.

    5. The capability to login to your mail server using base 64 encoded username and password has been provided.


    All details in the included datasheet.

    Module is available here,

    enjoy and let me know if there are any problems,

    cheers

    Chris
     
  10. Feb 24, 2004 #510 of 2705
    Prof. Yaffle

    Prof. Yaffle Member

    255
    0
    Aug 2, 2002
    Nottingham
    Hmmm... Might be me Chris but I think something's missing from that file - the new version of dailymail_jazz.tcl.
     
  11. Feb 24, 2004 #511 of 2705
    tivo-onion

    tivo-onion Pickled All Day Long

    473
    0
    Jan 9, 2004
    Guildford, UK
    Cheers Prof .... schoolboy error! It is there now!

    cheers

    Chris
     
  12. Feb 24, 2004 #512 of 2705
    Prof. Yaffle

    Prof. Yaffle Member

    255
    0
    Aug 2, 2002
    Nottingham
    Cheers Chris. Works a treat. Cracking work yet again!
     
  13. Feb 24, 2004 #513 of 2705
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Looking good here too - great stuff.
     
  14. Feb 25, 2004 #514 of 2705
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    I really like your HTML install/what's new page. Very nice touch. This remains one of my favorite TiVo features -- my thanks to you, Sanderton and all who contributed to the effort. Hey, that includes me!
     
  15. Feb 26, 2004 #515 of 2705
    del4

    del4 New Member

    20
    0
    Feb 23, 2004
    The Desert
    Thanks to all who have contributed to an excellent hack!

    Just a quick suggestion to accomodate any 'colonials' who use this hack. (Just a minor thing really, but I think there's little else left to improve.) Could we use the uktivo value to decide whether or not to use the existing UK conventions for dates and spellings vs. their US counterparts?

    For example, in writing out the date of the email:

    if {$uktivo == true} {
    puts $chan "Date: [clock format [clock seconds] -format {%a, %d %b %Y %H:%M:%S (%Z)} -gmt true]"
    } else {
    puts $chan "Date: [clock format [expr [clock seconds] + $tzoffset] -format {%A, %B %d, %Y %I:%M:%S%p}]"
    }

    :) And to "correct" some misspellings in the generated email:

    if {$uktivo == true} {
    set sectionWithData "The following programmes are scheduled to record in the next $dmailHoursahead hours: "
    } else {
    set sectionWithData "The following programs are scheduled to record in the next $dmailHoursahead hours: "
    }

    Again, it's a minor thing, but is simple enough to add into the next version. What do you think?
     
  16. Feb 26, 2004 #516 of 2705
    ccwf

    ccwf 国際化 Member

    8,634
    0
    Dec 29, 2001
    Malibu
    Not for the Date: header. That header must be in the format   Date: Sat, 26 May 2001 11:13:00 -0500 (EST)
    where the day of the week, seconds, and the parenthetical timezone name are optional. See RFC2822 for the details. Of course, some mail readers have the capability to show you the date in a localised format (which you are free to do), but it must be sent in that format.
     
  17. Feb 26, 2004 #517 of 2705
    ddub

    ddub New Member

    50
    0
    May 6, 2002
    West Yorkshire
    New 0.30 version working well, however get this error if I set debug level to 0 :

    ------welcome to the jazzed dailymail program - v0.30 (24/02/2004) - starting
    ------the debug level is set at >>0<<

    invalid command name "}"
    while executing
    "}"
    invoked from within
    "if {$debuglvl>0} { puts "debug-$numargs argument(s) found"} }"
    (file "./dailymail_jazz.tcl" line 211)
    bash-2.02# ./dailymail_jazz.tcl


    Darren
     
  18. Feb 26, 2004 #518 of 2705
    del4

    del4 New Member

    20
    0
    Feb 23, 2004
    The Desert
    Interesting, because I modified the Date: header to send what I gave in my earlier post and it works fine...

    I'm not so concerned about the Date in the mail header, but rather the dates shown in the generated email, "Here is the TiVo status as of Wednesday, February 25, 2004 09:08AM:"
     
  19. Feb 26, 2004 #519 of 2705
    ccwf

    ccwf 国際化 Member

    8,634
    0
    Dec 29, 2001
    Malibu
    The legacy of Jon Postel—lots of formats are often accepted other than the one that is required to be sent.

    As for the body, yes, you are free to do what you like there, of course.
     
  20. Feb 26, 2004 #520 of 2705
    tivo-onion

    tivo-onion Pickled All Day Long

    473
    0
    Jan 9, 2004
    Guildford, UK
    Bugger, there was one stray "}" in there ... I was surprised it even parsed / ran with it in there at all! I have updated the v0.30 file with the updated dailymail_jazz.tcl. You can get it from the zip file in the original email or get the replacement here. Please note I have not updated the release number for this minor bug fix!

    This was only a problem when you set the debugging level to zero for some reason.

    apologies and good spot,

    cheers

    Chris
     

    Attached Files:

Share This Page