Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Tivo Time Set

  1. #1

    Tivo Time Set

    Hi all,

    Well thanks to you all, I managed to get my new Tivo up and running.Absolutly GREAT!!
    Problem, how and what do I set the time to, as the time on the shedule is wrong.
    I have read, set it to GMT,Auckland or Pacific time.
    Which one is correct?

    Many thanks for all your continued support.

    Cheers,
    Gabi

  2. #2
    From the new wiki site I'm working on:
    Download http://www.tjv.org.nz/tivo/postcodezones and http://www.tjv.org.nz/tivo/Auckland
    FTP to Tivo in binary mode (bin). cd /hack and put the files.
    Quit FTP and telnet to Tivo.
    rw (change filesystem to read/write)
    cp /etc/postcodezones /etc/postcodezones.bak
    cp /hack/postcodezones /etc/postcodezones
    cd /hack/zoneinfo
    mkdir Pacific
    cp /hack/Auckland /hack/zoneinfo/Pacific/
    fixtivotime

    That should find the postcode for Auckland, synchronize time with an internet time server and correct your time. Make sure there isn't any trailing spaces/characters on the Auckland file by typing in the /hack/zoneinfo/Pacific directory:
    cp Auck<tab> Auckland The <tab> key should fill in the rest of the Auckland filename, including any trailing rubbish, and the second Auckland filename makes sure it's the correct name.
    Also, use timezoneadj30.tcl to make sure you're on 7, GMT.
    You should now reboot. (You can just type reboot at the prompt after you've finished copying etc). Before you reboot you may find that your timezone is out by 5 hours (minus). This should fix after a reboot.
    If you have problems with any text files you've transferred, run them through dos2unix on tivo: dos2unix filename


    If you are having problems using postcodes etc you can set the clock with this, and it should stay good until the next Daylight Savings shift, at which point you'll need to set it correctly:br> settime yyyymmddhhmmss
    eg. settime 20041231235900
    settime -rtc

  3. #3

    Thanks

    Thanks very much for the advice.
    Works just great!
    I have a nother question if you dont mind.
    I have a Motorolla Sky decoder.I am trying to modify the IR codes on the Tivo.
    I downloaded the Motorola DTH325-4.tcl file from Tim's site, but not knowing too much about Linux ,am having problems loading it via Pico.

    Do you have an short script on how to change the IR code.
    I also understand that only one line in the existing stb.tcl file has to be alterd to 88887 wich is the IR code for the Motorolla box.

    Many thanks in advance.
    Cheers

  4. #4
    Join Date
    May 2004
    Location
    Wellington, NZ
    Posts
    477

    Daylight Saving Adjustment

    I guess those of you on the emulator have NTP or some other way of correcting the time for Daylight Savings. I have only just found out that it is happening "tonight" and as I run mine standalone (no internet access) I have made an attempt to automate it using cron.

    I have created a script called Daylight_Savings.sh whose code has been included below.
    Code:
    # ===========================
    # Adjust for Daylight Savings
    # ===========================
    # Daylight Time commences at 2.00am Standard Time on the last
    # Sunday in September each year.  It ends at 2.00am Standard
    # Time (3.00am Daylight Time) on the first Sunday in April of
    # the following year.
    #
    # ===============
    # Crontab Entries
    # ===============
    # Correct time for Daylight Saving
    # 0 2 *  9 0 /var/hack/DST/DST_Adjust.sh >> /var/hack/DST/log 2>&1 &
    # 0 3 *  4 0 /var/hack/DST/DST_Adjust.sh >> /var/hack/DST/log 2>&1 &
    
    
    PATH=/bin:/sbin:/tvbin:/devbin:/var/hack/bin:/var/hack/scripts
    
    StartDST() {
      time=`date -d "now +1 hour" "+%Y%m%d%H%M%S"`
      settime $time
    }
    
    StopDST() {
      time=`date -d "now -1 hour" "+%Y%m%d%H%M%S"`
      settime $time
    }
    
    date "+%w %e %b %k" |\
    while read day dom mon hour; do
      # Check if it is the last Sunday in September
      if [ $dom -ge 22 -a $day -eq 0 -a "$mon" = "Sep" -a $hour -eq 2 ]; then
        StartDST
      fi
    
      # Check if it is the first Sunday in April
      if [ $dom -le 7 -a $day -eq 0 -a "$mon" = "Apr" -a $hour -eq 3 ]; then
        StopDST
      fi
    done
    The following is my crontab entry whose first line will trigger the script to run at 2am every Sunday during September... the script will check that it is the last Sunday before performing an action (sorry but this is a limitation of the cron scheduler). The second line will trigger the script to run at 3am every Sunday during April... the script will check that it is the first Sunday before performing an action.
    Code:
    # Correct time for Daylight Saving
    0 2 *  9 0 /var/hack/DST/DST_Adjust.sh >> /var/hack/DST/log 2>&1 &
    0 3 *  4 0 /var/hack/DST/DST_Adjust.sh >> /var/hack/DST/log 2>&1 &
    Note: You may think that the script may loop in April as the time will be adjusted from 3am back to 2am... but the cron scheduler is smart enough to only run the script once (otherwise it would get stuck in a continuous one-hour loop).
    Last edited by thomson; 04-08-2007 at 10:09 AM. Reason: Updated for the DST changes in 2007

  5. #5
    Join Date
    Sep 2004
    Location
    Wellington
    Posts
    29

    Re: fixtivotime

    Please keep in mind, the current version of the example postcode file on http://www.tjv.org.nz/tivo/postcodezones has the Auckland postcode value incorrectly listed as:

    00800 Pacific/Auckland

    which needs to changed to:

    02113 Pacific/Auckland

    to work correctly

    Cheers, Gabe

  6. #6
    Join Date
    Mar 2004
    Location
    Wellington, NZ
    Posts
    573
    Quote Originally Posted by fixxer37
    From the new wiki site I'm working on:
    Download http://www.tjv.org.nz/tivo/postcodezones and http://www.tjv.org.nz/tivo/Auckland
    FTP to Tivo in binary mode (bin). cd /hack and put the files.
    Quit FTP and telnet to Tivo.
    rw (change filesystem to read/write)
    cp /etc/postcodezones /etc/postcodezones.bak
    cp /hack/postcodezones /etc/postcodezones
    cd /hack/zoneinfo
    mkdir Pacific
    cp /hack/Auckland /hack/zoneinfo/Pacific/
    fixtivotime
    You only need to do this if you are not connecting to Ed's emulator (NZ).

    Ie: if you are using loadguide and connecting to the OZ emulator, use the above. Otheriwse ignore.

  7. #7
    Join Date
    Mar 2004
    Location
    Wellington, NZ
    Posts
    573
    Ed,

    My TiVo connected to the emulator this morning ( I did a manual daily call at 4am) as the time was still 3am. The emulator didn't set the time forward to 4am when setting the clock. Should it do this, or do I need to do the Auckland timezone tweak?

  8. #8
    Join Date
    Apr 2004
    Location
    Wellington
    Posts
    224
    Dunno what the TZ tweak does... Guide data is in localtime, but Tivo thinks it's GMT, so if you actually set the tivo properly (GMT adjusted to NZ, as NTP would do) you get a schedule off by 12ish hours. Because of this, the emulator tells the tivo to get time from localhost (if I set it up to point at an NTP server we get the data offset). For now anyway, it's just a manual process:

    [TiVo [p0] ~]# settime 20041003081520
    Time set to: Sun Oct 3 08:15:20 2004
    Have a nice day.
    [TiVo [p0] ~]# settime -rtc
    Time set to: Sun Oct 3 08:15:29 2004
    Have a nice day.
    [TiVo [p0] ~]# reboot

    I've thought of setting up a dummy NTP server which dishes out localtime as GMT; if somebody wants to set one up, do it and I'll point the emulator at it, and the time issues will be automagic. Meanwhile, for those who want to automate it, Thomson's script below would do a very good job. Personally, I think I'll just leave it. I have to reset all the bloody clocks in the house anyway, it's just one more thing I have to reset...

  9. #9
    Join Date
    Jul 2004
    Location
    Wellington
    Posts
    54
    Quote Originally Posted by tarx
    Please keep in mind, the current version of the example postcode file on http://www.tjv.org.nz/tivo/postcodezones has the Auckland postcode value incorrectly listed as:

    00800 Pacific/Auckland

    which needs to changed to:

    02113 Pacific/Auckland

    to work correctly

    Cheers, Gabe
    I did this but no matter which time server IP I try, I get a "Connection refused" error when rtimetz runs inside of fixtime.cron or fixtivotime. Which server are you able to successfully connect to?

    Clive

  10. #10
    Join Date
    Mar 2004
    Location
    Wellington, NZ
    Posts
    573
    Im having no end of trouble..

    Our postcode is 02115. Found matching timezone Pacific/Auckland
    Offset 0 for timezone GMT, daylight saving is 0
    Connecting to time server 207.126.98.204
    t was 3305776250 from server
    t is now 1096787450
    Time is 2004-10-03 07:10:50
    Time set to: Sun Oct 3 07:10:50 2004
    Have a nice day.
    Time set to: Sun Oct 3 07:10:50 2004
    Have a nice day.


    I've set the timezone to 7... but whenever I run fixtivotime it wants to set it to 7am (when in fact it's 8pm).

    Any ideas? This TiVo is running on Eds emulator.
    I've also manually set it and issued settime -rtc but whenever I run fixtivotime it puts it back to the am - 1 hour again.

Similar Threads

  1. Time is wrong, how do I correct time
    By Phillip in forum TV Guide Issues
    Replies: 2
    Last Post: 21-12-2017, 12:10 AM
  2. Time issues with Daylight Saving and Guide Time
    By Ray in forum New Zealand General Forum
    Replies: 4
    Last Post: 06-04-2010, 05:55 AM
  3. getting the right time on tivo
    By Kent Lambert in forum Request For HELP! in my State
    Replies: 4
    Last Post: 24-05-2009, 07:52 AM
  4. how to change time zone to Perth time?
    By Damien666 in forum Australian TiVoHD
    Replies: 1
    Last Post: 03-09-2008, 01:57 PM
  5. TiVo recording at wrong time (or is is right time)
    By Wanted in forum New Zealand General Forum
    Replies: 3
    Last Post: 25-04-2006, 03:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •