Hello @Dima73
Slovakian translation
language folder must be ck?
Posted 28 June 2015 - 09:55
Wrong arch. Arch of xp1000, hd1100 and et4000 = mips32el-nf, arch of plugin is mips32el or mipsel. The maker of the plugin should make versions for both arch's.
Edited by Erik Slagter, 28 June 2015 - 09:55.
* 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.
Posted 21 January 2016 - 18:27
# http://stackoverflow.com/questions/5222951/easy-way-to-get-the-correct-time-in-python # http://stackoverflow.com/questions/12081310/python-module-to-change-system-date-and-time def _get_ntp_time(server="pool.ntp.org"): import ntplib import time client = ntplib.NTPClient() response = client.request('pool.ntp.org') return time.localtime(response.tx_time) def _linux_set_time(time_tuple): import ctypes import ctypes.util import datetime import time # /usr/include/linux/time.h: # # define CLOCK_REALTIME 0 CLOCK_REALTIME = 0 # /usr/include/time.h # # struct timespec # { # __time_t tv_sec; /* Seconds. */ # long int tv_nsec; /* Nanoseconds. */ # }; class timespec(ctypes.Structure): _fields_ = [("tv_sec", ctypes.c_long), ("tv_nsec", ctypes.c_long)] librt = ctypes.CDLL(ctypes.util.find_library("rt")) ts = timespec() ts.tv_sec = int( time.mktime( datetime.datetime( *time_tuple[:6]).timetuple() ) ) ts.tv_nsec = time_tuple[6] * 1000000 # Millisecond to nanosecond # http://linux.die.net/man/3/clock_settime librt.clock_settime(CLOCK_REALTIME, ctypes.byref(ts)) if __name__ == "__main__": import time print "Local Time Before:", time.localtime() tm = _get_ntp_time() print "NTP Time:", tm _linux_set_time(tm) print "Local Time After:", time.localtime()Example:
# python t.py Local Time Before: time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=2, tm_min=1, tm_sec=55, tm_wday=3, tm_yday=1, tm_isdst=0) NTP Time: time.struct_time(tm_year=2016, tm_mon=1, tm_mday=21, tm_hour=19, tm_min=14, tm_sec=47, tm_wday=3, tm_yday=21, tm_isdst=0) Local Time After: time.struct_time(tm_year=2016, tm_mon=1, tm_mday=21, tm_hour=19, tm_min=14, tm_sec=47, tm_wday=3, tm_yday=21, tm_isdst=0)
Edited by athoik, 21 January 2016 - 18:27.
Posted 21 January 2016 - 22:54
todo
def _get_ntp_time(server="pool.ntp.org"): import ntplib client = ntplib.NTPClient() response = client.request(server) return response.tx_time def _linux_set_time(tm): import ctypes import ctypes.util # /usr/include/linux/time.h: # # define CLOCK_REALTIME 0 CLOCK_REALTIME = 0 # /usr/include/time.h # # struct timespec # { # __time_t tv_sec; /* Seconds. */ # long int tv_nsec; /* Nanoseconds. */ # }; class timespec(ctypes.Structure): _fields_ = [("tv_sec", ctypes.c_long), ("tv_nsec", ctypes.c_long)] librt = ctypes.CDLL(ctypes.util.find_library("rt")) ts = timespec() ts.tv_sec = int(tm) ts.tv_nsec = int((tm - int(tm) * 1000) * 1000000) # Millisecond to nanosecond # http://linux.die.net/man/3/clock_settime librt.clock_settime(CLOCK_REALTIME, ctypes.byref(ts)) if __name__ == "__main__": import time print "Local Time Before:", time.localtime() tm = _get_ntp_time() print "NTP Time:", tm _linux_set_time(tm) print "Local Time After:", time.localtime()Also python-ntplib soon will be in the feeds, I have a recipe ready.
Posted 22 January 2016 - 09:18
If the package is arch independent now, we can put it in the enigma2-plugins repo! Please supply patch!
* 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.
Posted 2 March 2016 - 22:29
[ -x /usr/bin/dvbdate ] && rm -rf /usr/bin/dvbdateFinally use ntpd everywhere when ntpdate doesn't exists.
Posted 3 March 2016 - 10:57
Plugins or any other code should NEVER remove files that are managed by the package system. Very bad practise!
* 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.
Posted 1 February 2017 - 06:45
GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K
Missing Softcams PluginStarted by MifPT, 12 Jan 2024 softcams, Plugin and 1 more... |
|
|||
openpli 9 and Xtream pluginStarted by frossie, 10 Dec 2023 plugin |
|
|||
Advanced transcoding setupStarted by Dimitrij, 14 May 2022 plugin |
|
|||
Plugin - Power LNB/ToneBurst in standby for FBC tunersStarted by Dimitrij, 6 Apr 2022 plugin |
|
|||
imdb plugin
IMDB plugin issuesStarted by scriptmelvin †, 1 Jun 2021 imdb plugin, imdb, plugin |
|
0 members, 2 guests, 0 anonymous users