maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   clock (https://talk.maemo.org/showthread.php?t=8777)

tabletrat 2007-08-17 12:29

Re: clock
 
Quote:

Originally Posted by macegr (Post 68345)
I puzzled through the SDK installation only to have it *partially* work. No one actually has a good tutorial on how to set up a development environment for this tablet. Some of the HowTo's are literally incomplete pastes from several readme files...so bad, there are actually instances of "now use this command:" and there is a blank space. The same files are referred to by different names in almost every setup guide, and in order to find all the necessary files you have to piece clues from five different incomplete tutorials and fill in the gaps with Google (mostly seeing unanswered requests for help setting up the dev environment).

Having spent a large amount of last week puzzling that too, I can at least answer that (and posted in the developer thread).
Ignore the howtos that are referenced in the normal maemo sections, the ones you refer to with missing parts. They missing parts can actually be viewed in the html. I went to the bugtracker to view mention the problem after someone (possibly texrat) said about remembering to raise bugs, I found a but that referenced it, but unfortunately it seemed to be just a list of comments arguing about whos problem it was to fix, or whether it was already fixed, so I don't think it is going to be fixed anytime soon!
Anyway, even if it was fixed (in which case it would look like the complete ones on test.maemo.org), if you mean the 770, even the working document is completely wrong and can't be followed, luckily I found a page (actually referenced on the bug about the documentations page) where it does give good working instructions:
http://www.ptlug.org/wiki/Howto_Inst..._for_Nokia_770

It is a pretty poor state of affairs if you can't actually get the instructions to set up to develop on the site purporting to be about the device itself, and instead of fixing the problem the people in charge of it just argue about whos fault it is.


Quote:

Originally Posted by macegr (Post 68345)
There are a lot of good programmers out there who just want to get a toolkit and write their code, not fix the toolkit first.

Too right. It also filters out the type of developers who aren't prepared to put up with complicated setups, which possible explains how a lot of software has over complicated setups, or confusing settings!

Khertan 2007-08-17 12:30

Re: clock
 
Quote:

major resource hog though
Yes, too many ...

I want to optimiz it the first time, but i see the source and i think it ll be better to make an other clock app. When my small code editor will be finish i ll create one.

johsua 2007-08-17 12:39

Re: clock
 
---
Why couldn't you just use a javascript clock? Like this:

http://jeans.studentenweb.org/java/javclock.html

or this:

Analog:

http://javascript.about.com/library/blclock5.htm

You could get the javascript, store it locally and put on whatever look and feel you wanted.
----


If you read above you'll see that I am using one. Thanks, though.

http://www.internettablettalk.com/fo...7&postcount=37

tabletrat 2007-08-17 15:21

Re: clock
 
Or if you are connected to the web you could just use something more subtle:

http://www.humanclock.com

Tu13es 2007-08-22 12:26

Re: clock
 
Quote:

Originally Posted by jzencovich (Post 68287)
Wow what was that in your pocket? *whip out tablet* Yeah, it's my cool Internet Tablet ;-)

Sometimes when people ask what I'm fiddling with, I'll hold it up to my ear and say it's my iPhone. All but maybe one or two people are like "Wow, really! Awesome!" Before they realize it's not.

:D

twaelti 2007-08-23 21:41

Re: clock
 
maemoClock: My first application for the N800, my first application in Python

A clock for the N800, including a day/night world map. First internal alpha, main features achieved.

One big thing remaining: How to get rid of the osso.OssoException: Cannot initialize context error? Happens in "osso_c = osso.Context("osso_test_device_on", "0.0.1", False)". Help much appreciated :-)

The standalone osso_test_device_blank_pause.py example from the pymaemo.garage documentation works without problems. Same code in my app gives the error. Oh well.

A first screenshot:
http://tomch.com/wp/wp-content/uploa...lock-alpha.jpg

Khertan 2007-08-24 05:10

Re: clock
 
I ll get a look at your error

EDIT : without source i can t help u.

twaelti 2007-08-24 06:47

Re: clock
 
Quote:

Originally Posted by Khertan (Post 70794)
I ll get a look at your error
EDIT : without source i can t help u.

Thank you for your offer! I'll first have to clean up the code over the weekend - right now, it's in a state I would be too ashamed to send to someone :)

aflegg 2007-08-25 16:27

Re: clock
 
Looks good. Have you tried stracing it or running it overnight on batteries to see what it does to your battery life?

Hopefully, looking at the screenshot it's sleeping for a minute before updating the display...

Edit: duh, it's got a seconds display, so it won't be sleeping long at all. You probably want to remove that, or at least make it not update the display, and sleep for much longer periods when the screen is blanked or the application isn't in the foreground. There are DBUS events for both of these.

pipeline 2007-08-25 18:12

Re: clock
 
sleep for a minute? i think normally that would be bad. I would expect sleep for 1 sec maybe (1000 ms).

Not sure about python but in most languages sleeping for 60 seconds would mean the app would become unresponsive for a whole minute... would look locked up if you tried killing or switching tasks.

Look forward to using your app!

Here are some flash-based clocks you can download and use locally... some are widescreen and some even have alarms and only a few simple ones dont max out the cpu... but they are cool :

http://edmullen.net/fclock.html (flash on nokia is buggy so your likely to crash going -between- pages.. maybe bookmark before you start trying them out... each is stable on its own just when entering/leaving the pages it may crash... must be quirk to n770/800 flash plugin.

Scroll down to the -second- list which points directly to the SWF files then if you like you can save it.

Of those clocks i like these the most :
http://edmullen.net/flash/7a.swf
http://edmullen.net/flash/clock1.swf
http://edmullen.net/flash/clock12.swf

twaelti 2007-08-25 18:40

Re: clock
 
Quote:

Originally Posted by aflegg (Post 71087)
Looks good. Have you tried stracing it or running it overnight on batteries to see what it does to your battery life?
Hopefully, looking at the screenshot it's sleeping for a minute before updating the display...
Edit: duh, it's got a seconds display, so it won't be sleeping long at all. You probably want to remove that, or at least make it not update the display, and sleep for much longer periods when the screen is blanked or the application isn't in the foreground. There are DBUS events for both of these.

Thanks for the feedback. I do indeed plan to remove the seconds display (only makes one nervous :-) I'll try to use whatever is available in the D-Bus stuff for Python - however, I'm still an absolute beginner with the maemo and linux plattform.
BTW: Got the osso.Context running - this stuff needs an initialized main loop first, otherwise it will fail... however, now I'm stuck with a not-yet working repeating call to device.display_blanking_pause(). Step by step...

Tu13es 2007-08-25 19:49

Re: clock
 
Sweet, finally someone making some ground on this!

I do like the earth view, but it would also be nice to enable a full-screen clock, i.e an alarm clock. I envision plugging in my n800 at night to use as my alarm clock so I suppose battery life isn't much of an issue.

If you'd like more feature suggestions, I'd be glad to add some more.

:)

BruceL 2007-08-25 22:01

Re: clock
 
[QUOTE=twaelti;70731]maemoClock: My first application for the N800, my first application in Python

A clock for the N800, including a day/night world map.

Twaelti, COOL! I don't really need a clock, but I want that just because it looks great!

Bruce

HeebieJeebie 2007-09-01 22:25

Re: clock
 
Any more progress on this, twaelti? I've been following this thread with great interest as I would absolutely love to have a full screen clock with large letters to consult in the middle of the night as I am blind as a bat without my glasses and can't read the default applet without fumbling for my specs. :p

Thanks for taking this on!

twaelti 2007-09-03 22:27

Re: clock
 
Quote:

Originally Posted by HeebieJeebie (Post 72706)
Any more progress on this, twaelti? I've been following this thread with great interest as I would absolutely love to have a full screen clock with large letters to consult in the middle of the night as I am blind as a bat without my glasses and can't read the default applet without fumbling for my specs. :p

I've now added a full screen clock for the blind bats ;)
You will be able to switch between the two settings with a touch of the screen (and I experimented with gconf to store/reload this setting between sessions)
Once I get around to build an installer package (a LONG way to go), I will make a beta available.

Khertan 2007-09-04 07:58

Re: clock
 
Instead of store this in gconf, i think it ll be better to store in it in the user home, like many applications. Ex : '/home/user/.maemoclock/conf.conf'
So no dependancy from gconf.

twaelti 2007-09-04 12:09

Re: clock
 
Quote:

Originally Posted by Khertan (Post 73085)
Instead of store this in gconf, i think it ll be better to store in it in the user home, like many applications. Ex : '/home/user/.maemoclock/conf.conf'
So no dependancy from gconf.

I'm not sure about this, as I have virtually no knowledge about Linux/Gnome. However, from reading stuff like The Case for Gconf or Introduction to the GConf library, I thought that using gconf is "the future" :)
(Besides, it was very easy to implement, only took a few minutes....grin)

twaelti 2007-09-12 14:02

Re: clock
 
Alpha preview of mClock now available, see post in the "Packaging" thread.

HeebieJeebie 2007-09-13 00:02

Re: clock
 
Ohboyohboyohboy! On my way to check it out now..... :)


All times are GMT. The time now is 17:35.

vBulletin® Version 3.8.8