View Single Post
Old 09-06-2007, 06:08 AM   #1
yokos
Pac-Man caught my iLiad.
yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.yokos can teach chickens to fly.
 
yokos's Avatar
 
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
project: clock for iLiad

Who wants to have a digital clock for iLiad Screen?

Right now, you can choose between top left and top right position.

In ipdf the clock disappears when you switch page, but comes back when a new minute starts. ipdf is the only app which behaves like this.
Quote:
Originally Posted by readme file
************************************************** *******************
A simple digital clock for iLiad
************************************************** *******************

Preparation:
[1] Extract directory "gtkclock.install" from zip-file to CF/MMC/SD
Please dont' use iLiad's Main Memory.
[2] Insert memory card into iLiad, if you used one in previous step

Installation:
[1] Search for "Install Simple Digital Clock" in Contentlister
[2] Click on this entry to install app
[3] This takes a while. Blinking of LED stops when finished, you will get a "Installed message"

Usage:
[1 ] Go to the progams folder
[2] Load the clock with the entry "Simple Digital Clock"
you can choose between top left and top right position
[2] Click with stylus on the "Quit Simple Digital Clock" to exit programm

In most cases iLiad's time is not correct local time.
You can set time with shell command date [not for Average Joe please],
or wait for firmware 2.11, this offers time-zone-switching I heard on MR. Is this true?
scotty1024 posted a time zone switcher. Still working?

Optional:
You can install cover images & manifest.files for the programs folder with the included dir "icons.install".
preparation/installation as above described. It's just a visual gimmick, have a look at screenshot programs.png
for reference.
Ok, 2.11 with time zone switcher is nearly out.

Quote:
Originally Posted by older version of this post
Ok, one of GTK+ clocks I have tried so far is running. It's the digital clock gtkclock. 120 lines of source code or so.

The main crux I have noticed iLiad's pdf viewer ipdf lays above all windowed apps therefore they get "invisible". I have to click on the last known position of gtkclock then it get's "visible" again. Interesting the "dialog-hint bar" with x-button is gone.

This 1-update-per-second makes me nervous. But tweaking
Code:
g_timeout_add(1000, (GSourceFunc) clock_update, (gpointer) &d);
should solve this. Still some work to do. I'm working on port of an analogue clock, too.

Another problem: iLiad's time zone from iDS isn't the correct local time. It's not fair to say to Average Joe: set time with command date. Scotty1024 has posted a time zone switcher long time ago.
You can find scr here. The tar.gz file is src file.

Quote:
Application Options:
-F, --font=FN font (fontconfig) to be used
-f, --foreground=FG foreground color
-b, --background=BG background color
-t, --format=FORMAT time format (strftime format string)
You can tweak the file CF-Card/Programs/gtkclock.tr/run.sh.

Information about this code are welcome:
Code:
gtk_window_set_gravity(GTK_WINDOW(d.window), GDK_GRAVITY_SOUTH_WEST);
I didn't get it to work. It is needed for bottom position.

explanation of screenshots:
#1: gtkclock/mobipocket viewer
#2: gtkclock/ipdf
#3: gtkclock/GNU Chess
#4: gtkclock [first version, never published here, moved with stylus to bottom left]/mobipocket viewer
Attached Thumbnails
Click image for larger version

Name:	gtkclock.mobi.png
Views:	877
Size:	25.7 KB
ID:	5297   Click image for larger version

Name:	gtkclock.ipdf.png
Views:	915
Size:	244.2 KB
ID:	5298   Click image for larger version

Name:	gnuchess.gtkclock.png
Views:	895
Size:	35.3 KB
ID:	5625   Click image for larger version

Name:	gtkclock.old.mobi.png
Views:	855
Size:	81.4 KB
ID:	5704  
Attached Files
File Type: zip gtkclock.0.1.zip (3.59 MB, 798 views)
File Type: gz gtkclock.0.1.iLiad.0.1.tar.gz (105.4 KB, 720 views)

Last edited by yokos; 09-22-2007 at 08:29 AM. Reason: screenshot of an older version
yokos is offline   Reply With Quote