View Single Post
Old 05-19-2015, 01:43 PM   #1
MagNet
Junior Member
MagNet began at the beginning.
 
MagNet's Avatar
 
Posts: 4
Karma: 10
Join Date: May 2015
Device: PocketBook 626 Touch Lux 3
Post [APP] Night Stand Clock (626)

Hi,
I wanted to use my PB 626 with its long battery life and eink display as a simple night stand clock and didn't find anything usable.
There is Clocky available from http://fedorchenko.net/pb.php and the PocketBook free project website. It displays pretty terribly on my 626 though - half cut off.

I've based this on the clock sample code from the SDK 1.1, which did not start on my device due to missing resources in the current FW. I rewrote it to just use system fonts, display well and support all orientations. I intend to improve upon it and make it more modifiable and add an analog clock.

(Currently it will probably work well only with XGA (1024x768) screen devices, others will I believe break the text. I'll make it adjust properly when I get the time.)

So here it is, enjoy.

Installation
  • Copy the file NightStandClock.app to the applications folder on your device
  • If you want the name of the app to display properly, you'll have to add an entry to your language file located in system/language. If the file is not there, you'll have to create it. The name of the file depends on your current language, for English it's en.txt, Czech cs.txt, French fr.txt, you get the gist.
    Here are the example contents of my language file. The first line has to be the name of the language.
    Code:
    English
    @Nightstandclock=Night Stand Clock

Usage
  • Start from the App drawer
  • Use the Menu button to change orientation
  • Look at it to tell time

Tested on
  • PocketBook 626 Touch Lux 3, fw W626.5.5.720

Known issues
  • When started the clock is offset by some 70pxs. This gets fixed after the first refresh.
    This is because I put in a negative offset to deal with what seems to be a drawing bug in the SDK that offsets the canvas after the first refresh. Maybe I'll find out what causes it.

Current version 0.1

Next version
Done
  • Inverted mode (sexy)
  • Frontlight switch by touch (thanks brucelee)

Working on
  • Frontlight intensity setting via swiping
Attached Thumbnails
Click image for larger version

Name:	nightstandclock.png
Views:	479
Size:	24.3 KB
ID:	138466   Click image for larger version

Name:	photo1.jpg
Views:	517
Size:	52.9 KB
ID:	138470   Click image for larger version

Name:	photo2.jpg
Views:	504
Size:	63.0 KB
ID:	138471  
Attached Files
File Type: zip PocketBook-NightStandClock-v0.1.zip (2.8 KB, 370 views)

Last edited by MagNet; 05-20-2015 at 04:35 AM. Reason: more pictures, info about next version
MagNet is offline   Reply With Quote