View Single Post
Old 01-01-2020, 02:20 PM   #41
handyguy
Connoisseur
handyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to beholdhandyguy is a marvel to behold
 
handyguy's Avatar
 
Posts: 72
Karma: 11789
Join Date: Dec 2019
Device: PW4
clock code

Here's my current version of the Kindle clock. It does not have any Kindle power optimization yet.
To make it work:
1) Unzip and copy the files to /mnt/us/extensions/clock.
2) Update the email info in emailbat.py if you want to be notified of low battery
3) Update the fonts in c2.py to something on your device and un-comment out the emailbat.py code section
Press the new Clock button in KUAL or from the command line:
python c2.py

I don't pretend to be the greatest coder, but the code is relatively modular and commented.
Attached Files
File Type: zip clock.zip (109.4 KB, 113 views)

Last edited by handyguy; 01-01-2020 at 03:46 PM.
handyguy is offline   Reply With Quote