PDA

View Full Version : Odd DailyMail behaviour after clock change?


PhilG
03-26-2007, 01:51 AM
I am away from my Tivo at the moment, but something odd appears to be happening

I am set up for Dailymail to send me a mail at "6.30" every morning

Since the weekend, the mail now starts like THIS:

--------

TiVo Status: Sun, 25 Mar 07:30

The TiVo has not rebooted within the last 24 hours.


Last daily call was performed without error.


No SMART errors detected. Usage is at 54%. TiVo has 119 hours 48 mins of basic quality time remaining.




Soft padding is active.




Status
Here is the status of your TiVo as of Sun, 25 Mar 06:30:


--------

At the START it says "Sun, 25 Mar 07:30"

Later on it says "as of Sun, 25 Mar 06:30:"

What gives??

(AND, from what I can tell, the mail is being sent at 7.30am NOT 6.30am.......)

PS The Tivoweb info screen currently says "Mon 26th Mar 05:54" and, so far as I know, it's actually 06.54 not 05.54 (or is Tivo internally ALWAYS on GMT??)

mjk
03-26-2007, 04:51 AM
I always have to stop and restart tivoweb when the clocks change in order for it to showevents at the right time.

Ian_m
03-26-2007, 05:33 AM
I took the rather more exciting approach to re-starting TiVoWeb after the clock change, by turning on my fan heater in the garage workshop, which "detonated" (would be the correct description) thus tripping power to the whole house.

Anyway TiVo still works and I have a cold garage....

Pete77
03-26-2007, 07:02 AM
I am away from my Tivo at the moment, but something odd appears to be happening

At the START it says "Sun, 25 Mar 07:30"

Later on it says "as of Sun, 25 Mar 06:30:"

What gives??

(AND, from what I can tell, the mail is being sent at 7.30am NOT 6.30am.......)

PS The Tivoweb info screen currently says "Mon 26th Mar 05:54" and, so far as I know, it's actually 06.54 not 05.54 (or is Tivo internally ALWAYS on GMT??)

Cron sends its emails with reference to GMT time all year round. 6.30am GMT is now 7.30am BST after the clocks have gone forward. From Cron's point of view it is still sending the email at the same time (6.30am GMT) but you now call it a time an hour ahead. The Tivo keeps its native time in GMT and then just adjusts everything that is presented to you one hour forward under BST.

You can set up several different very complicated date related cron jobs in Crontab with different transmission times limited by specific date ranges and month but the best you could do would be to set these up accurately for the next 5 years, if you could find a list of all the relevant changeover dates that far ahead somewhere.

I think its a lot easier just to simply edit crontab with Joe to one hour earlier when the clocks go forward if you still want to receive the email at 6.30am BST. Personally I chose 6.30am GMT on the basis that this would bt 7.30am BST and that I was equally happy to receive the email at either time, as both are usually before my first use of the computer for the day.

ColinYounger
03-26-2007, 09:46 AM
Cron doesn't send emails - it sets off other processes at predetermined time intervals.

DailyMail puts items in it's log file in the 'base' time zone - i.e. GMT, and it says so in about line 3 of the log.

The mail itself is also been sent in GMT (i.e. in your inbox it appears it was sent an hour earlier at the moment).

Finally, there looks like there is a bug - the HEADER ("TiVo Status: ddd, dd mmm hh:mm") is in BST, and the STATUS line is in GMT.

ColinYounger
03-26-2007, 09:48 AM
For those who are brave:

Search dailymail_jazz.tcl for 'here is the status'. You'll see this code:if {$::yankspeak} {
writehtml "Here is the status of your TiVo as of <i>[clock format [expr [clock seconds] + $::tzoffset] -format {%A, %B %d %I:%M:%S%p}]</i>: "
} else {
writehtml "Here is the status of your TiVo as of <i>[clock format [clock seconds] -format {%a, %d %b %H:%M} -gmt true]</i>: "
}
Change the fourth line to this:writehtml "Here is the status of your TiVo as of <i>[clock format [expr [clock seconds] + $::tzoffset] -format {%a, %d %b %H:%M} -gmt true]</i>: "
i.e. change '[clock seconds]' to '[expr [clock seconds] + $::tzoffset]'.

Trinitron
03-27-2007, 06:59 PM
I'm no expert at tcl but shouldn't there be an 'expr' in there? i.e.
[expr [clock seconds] + $::tzoffset]

Pete77
03-27-2007, 07:03 PM
I'm no expert at tcl but shouldn't there be an 'expr' in there? i.e.
[expr [clock seconds] + $::tzoffset]

You may very well say that but I could not possibly comment. ;) :D

Especially not as I'm still waiting for my Jeff Keegan Tivo book on TCL to turn up from the USA? :(

ColinYounger
03-28-2007, 03:02 AM
Tinitron - yup, good spot. That's why my daily mail had stopped working then. :o

verses
03-28-2007, 04:39 AM
I always have to stop and restart tivoweb when the clocks change in order for it to showevents at the right time.

I've just been using HiGuide and noticed, following the BST change, that everything was an hour out. I decided to restart TivoWebPlus, however this crashed the TiVo and caused it to reboot. Thinking about it I think it's done it everytime I've tried restarting TiVoWeb.

I restart TiVoWeb by listing the processes and killing the one associated with TiVoWeb. Is there a different, more graceful way to stop and restart TiVoWeb that doesn't cause it to reboot the TiVo?

By the way, once the TiVo had rebooted, HiGuide showed the correct times.

Cheers,

Ian

verses
03-28-2007, 04:45 AM
Having not engaged brain before posting I've just realised that the GUI has a Restart menu offering "Quick Reload", "Full Reload" and "Quit" options. Presumably I should be using these, D'oh!

Cheers,

Ian

Trinitron
03-28-2007, 02:29 PM
That's right! If you kill any process that's accessing MFS then TiVo will object and reboot to sort itself out.