Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4458

PW4 Active Photo Album

$
0
0
This is a striped down version of a personal project.
I use it as a dashboard (it can easily be modified to be so thanks to pillow(python), but I'm releasing this for a more popular use case.

How it works:
There are three distinct kindle states that this app distinguishes
  1. Screensaver layer is ON & Screen power is OFF = Screensaver
  2. Screensaver layer is ON & Screen power is ON = Lock screen
  3. Screensaver layer is OFF & Screen power is ON = Active use
It takes advantage of the 2nd state, a state that doesn't automatically freeze or close the app, and displays a composite images to the screen at set intervals. This will continue indefinitely, until you switch to another state or the battery dies.

The script in the "extensions/screengen" folder restarts it if it somehow closes, and opens it after reboot.

There's really not much to say about it... you can add your own modules/data to the display using pillow.

Requirements:
  • Jailbreak
  • Python 3
  • KUAL
  • Linkss(recommended)

Start:
  • Copy paste to root directory or "/mnt/us"
  • Run through KUAL

Configure:
  • Go to screengen folder or "/mnt/us/screengen"
  • Edit run.py
  • Under "# Settings" you have several options for configuration
  • Alter timer.timerOneCheck(20,0) to change image cycle frequency
  • Alter timer.timerTwoCheck(1,0) to change data and screen refresh frequency
  • Remember to add images with descriptive names to the "photos" folder


Note:
The program itself seems stable enough for release, but I'm still on the process of making the code look cleaner, and making it easier to add modules.


Special Credits:
  • Jailbreak Community - I'm not sure who specifically to credit for this, but without it, this wouldn't be viable in the first place
  • NiLuJe - For building the tools necessary to run this Python, fbink, and linkss
  • Peterson - For the Online Screensaver whose SH code I borrowed and which served as as an inspiration for this project

Attached Files
File Type: zip 0.9.6.zip (717.8 KB)

Viewing all articles
Browse latest Browse all 4458

Trending Articles