Jump to content


Photo

Keeping time via ntp

DM500

  • Please log in to reply
12 replies to this topic

#1 mark_hopley

  • Member
  • 19 posts

0
Neutral

Posted 24 August 2011 - 17:50

Hi

Is it possible to get a dm500 running openpli to keep time/date via ntp over net?

Re: Keeping time via ntp #2 joseb

  • Senior Member
  • 139 posts

+3
Neutral

Posted 24 August 2011 - 22:21

I have just bought an et5000, and installed package ntp, ntp-bin and ntpdate.
(opkg install ntp ntp-bin ntpdate)
I expect they will be available for a DM500 too, but I don't know for sure.

You might want to look in /etc/ntp.conf, the file delivered in the feed
lets ntp synchronize with ntp.pool.org, you might want to change that
to the time server of your provider.

Strictly speaking, you don't need ntp-bin or ntpdate.

Ntpdate offers you the possibility to set the system time
(from the shell prompt) from a time server, when ntp is not running,
like this:

ntpdate time.planet.nl

ntpd is configured in such a way that it will eventually synchronize
even if your system is an hour off, but for initial setup it's a nice to have.

ntp-bin provides several tools, the handiest being ntpq, which gives you the
possibility to check the functioning of you ntp daemon, like so:

root@et5000:~#ntpq -np
remote refid st t when poll reach delay offset jitter
==============================================================================
*192.168.0.1 213.75.60.246 2 u 46 256 377 0.212 1.916 1.130

The little star in front of the timeserver says it's synchronized to a timeserver, and the 377 under reach says
connectivity to it is flawless. Google for more info, it's quite hefty.

Anyway, with me, it works. Good luck!
ET9000 ET5000 - 3 quad LNB 19,23,28 E - Viseosat

Re: Keeping time via ntp #3 joseb

  • Senior Member
  • 139 posts

+3
Neutral

Posted 30 September 2011 - 17:46

Caution: in the ntp.conf that comes with the ntp package, the localhost is supplied as a timeserver
of last resort. The idea is that ntp will continue running if connection to the server on the internet is lost.
If this happens regularly for prolonged periods of time, then running ntp is not a good idea.

# Using local hardware clock as fallback
server 127.127.1.0 <--------------- comment out by placing a # in front of it
fudge 127.127.1.0 stratum 14 <--------------- this too

Reasons to comment it out:

- ntp will not synchronize correctly with the actual real timeserver, for reasons unknown to me
- if localhost had such a reliable clock, why have it synchronize to a timeserver in the first place?
- general advice is not to do that, unless localhost is being synchronized by another source.(Google ntp localhost server)

I'm not sure who is maintaining this package, so hopefully it will reach this person, for the time being
comment the 2 lines mentioning server 127.127.0.1 out by putting a hash before it.

Edited by joseb, 30 September 2011 - 17:49.

ET9000 ET5000 - 3 quad LNB 19,23,28 E - Viseosat

Re: Keeping time via ntp #4 Amatøren

  • Senior Member
  • 147 posts

0
Neutral

Posted 30 September 2011 - 19:00

I have a DM500+ just set up as a mediaplayer to my server. No LNB connection. Is it possible to sync the time/date to another DM500+ tha has a LNB connection and then has the right time and date?

Edited by Amatøren, 30 September 2011 - 19:01.


Re: Keeping time via ntp #5 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 30 September 2011 - 19:36

I have a DM500+ just set up as a mediaplayer to my server. No LNB connection. Is it possible to sync the time/date to another DM500+ tha has a LNB connection and then has the right time and date?


If your box has a valid lan connection and internet access use an internet ntp server as mentioned in the previous replies.
It's much easier to setup. If you have to user another box inside your lan you have to config a ntp time server on that box. That's much harder to accomplish.

@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Keeping time via ntp #6 joseb

  • Senior Member
  • 139 posts

+3
Neutral

Posted 30 September 2011 - 21:14

As the parasol said, ntp does not work over an lnb, it has little to do with tv reception, more with computers.
Just install the ntp package on one both of your boxes, and follow instructions in this thread: install optional
packages and edit /etc/ntp.conf.
ET9000 ET5000 - 3 quad LNB 19,23,28 E - Viseosat

Re: Keeping time via ntp #7 Amatøren

  • Senior Member
  • 147 posts

0
Neutral

Posted 1 October 2011 - 11:17

I was thinking of a script to read the time and date from another Dreambox by the LAN connection and then set the time and date on the Dreambox that the script is running on.

Re: Keeping time via ntp #8 joseb

  • Senior Member
  • 139 posts

+3
Neutral

Posted 1 October 2011 - 21:25

NTP does that too, and will keep the time accurate during the whole time the box is on.
ET9000 ET5000 - 3 quad LNB 19,23,28 E - Viseosat

Re: Keeping time via ntp #9 joseb

  • Senior Member
  • 139 posts

+3
Neutral

Posted 3 October 2011 - 20:56

Can someone knowledgable of how enigma2 works confirm that putting

config.misc.useTransponderTime=false

in /etc/enigma2/settings will actually stop enigma2 setting the time based
on the time of the satellite transponder gives?

I found this setting in mytest.py, and I tried it. It definitely looks good, I have
now a 100 times smaller offset from the time server than I used to have, but that might
be luck, and I wouldn't mind actually knowing what I'm doing :-).
ET9000 ET5000 - 3 quad LNB 19,23,28 E - Viseosat

Re: Keeping time via ntp #10 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 3 October 2011 - 21:33

yes, that's what the setting is for.

Note however that e2 doesn't like it very much, if it gets an external systemtime.
Some things (timers, epg) might still think they are running on transpondertime.

Re: Keeping time via ntp #11 joseb

  • Senior Member
  • 139 posts

+3
Neutral

Posted 3 October 2011 - 23:58

Thanks.
I sometimes found 1-2 second 'jumps' when monitoring ntp time, and thought it might
be caused by enigma2 synchronizing to a transponder, and it certainly looks that way.

I tried to find references in the forums as to how this might cause conflicts or what
would go wrong, but I couldn't find anything clear except this one:

http://openpli.org/f...h__1#entry53846

Could you elaborate a bit on how this would cause problems, and what these problems would be?
ET9000 ET5000 - 3 quad LNB 19,23,28 E - Viseosat

Re: Keeping time via ntp #12 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 4 October 2011 - 21:35

Could you elaborate a bit on how this would cause problems, and what these problems would be?


1. e2 relies on it's own timekeeping for sleep/delay/timers.
When it syncs on transponder time (and the time is different from the current time), it works around this by applying an offset.
When the systemtime is set by an external source, e2 will suffer from clock skew. Timers might never run out, or trigger too early.
2. epg event times *might* be considered relative to transponder time, rather than system time. I'm not sure whether this is actually the case.

Re: Keeping time via ntp #13 joseb

  • Senior Member
  • 139 posts

+3
Neutral

Posted 5 October 2011 - 18:06

Obviously there are reasons for e2 to even consider the possibility
that at the same moment it's not the same time. Reasons I can think of
are an unset system clock or a transponder time that is way off.
Both would indicate error somewhere.
Well... I'll see what happens. Thanks for the info.
ET9000 ET5000 - 3 quad LNB 19,23,28 E - Viseosat



Also tagged with one or more of these keywords: DM500

3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users