Before using it, you have to set the system time (it resets at every reboot), or simply follow the instructions below to set the correct time at every boot.
If you pass a timezone as a parameter, it will also set the DST flag automatically, and correct for a wrong time zone set on the TV.
The timezone database is from micro_tz_db.
The library should work at least up to E series, but I have tested it only on C series.
On C series $SYSROOT is usually /dtv/usb/sda/SamyGO
Usage:
- Set TV Country and Time Zone (if applicable)
- Set the Clock Mode to Auto
- Install latest SamyGOso from here:
- Copy samyGOso file to $SYSROOT/opt/privateer/usr/bin
- Set permissions (not needed on C series since $SYSROOT is on USB):
Code: Select all
chmod +x $SYSROOT/opt/privateer/usr/bin/samyGOso
- Extract attached archive and copy libsetTVTime.so to $SYSROOT/opt/privateer/usr/libso
- To get the time from NTP server:
- Download and extract the latest version of ntpclient from here
- Copy ntpclient file to $SYSROOT/opt/privateer/usr/bin
- Set permissions (again not needed on C series):
Code: Select all
chmod +x $SYSROOT/opt/privateer/usr/bin/ntpclient
- Check if everything works correctly:
- Update system time (replace $NTPSERVER with your preferred NTP server):
Code: Select all
ntpclient -s -h $NTPSERVER -p 123
- Inject the library (replace $TIMEZONE with the appropriate time zone string):
Code: Select all
samyGOso -d -A -B -l $SYSROOT/opt/privateer/usr/libso/libsetTVTime.so $TIMEZONE
- Update system time (replace $NTPSERVER with your preferred NTP server):
- To make it permanent:
- Edit 02_99_setNtpTime.init with your preferred NTP server and time zone
- Copy 02_99_setNtpTime.init to $SYSROOT/etc/init.d
- Set permissions (again not needed on C series):
Code: Select all
chmod +x $SYSROOT/etc/init.d/02_99_setNtpTime.init
For the timezone, you can check the list of supported ones in the micro_tz_db source code.
Source code is available on GitHub