Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2015, 02: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:	242
Size:	24.3 KB
ID:	138466   Click image for larger version

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

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

Last edited by MagNet; 05-20-2015 at 05:35 AM. Reason: more pictures, info about next version
MagNet is offline   Reply With Quote
Old 05-20-2015, 03:14 AM   #2
brucelee
Addict
brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.brucelee is my North, my South, my East and West.
 
Posts: 346
Karma: 142294
Join Date: Jan 2015
Location: Romania
Device: Kobo Aura One
Quote:
Originally Posted by MagNet View Post
[*]When started the clock is offset by some 70pxs. This gets fixed after the first refresh.
The top panel is about 70px. Try SetPanelType(0) in your app initialization.

Quote:
Originally Posted by MagNet View Post
[*]Frontlight intensity setting via touch (finding out if this can be done)
Functions are available in inkinternal.h (SDK481). Using them will limit the app to firmware 5.
Quote:
/*
* Returns frontlight state (0-100 - brightness, negative value if off)
* returns INT_MIN if can't read or not supported
*/
int GetFrontlightState(void);

/*
* Sets frontlight state (0-100 - brightness, negative value if off)
*/
void SetFrontlightState(int flstate);

/*
On/off FrontLight
*/
void SwitchFrontlightState();

Last edited by brucelee; 05-20-2015 at 03:17 AM.
brucelee is offline   Reply With Quote
Old 05-20-2015, 05:34 AM   #3
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
Quote:
Originally Posted by brucelee View Post
Functions are available in inkinternal.h (SDK481). Using them will limit the app to firmware 5.
Oh, I was using the 1.1 release of the SDK from pocketbook free so these calls were unavailable. I'll just #ifdef around it and release two versions, thanks for the tip.
Seems to work well.

Quote:
Originally Posted by brucelee View Post
The top panel is about 70px. Try SetPanelType(0) in your app initialization.
The SetPanelType(0) did not help. However, building against the newer SDK seems to have mitigated the problem. Makes me wonder if launching the app under older FWs will reintroduce the issue in some way.

BTW tried it out last night and about 8 hours of acting like a clock (no frontlight) took about 2-3% of the battery, which is quite nice.

Last edited by MagNet; 05-20-2015 at 05:37 AM.
MagNet is offline   Reply With Quote
Old 07-01-2015, 04:54 AM   #4
jojowerfer
Junior Member
jojowerfer began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2012
Device: KT 5.1.0
I really like the clock, but unfortunately the screen orientation change via menu button does not work for me, it goes straight to the main menu. (Lux 3 FW 626.5.8.275)

Anyway, thanks a lot, I am really excited for the new version!
jojowerfer is offline   Reply With Quote
Reply

Tags
app, clock, pocketbook 626

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PB 626 - Calibre Probleme Ruesch PocketBook 10 05-23-2015 02:19 PM
PB 626 - Différentes questions / problèmes Telev PocketBook 10 11-18-2014 05:10 AM
Question about PB 626 usb connection adbosch PocketBook 4 10-21-2014 11:00 PM
PB 626 sudden death Ruesch PocketBook 5 06-10-2014 02:22 PM
Reader app with day night adjustable settings yelloguy Android Devices 24 08-01-2011 05:04 PM


All times are GMT -4. The time now is 09:03 PM.


MobileRead.com is a privately owned, operated and funded community.