View Single Post
Old 02-13-2013, 06:22 PM   #1
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
KUAL DateTime Button

Set DateTime from Server

All Kindle models have some means to set the system date-time, either manually, automatically, or both.
If you are "Blocking Big Brother", you will not be able to reach the Amazon time servers.

This button, when added will appear on the KUAL 'Helper' menu list.
It will set both the system time (in Linux kernel) and command Linux to set the hardware clock from the user's choice of public time servers.
Will work on any Kindle with network access by Wifi, USB cable, or non-Amazon 3G.
(Untested on the K2 - but one can hope it works there also.)

Will work while the "Block Big Brother" (BBB) firewall is active.

The button has a simple configuration file, accessible in USB storage (extensions/helper2/ntpdate.conf) where the user can set from one to four public time servers or time server networks.
As shipped, one US time server and three time server networks are configured:

NTPD_SERVER='nist.time.nosc.us'
NTPD_ALT1='0.uk.pool.ntp.org'
NTPD_ALT2='0.europe.pool.ntp.org'
NTPD_ALT3='pool.ntp.org'

Information on regional and pool server zones can be found here:
http://www.pool.ntp.org/zone/@

Information on the US time server network can be found here:
http://tf.nist.gov/tf-cgi/servers.cgi

Information on the UK time servers can be found here:
http://www.timetools.co.uk/ntp-serve...-server-uk.htm

The button will produce a "book-report" (actually, a text document) if it encounters any errors.
As shipped, the button is configured to also produce the "book-report" when successfully setting the date-time.
The configuration file has an option to turn off the "Success book-report", the default is to produce the success report.

The success report is enabled by setting the configuration file to:
NTPD_REPORT='true'

The success report can be disabled by setting the configuration file to:
NTPD_REPORT=''

BIG NOTE: When dragging or copying an update to this button into the extensions directory, it will over-write your modified ntpdate.config file.
Not tragic, unless you had to change the time server list.

The configuration file is actually a fragment of a script, it **must** use Linux line-endings.

Installation:
  • Unarchive the release package (if using the 'zip' package, keep the directory structure) ;
  • The top level directory of the button file structure is: 'helper2' ;
  • Copy this top level directory, its sub-directories and files as an entry in the: 'extensions' directory ;
  • The 'extensions' directory can be seen over USB storage, right next to the 'documents' directory ;
  • You are done.

Finding the 'book-report'
Since the book-report is actually a text file, your kindle will consider it a 'doc' rather than a 'book'.
If you have a display filter on your Kindle ('My Items' dropdown thing), then set it to either 'all items' or 'docs' to see the DateTime book-report.

The attachments here have a *.json file that does not work with the version-2 series of the kual launcher.

The corrected *.json file can be found in the new repository, at this link:
Sources:
http://hg.minimodding.com/repos/sys/kBBB.hg/summary
New Repo at:
https://bitbucket.org/knc1/kualettes...ate?at=default

Changes:
1.0.1 - try to compensate for slow DNS resolvers and fix the problems with Kindles not showing the most recent report document.
Attached Files
File Type: gz helper2-1.0.0.tar.gz (2.5 KB, 475 views)
File Type: zip helper2-1.0.0.zip (3.7 KB, 570 views)
File Type: gz helper2-1.0.1.tar.gz (1.8 KB, 622 views)
File Type: zip helper2-1.0.1.zip (2.6 KB, 1391 views)

Last edited by knc1; 08-23-2013 at 09:41 AM.
knc1 is offline   Reply With Quote