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

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

  1. themitch

    themitch New Member

    98
    0
    Dec 9, 2004
    North London

    Advertisements

    Thanks Jayazusa, but is it just me or do your links point to www.*******.com?
     
  2. cashew1970

    cashew1970 New Member

    184
    0
    Oct 21, 2004
    Co. Durham
  3. dgilbert

    dgilbert New Member

    73
    0
    Sep 1, 2001
    Royersford, PA
    I've installed Dailymail into a directory outside of /var. I used /hacks/dailymail. You'll need to modify the dailymail_jazz script with the correct path to dailymail_jazz.tcl. I also modified the tivoweb module managedailymail.itcl as follows:
    Code:
    ## try and load in source from a variety of locations
    if { [catch {
    	source /hacks/dailymail/dailymail.cfg
    	set defaultbasefileloc "/hacks/dailymail"
    }]} {
    Last, you'll need to modify all the relevant paths in the dailymail.cfg file. It's been working fine for me.
     
  4. jayazusa

    jayazusa New Member

    16
    0
    Feb 12, 2005
    Well just when you think you have it down.

    I have receive a few emails with the correct times and some with incorrect times. Is it possible within the code somewhere to insert the correct timezone offset? in the dailymail.cfg maybe?

    I guess dusting off my old coding skills would setting the following in the dailymail.cfg file work?

    Code:
    set tzoffset -7 
    rather than replacing all of the $TZoffsets to the -7? and if I am Arizona I am -7 all year or is the program looking for a positive value there?

    Result of above:
    A Daily email with the date of May 28th still. and all of the times off.

    If anyone has resolved the issue with dailymail and timezones pleae assist me with your solution.


    Thanks,

    Jay
     
  5. MonTheFish

    MonTheFish New Member

    52
    0
    Aug 27, 2003

    Advertisements


    What does the tracker module actually do?
     
  6. Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
  7. phosacid

    phosacid New Member

    11
    0
    Oct 31, 2003
    Behind You
    Jay,
    What I did to resolve this issue is to put "export TZ_GMT_OFFSET=-6" at the beginning of the dailymail_jazz file (minus the quotes). You can change the -6 to -7 as I am on CDT. This will work better for you, beens you do not observe DST and I will probably have to change mine (not sure) when the clocks fall back in the fall. There was another poster on page 60 i beleive that fixed this issue with something like TZ=EST5EDT4 or something like that. Read back a few posts....

    Good Luck,
    Phos
     
  8. jayazusa

    jayazusa New Member

    16
    0
    Feb 12, 2005
    • Even though I am in Arizona and am -7 year around my mails are still showing 1 hour ahead do I enter -8? If I enter a -8 the times the email gets sent matches the stamp on the email, and the cron job times are correct.
    • My understanding is that TZ=MST7MDT7 is to work with Cron
    • In the cron section of the email do you receive times in GMT showing as a negitive? This is the case when I enter TZ=MST-7MDT-7 -- Makes Sense I guess --

    So I guess if I enter a -8 in my tz variable I will get the emails at the time I expect them but I may need to adjust them depending on time of the year.

    If anyone has an Idea why -8 needs to be set rather than -7 please let me know us folks in AZ with no Daylight savings time can make things tough.

    Awsome tool just closing in on the fine tunes.
     
  9. pmk

    pmk New Member

    388
    0
    Jan 1, 2002
    Are there any plans for a live/final release soon?

    TIA
     
  10. tivo-onion

    tivo-onion Pickled All Day Long

    473
    0
    Jan 9, 2004
    Guildford, UK
    Working on a few final tweaks and very minor bug fixes and we will be there. Expect a final release in the next couple of weeks,

    cheers

    Chris
     
  11. jayazusa

    jayazusa New Member

    16
    0
    Feb 12, 2005
    I am receiving the following on my daily mail

    Code:
    To Do
    The following programs are scheduled to record in the next 48 hours:  
    
    Error When Generating To Do List - See Log - can't unset "rec": no such variable 

    Has anyone experenced an issue where time zone is still off by one hour? I am set -7 for Arizona but to get all the times correct I need to set -8.

    Attached is my log file any assistance would be greatly appriciated.

    Thanks,

    Jay

    • DTiVo 6.2 requires a GMT offset of -8 in the rc.sysinit.author to work correctly
    • Cron requires export TZ=MST7MDT7 in the rc.sysinit.author
     
  12. jayazusa

    jayazusa New Member

    16
    0
    Feb 12, 2005
    Has anyone ever thought of a standard email that would run weekly or monthly that would give a status type email.

    Listing all of the Season Passes and the recordings aganst that season pass.

    I thought something like this would be good for people that reimage there TiVo's weekly.

    or if you can point me to a good referance for tivo coding (tcl?)
     
  13. tivo_boj

    tivo_boj Tivo is getting old

    215
    0
    Feb 10, 2001
    Pitsea,...
    After a long time I have come back to try and get dailymail to work. I get this when running it

    any clues
    no value given for parameter "source" to "base64dec" while executing "base64dec" ("uplevel" body line 11) invoked from within "uplevel $body" invoked from within "transaction {uplevel $body}" (procedure "RetryTransaction" line 5) invoked from within "RetryTransaction { if {$::version3} { set lconfig [db $db open /State/LocationConf set setup [db $db open /State/ServiceConfig]
     
  14. PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    First, let me say that this is one of the all-time greatest hacks ever written. I had it running perfectly on my SA S1, but then I moved to a place with no broadband (dial-up only, but that will change soon, I hope) a non-router network, and a shared always-on dial-up Internet connection. So I finally got around to enabling dailymail both on the SA S1 and on my new DirecTiVo.

    After I re-set the gateway appropriately and set the SA to do Internet daily calls, I used the poolsize tips in this thread just in case and that seemed to disable mail generation using the TivoWeb module, but that's OK, because I'd rather run it from cron.

    But I still had problems which were clearly aberrations with my ISP -- after all, it used to work OK. I determined that a greatly stripped-down version would work and then started putting stuff back in until it choked. It was working, but no date was coming through. So here is what I did around line 693 of dailymail_jazz.tcl.

    Code:
    	if {$yankspeak} {
    		puts $chan "Date: [clock format [clock seconds] -format {%a, %d %b %Y %H:%M:%S (%Z)} -gmt true]"
    #		puts $chan "Date: [clock format [expr [clock seconds] + $tzoffset] -format {%A, %B %d, %Y %I:%M:%S%p}]"
    	} else {
    		puts $chan "Date: [clock format [clock seconds] -format {%a, %d %b %Y %H:%M:%S (%Z)} -gmt true]"
    	}
    	flush $chan
    	puts $chan "From: \"$senderName\" <$sender>"
    	flush $chan
    	if {$debuglvl>1} { puts "[clock format [clock seconds] -format {%H:%M:%S} -gmt true]-debug-about to set recipient" }
    	puts $chan "To: $recipient"
    	flush $chan
    	if {$debuglvl>1} { puts "[clock format [clock seconds] -format {%H:%M:%S} -gmt true]-debug-recipient set" }
    
    ##	puts $chan "Message-Id: [clock seconds]@$domain"
    ##	flush $chan
    ##	if {$debuglvl>1} { puts "[clock format [clock seconds] -format {%H:%M:%S} -gmt true]-debug-Message-Id: [clock seconds]@$domain set" }
    But I found that for this to work, $senderName must be given a value in the config. I was unable to get the Rejected Recordings to work on the DTiVo, so I disabled it in the config file:
    Code:
    ## (6.5) The 'Rejected Recordings' section :
    set dmailRecHistory 0
    
    I don't know why this works but, frankly Scarlet, I don't give a damn.
     
  15. dogsbody

    dogsbody Happy Happy Joy Joy

    149
    0
    May 2, 2005
    Location:...
    Hi, Sorry if this has already been discussed but there is rather a lot of history to read through. May I please request an RFE (Request For Enhancement) for DailyMail Jazz.

    I have my mail client set to only show me the images in an HTML e-mail if the images have been sent with the mail. This is because spammers link to remote images as a may to harvest the addresses of people that actually read their e-mail (if the image was called then the e-mail was displayed (add dynamic image names and you can tell exactly which person read it)). Anyway, this also means that DailyMail Jazz doesn't look very pretty :(

    Is there any way that the images used in the DailyMail report could be MIME encoded and sent with the mail? They are not huge images so I don't think they would cause much of a problem. You could even pre Base64 encode them.

    Just an idea, I love DailyMail :cool:

    Dan
     
  16. dgilbert

    dgilbert New Member

    73
    0
    Sep 1, 2001
    Royersford, PA
    I recently hacked my second dtivo to 6.2. The unit has two drives (the original 40gb and a 2nd 120gb). I installed Dailymail and it seems to be working fine with one exception, smartctl seems to fail for the primary drive (hda) but works for the secondary drive (hdb). Here's the log:
    Code:
    20:38:51-SMART DISK CHECK - START
    20:38:51-Checking S.M.A.R.T. status
    20:38:51-SMART command did not successfully run on disk A - check path & setup.
    20:38:51-Disk B is present - run SMART check.
    20:38:52-Drive B SMART check :
    20:38:52-disk passed SMART check.
    20:38:52-SMART DISK CHECK - COMPLETED
    
    The odd thing is, if I run smartctl for hda from bash, it works fine. It's as if this line of code in Dailymail fails
    Code:
    if { [ catch { set smart1msg [ exec $smartCmd --all /dev/hda ] } ] }
    but this line is ok
    Code:
    if { [ catch { set smart2msg [ exec $smartCmd --all /dev/hdb ] } ] }
    Does anyone have any suggestions on how to resolve this? Thanks
     
  17. dgilbert

    dgilbert New Member

    73
    0
    Sep 1, 2001
    Royersford, PA
    As a followup, I wrote a test script with one line of code:
    Code:
    #!/tvbin/tivosh 
    set sOut [exec smartctl --all /dev/hda]
    Here's the error:
    Code:
    child process exited abnormally
        while executing
    "exec smartctl --all /dev/hda"
    Is it possible that the output from smartctl is exceeding some max size for a variable?

    Update:
    I've solved the problem by modifying the smartctl parameters. It seems the "display error log" param (-l error) is causing the problem on hda. Not sure why, but this has nothing to do with Dailymail.
     
  18. pmk

    pmk New Member

    388
    0
    Jan 1, 2002
    I would also find this very useful and think its a great idea. It would mean there is no need for a web server with the images either. I do not use the images because of this.

    Also is there any news on when the current new version is coming out of BETA?

    TIA
     
  19. Jun 2, 2005 #1819 of 2705
    lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    Apologies if this has been answered elsewhere and I've missed it, but this thread is getting a little long.

    I've had dailymail working, but it has now started to fail. And has started to fail depending upon how many hours ahead I set. The number of hours ahead that I need to set to get a sucessful email is reducing. It started at 200, then 170. 150 now fails. I have set the memory expansion option (how do I know this is actually working?). I had edited the .sh file by mistake, so I suppose there is a danger that this is not how it should be.

    Sometimes I get errors about $count not being defined during executing the main to-do loop, sometimes the log output just stops at the start of the main to-do loop.

    Have attached a level 3 debug, with the sensitive bits removed.
     

    Attached Files:

  20. Jun 3, 2005 #1820 of 2705
    lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    Well something in the last daily call has caused the problem to go away. 15 mins after the daily call, a 200 hr email arrived. (Must remember to remove my 10min dailymail test cron :D ). Must have been something in the data I guess.
     

Share This Page

spam firewall

Advertisements