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

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
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:	913
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:	853
Size:	81.4 KB
ID:	5704  
Attached Files
File Type: zip gtkclock.0.1.zip (3.59 MB, 797 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
Old 09-06-2007, 06:27 AM   #2
tribble
iLiad Maniac
tribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it is
 
tribble's Avatar
 
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
Time zone setting will be in one of the next updates, so it should be easy to set the timezone for the user then.

Is the clock configurable? I would like to have a tiny clock with no background and no second and a gray font.
tribble is offline   Reply With Quote
Advert
Old 09-06-2007, 07:03 AM   #3
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)
Quote:
Originally Posted by tribble View Post
Time zone setting will be in one of the next updates, so it should be easy to set the timezone for the user then.
Oh, that's cool.

Quote:
Originally Posted by tribble View Post
Is the clock configurable? I would like to have a tiny clock with no background and no second and a gray font.
YES!
Quote:
Usage:
gtkclock [OPTION...] - a simple digital clock

Help Options:
-?, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options

GTK+ Options
--class=CLASS Program class as used by the window manager
--name=NAME Program name as used by the window manager
--screen=SCREEN X screen to use
--sync Make X calls synchronous
--gtk-module=MODULES Load additional GTK+ modules
--g-fatal-warnings Make all warnings fatal

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)
--display=DISPLAY X display to use
[EDIT:] With
Code:
./bin/gtkclock --format=%H:%M
I get a clock with hour & minutes only.

Last edited by yokos; 09-06-2007 at 07:15 AM. Reason: options
yokos is offline   Reply With Quote
Old 09-06-2007, 07:21 AM   #4
tribble
iLiad Maniac
tribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it is
 
tribble's Avatar
 
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
OK, i want it
Is it refreshing the screen automatically? Do you have it do a partial refresh? I t would be great if it sops updating the screen, if no buttons have been pressed for a while.
Updates every 10 minutes would suffice for me. Would be great if that could be configured aswell
Cant wait to get my hands on it.
Thanks for your work mate.
tribble is offline   Reply With Quote
Old 09-06-2007, 07:26 AM   #5
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)
It updates partial of screen. It uses Antartica's patched libX11.so.6 like all Adam B. ports.
With hh:mm it updates with every new minute.
yokos is offline   Reply With Quote
Advert
Old 09-06-2007, 07:48 AM   #6
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)
Hey tribble. You wanted grey font. This works this way:
Code:
./bin/gtkclock --format=%H:%M --foreground=grey --background=white
What is the name of local screen of a GtkWindow?
I get
Code:
(clock:1484): Gtk-WARNING **: gtk_migration not initialised yet

(clock:1484): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(clock:1484): Gdk-CRITICAL **: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
Segmentation fault
when trying to give the GTK window a name.

This is the most interesting option:
Code:
--class=CLASS Program class as used by the window manager
Right now I have hard encoded in sourcecode that it should behave as "GDK_WINDOW_TYPE_HINT_DIALOG".

Last edited by yokos; 09-06-2007 at 07:49 AM. Reason: spelling
yokos is offline   Reply With Quote
Old 09-19-2007, 10:08 AM   #7
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)
I have uploaded first binary.
yokos is offline   Reply With Quote
Old 09-19-2007, 10:15 AM   #8
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Quote:
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?
Yes and Yes.

Very cool, does it support the 12 hour format?

Edit: Nevermind, I guess I can do my own research.

To get a 12 hour clock, launch it with: "gtkclock --format=%I:%M"

This page may be useful for some: http://linux.die.net/man/3/strftime
Adam B. is offline   Reply With Quote
Old 09-19-2007, 04:05 PM   #9
tribble
iLiad Maniac
tribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it istribble knows what time it is
 
tribble's Avatar
 
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
Works like a charm. Thanks alot. Love the clock.
tribble is offline   Reply With Quote
Old 09-20-2007, 03:36 PM   #10
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Does:

Quote:
gtk_window_move(GTK_WINDOW(d.window), 700, 1024);
work on the iLiad?

Also, this program should be very easy to compile and make manual screen refreshes without requiring external libs. I can put together a little code tutorial if you'd like...
Adam B. is offline   Reply With Quote
Old 09-20-2007, 04:08 PM   #11
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Can someone test this?

If I did everything right, it should run without any external libraries, do it's own refreshes, and be in the lower right hand corner.

I've even stripped it so at 65KB it could be installed to root without a problem.

I'm also uploading the modified source (rename to gtkclock.c) and Makefile (The changes are in "DEPS_LIBS") so you can review the code changes.
Attached Files
File Type: zip gtkclock.zip (40.4 KB, 612 views)
File Type: txt gtkclock.txt (4.1 KB, 677 views)
File Type: txt Makefile.txt (17.2 KB, 526 views)
Adam B. is offline   Reply With Quote
Old 09-20-2007, 05:48 PM   #12
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Here's another update that needs to be tested. I've added the ability to select which corner of the screen you would like it to appear on with a command line switch.

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)
-l, --location=LOCATION screen location (tl - top left, tr - top right, bl - bottom left, br - bottom right)
--display=DISPLAY X display to use
For example, if you want it to show up on the top right corner, you'll run

Quote:
./gtkclock --location=tr
I haven't tested it on the iLiad, but it works on my pc.

I'm including the source as well.

Can someone test it and let me know if it works. I still don't have shell access on my iLiad.

-Adam
Attached Files
File Type: zip gtkclock.zip (50.1 KB, 624 views)
File Type: txt gtkclock.txt (4.6 KB, 710 views)
Adam B. is offline   Reply With Quote
Old 09-21-2007, 07:40 AM   #13
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)
Hey Adam B.,

I get
Code:
(gtkclock:859): Gtk-WARNING **: gtk_migration not initialised yet
Segmentation fault
when typing:
Code:
./gtkclock -l=tr

Last edited by yokos; 09-21-2007 at 07:48 AM.
yokos is offline   Reply With Quote
Old 09-21-2007, 07:45 AM   #14
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Quote:
Originally Posted by yokos View Post
Hey Adam B.,

I get "segmentation fault" when typing:
Code:
./gtkclock
Are you sure that no links to libraries are needed?
Pretty sure. Is this with the first or second post?
Adam B. is offline   Reply With Quote
Old 09-21-2007, 08:01 AM   #15
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)
Oh, Adam anwered an older version of my post.
The more detailed ouput is 2 post above this one. [of course the lastest version ]
I get
Code:
(gtkclock:859): Gtk-WARNING **: gtk_migration not initialised yet
Segmentation fault
when typing

Code:
./gtkclock -l=tr
yokos is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iLiad The iLiad OS Project jharker iRex Developer's Corner 145 12-09-2013 12:44 PM
iLiad The iLiad OS Project roadmap discussion Antartica iRex Developer's Corner 21 02-27-2009 02:42 AM
iLiad The iLiad OS Project UI discussion Antartica iRex Developer's Corner 51 11-05-2008 04:10 PM
iLiad is there a Full Screen Clock for the Iliad? tshare iRex Developer's Corner 1 10-03-2007 12:42 PM
iLiad On screen clock for your iLiad scotty1024 iRex Developer's Corner 3 06-05-2007 12:29 PM


All times are GMT -4. The time now is 02:34 AM.


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