Jump to content


Photo

openpli 4 time sync ! NTP


  • Please log in to reply
73 replies to this topic

Re: openpli 4 time sync ! NTP #41 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 22 November 2014 - 10:51

Oops. The local dispute even extends to timezones?

 

As far as I can see, the official "Gaza time" is expressed as EET (Eastern Europe Time).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: openpli 4 time sync ! NTP #42 ajeeb

  • Senior Member
  • 385 posts

0
Neutral

Posted 22 November 2014 - 11:41

yeah sure !

http://wwp.greenwich...nian-territory/


ET9000,DM500s+usbTTdvb-3600 ,DVB2000,Humax5400, MACbook PRO retina 13", MAC pro 2 x Quad XEON-2.8GB , 8GB ECC, 4TB+FusionDrive(SSD) , LG-24FHD, HD6870,Debian server

"Since the dawn of our species, Man has been blessed with curiosity"


Re: openpli 4 time sync ! NTP #43 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 November 2014 - 19:29

"PST" :D


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: openpli 4 time sync ! NTP #44 ajeeb

  • Senior Member
  • 385 posts

0
Neutral

Posted 27 November 2014 - 23:44

Well after last update systemtime doesn't do anything same problem again even when defined manually !!!

ET9000,DM500s+usbTTdvb-3600 ,DVB2000,Humax5400, MACbook PRO retina 13", MAC pro 2 x Quad XEON-2.8GB , 8GB ECC, 4TB+FusionDrive(SSD) , LG-24FHD, HD6870,Debian server

"Since the dawn of our species, Man has been blessed with curiosity"


Re: openpli 4 time sync ! NTP #45 fastrene

  • Member
  • 1 posts

0
Neutral

Posted 28 November 2014 - 23:10

I had the same problem, and I've resolved  :

 

First, install busybox :

With telnet : opkg install busybox-cron

 

With an editor, type :

#!/bin/sh
rdate -s time.mit.edu

Then Save as TimeUpdate.sh, in /etc/cron/scripts

 

With an editor, type :

*/1 * * * * /etc/cron/scripts/TimeUpdate.sh

Then Save as root (without extension), in etc/cron/crontabs

 

In etc/enigma2, edit the file settings and add this line :

config.misc.useTransponderTime=false

 

Save it, then unplug the power (not a proper shutdown)

 

That's all



Re: openpli 4 time sync ! NTP #46 ajeeb

  • Senior Member
  • 385 posts

0
Neutral

Posted 29 November 2014 - 21:36

No nothing help !! But interesting case cause I use an app for iPhone called blackbox and time is correct there !! While in STB OSD 1 hour ahead
is it ring a bell?

ET9000,DM500s+usbTTdvb-3600 ,DVB2000,Humax5400, MACbook PRO retina 13", MAC pro 2 x Quad XEON-2.8GB , 8GB ECC, 4TB+FusionDrive(SSD) , LG-24FHD, HD6870,Debian server

"Since the dawn of our species, Man has been blessed with curiosity"


Re: openpli 4 time sync ! NTP #47 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 5 September 2016 - 12:47

Hi, 

i get this thread alive again because i didn't found any solution to this question.

 

I have an et4000 that i use only for IPTV. No sat/dtt cable connected.

My problem is that epg is not loaded at boot/reboot due to fact (at least i think so) that time is wrong (year 1970)

 

What i did was:

1. Put the line "config.misc.useTransponderTime=false" in /etc/enigma2

2. Installed systemtimeplugin for use ntpd

3. Put "ntpd -q -p pool.ntp.org" command at top of /usr/bin/enigma2.sh

 

But it seems the date/time is set when epg load command (i don't know when it is called) is already done, so no epg is loaded.

In fact, if i restart enigma after date is correct, the epg is loaded correctly.

 

So, please, give me a solution for this! I tried for two days without solution, it is frustrated!

 

Thanks a lot

 

 

 

p.s. My idea: Why not set a delay for load EPG? 


Edited by antony23, 5 September 2016 - 12:50.


Re: openpli 4 time sync ! NTP #48 Pr2

  • PLi® Contributor
  • 6,070 posts

+257
Excellent

Posted 5 September 2016 - 12:54

Hi,

 

Remove your own trick and install the plugin:

 

opkg update

opkg install enigma2-plugin-systemplugins-systemtime

 

Restart OpenPLi

 

Then go into Menu - Parameters - System - System Time (be carefull it is on the second screen).

 

And configure there the settings that you want.

 

Hope this help,

 

Pr2


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: openpli 4 time sync ! NTP #49 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 5 September 2016 - 12:58

Hi, as i wrote, i just did it.

Used systemtimeplugin alone, use my trick alone, use both togheter... nothing solved!

 

EPG reloading is called early imho.

 

If i'm not wrong, Crossepg has an option to reload EPG at boot, and it works with a delay: https://github.com/E...rossEPG/pull/27

 

Could be done the same in openpli?

 

 

Thanks



Re: openpli 4 time sync ! NTP #50 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 5 September 2016 - 14:45

There is nothing build into OpenPLi that "loads" EPG. So what exactly do you mean?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: openpli 4 time sync ! NTP #51 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 5 September 2016 - 14:48

Maybe EPGRefresh plugin in this case?


Edited by Erik Slagter, 5 September 2016 - 14:48.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: openpli 4 time sync ! NTP #52 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 5 September 2016 - 15:17

3. Put "ntpd -q -p pool.ntp.org" command at top of /usr/bin/enigma2.sh

 

this needs web Interface, meaning enigma2 already running, which is not the case on starting box

ntpd -q -p pool.ntp.org

if you put enough sleep before ntpd will do the job i.e.

 

sleep 60 && ntpd -q -p pool.ntp.org &

 

you can put even more sleep if nedeed (here 1 Minute)

 



Re: openpli 4 time sync ! NTP #53 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 5 September 2016 - 18:11

About "load EPG" i mean load epg.dat file at boot (reboot or deep standby).

I have the file, but at boot it is not loaded, or at least not always. While restarting enigma it is always loaded correctly.

 

@mrvica

Why it needs web interface?

 

I got this trick here: http://forums.openpl...t-xmltv-import/ - search for "No epg is imported after the box comes out of deepstandby" title.

 

 

Thanks


Edited by antony23, 5 September 2016 - 18:13.


Re: openpli 4 time sync ! NTP #54 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 5 September 2016 - 20:15

Tried  "sleep 60 && ntpd -q -p pool.ntp.org &" and "ntpd -q -p pool.ntp.org && sleep 60 &", but there is not a logic. Sometimes it loads, sometimes not.

What could be the cause?

 

When the epg.dat is loaded in memory? After enigma starts? Before? 

Can i put ntpd in a point where i'm sure it is called before epg.dat reloading? 

Or maybe reloading epg file is bugged?

 

I tried epg refresh plugin, but i didin't find the option to load epg.dat at boot.

I tried to install crossepg, because i know it ha that oprion, but the installation fails.

 

Please, can some coder help me? 


Edited by antony23, 5 September 2016 - 20:15.


Re: openpli 4 time sync ! NTP #55 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 5 September 2016 - 20:18

epg.dat is loaded by Enigma when enigma starts, and written when Enigma stops. It is just a backup file, it does not load any new data. And it is a local file, it has no relation whatsoever with the time of the box.

 

So instead of constantly trying to discuss "solutions", why not start with describing your problem?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: openpli 4 time sync ! NTP #56 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 5 September 2016 - 21:43

Yes, you are right! Sorry, i start from scratch.
 
So, i have an xtrend et4000, and i would use it for only IPTV, no satellite cable connected.
So, i installed your great image, installed my iptv list, configure picon e epg paths to my usb pen (/media/usb/).
 
Initially i had the first problem: date and time was wrong, 01/01/1970 etc. I fixed it using "ntpd -q -p pool.ntp.org" inside /var/bin/enigma2.sh and setting "config.misc.useTransponderTime=false" inside /etc/enigma2/settings.
Now when enigma starts, the date and time are corrected.
 
But now i have a problem with EPG: epg.dat is not loaded at boot: sometime it works and other not. There is no a logic. 
To force loading, i need restart enigma.
The epg.dat file is stored correctly to /media/usb/epg.dat (5MB). 
I'm not talking about new data, but stored data.
 
Initially i thinked the culprit was date/time no set correctly, but now i'm confused... no idea what can be the cause.
 
Hope the problem now is more clear.
 
Thanks a lot for your attention.
 
 
 
p.s. Maybe i need to open a new thead about epg?

Edited by antony23, 5 September 2016 - 21:45.


Re: openpli 4 time sync ! NTP #57 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 5 September 2016 - 21:50

As said before, the epg.dat file is a backup file, it is not used by Enigma for other purposes. It is only written if you close down your box through the menu (deep sleep), and it only reads it back when Enigma starts, the file exists, and isn't currupt due to incorrect shutdown of Enigma.

 

And obviously the EPG information is date related, so if the Enigma date is not correct, nothing is displayed.

 

I have a VU Zero here that is only used for streaming, I use the systemtime plugin, and I never have EPG problems.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: openpli 4 time sync ! NTP #58 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 5 September 2016 - 22:00

As i already said, i used systemtime plugin before the ntpd trick, but is was the same.

 

So, no idea what i can check/debug? 

It is clear it is something goes wrong at boot, because restarting enigma the epg appears.


Edited by antony23, 5 September 2016 - 22:01.


Re: openpli 4 time sync ! NTP #59 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 5 September 2016 - 22:58

Ok, i found the problem, and as i thinked it was the system time.

It seems that sometimes network interface is not ready to make ntpd calls. So without correct date, epg is not loaded.

I made this "bad" trick:

while ! ping -c 1 google.it &>/dev/null; do sleep 1; done
ntpd -q -p pool.ntp.org

I put these lines in /var/bin/enigma2.sh, at top before "# hook to execute scripts always before enigma2 start" line.

 

I made different reboot and swith off/on, and epg was always loaded. It is clear that transponder time set is fast than ntp time set.

 

 

If someone have a better/elegant solution is welcome  :)



Re: openpli 4 time sync ! NTP #60 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 6 September 2016 - 09:49

The systemtime plugin allows you to define a delay for that purpose.

 

These settings work fine for me, and I use a wifi stick that needs time to associate with the access point:

Attached File  screenshot.jpg   82.35KB   26 downloads


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users