SharkyEXE icon

Untitled

SharkyEXE | PRO | 11/02/18 04:45:33 PM UTC | 0 ⭐ | 809 πŸ‘οΈ | Never ⏰ | []
text |

860 B

|

None

|

0 πŸ‘

/

0 πŸ‘Ž

def NTPStart(self):
  if config.plugins.SetClock.choiceSystemTime.value == "1":
   if not config.plugins.SetClock.useNTPminutes.value == "0":
    cmd = '/usr/lib/enigma2/python/Plugins/Extensions/SetClock/ntpdate -s -u %s' % config.plugins.SetClock.ip.value
    self.Console.ePopen(cmd, self.update_schedule)
    self.timer.startLongTimer(int(config.plugins.SetClock.useNTPminutes.value) * 60)
Β  def update_schedule(self, result = None, retval = None, extra_args = None):
  if eDVBLocalTimeHandler.getInstance().ready():
   nowTime = time()
   if nowTime > 1388534400:
    setRTCtime(nowTime)
    if config.plugins.SetClock.choiceSystemTime.value == "0":
     eDVBLocalTimeHandler.getInstance().setUseDVBTime(True)
    else:
     eDVBLocalTimeHandler.getInstance().setUseDVBTime(False)
    try:
     eEPGCache.getInstance().timeUpdated()
    except:
     pass

Comments