maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Flip clock pre pre pre pre release (https://talk.maemo.org/showthread.php?t=25582)

daperl 2009-01-08 19:08

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 255417)
then once the update has completed the timer is recalculated (that way the wait is accurately calculated again AFTER all potentially time-consuming code has been run).

I agree. Get the next time stamp after the update code and right before the wait/sleep/timer/etc call. In my example I would thus flip the first two statements of my while loop. Good call.

danramos 2009-01-09 09:41

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by ciroip (Post 255448)
You know qwerty12 that you are giving a great service to the project and to the entire nokia tablet scene. My main concerne is not wasting your time and as you noticied all the previous releases were pretty experimental and they didnt 'deserve' the deb. The raw compressed sources release worked fine (and probably even better than the deb for checking the code since everything were at the same place) but it's a joy to see an application packaged with the icon placed int the menu :) So no need to apologize and hope everyone spent some nice holydays.

If you could, please point me to the latest deb so that I can try it out. I'm finding it difficult to follow along and recognize which posting had the latest version (or maybe I just didn't realize there was only the first post?). You might be surprised to know that I've actually had people ask me if this type of application existed long before this thread was started and really didn't have a clear answer.

Thanks for the great app!

ciroip 2009-01-09 13:23

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by danramos (Post 255717)
If you could, please point me to the latest deb so that I can try it out. I'm finding it difficult to follow along and recognize which posting had the latest version (or maybe I just didn't realize there was only the first post?). You might be surprised to know that I've actually had people ask me if this type of application existed long before this thread was started and really didn't have a clear answer.

Thanks for the great app!

I'm sorry to create such a mess releasing schedule. It is my 1st project ever and is a bit hard to stay focus on a stable version ready to be used. + Im more a graphic guy than a programmer so maybe the application could look more complete than actually is (even if it is only a clock+alarm I usually screw up something...) Anyway the holy people at maemo host the project so is possible to keep track of all the releases at
https://garage.maemo.org/frs/?group_id=851&release_id=2290

I wish that page could show a bit more info about each release; Ill probably begin to keep a .log to update each time and see if that help. Ill try to came out with an usable version to be debianized. Again sorry for the confusion and thank you for the comment

danramos 2009-01-09 23:56

Re: Flip clock pre pre pre pre release
 
Garage. **slaps forehead** I didn't even think to look in the obvious place. :) Nono--thank you, all-around! I look forward to trying this app out and very likely suggesting it to people who've been looking around for this.

ciroip 2009-01-10 07:22

Re: Flip clock pre pre pre pre release
 
Ok, the 008 Flip alarm clock should have all the feature I decided to keep for the final version. Now I can spend some time organizing all the suggestion from the forum to optimize the use of the resources.
I introduced the slide up and down gesture to access the alarmset screen and to disarm the alarm. For the battery check I modified the code of Harry Petas and it seem works pretty flawless. I just need to draw the graphic for the charging status since the dbus return a fixed value (-1) when the tablet is connected to the power. Still need to check how access the volume but I decided to suspend the task to focus on the optimization of the resources. I modularized even more the things so now is pretty easy change the 'settings' using the variables in ci_init (to enable/disable the led, the flipping animation and the battery status) so is possible to use/test it on a desktop linux/windows and I suppose mac? (look still fine at full screen on a desktop. Ill try to convince someone to adapt it for a xscreensaver module :)).
I really need to rewrite the alarm routine: now is pretty dumbly connected to the clock refresh and this limit a lot any optimization. Beside the battery drain should be pretty harmless and stable.


https://garage.maemo.org/frs/downloa...2/ico60x60.png
https://garage.maemo.org/frs/downloa...193/sshot1.jpg
Happy weekend

daperl 2009-01-10 18:39

Re: Flip clock pre pre pre pre release
 
Dude, I don't know where or how you're getting these images, but if it's all you; you're scary good. That zombie-green leak-through glow... Scary good. I'm almost afraid of what you're gonna do next. Excellent work.

ciroip 2009-01-10 21:55

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by daperl (Post 256194)
Dude, I don't know where or how you're getting these images, but if it's all you; you're scary good. That zombie-green leak-through glow... Scary good. I'm almost afraid of what you're gonna do next. Excellent work.

lol,thank you daper but once you know the trick everything became pretty dumb :).
I have sort of a graphic experience in my story but 90% of the tricks here came from the amazing program Xara. It have a great antialias algo and is scaryfast + it export the 256 palette optimized image i use for the most part of the graphic and the excellent managing of the trasparent png of pygame do the rest. Xara programmers (uk rulez) have a free (nonopensourrce) linux version of their program (im pretty sure ubuntu have it in some ufficial universe/repository otherwise is possible to dl from their site.
Anyway, next version is nearly complete. I completely divided the alarm part so now i can introduce the 'letmesleep5moreminutes'feature pretty easily. When Ill complete the about page (thinking to introduce a graphic of the battery cycles) and all the credits and thanks ill ask to qwerty12 to help me again with the packaging.

ciroip 2009-01-11 06:01

Re: Flip clock pre pre pre pre release
 
Alarm routine completed. Now it run in its own while loop and let me update the clock each 60 seconds (instead of each second like before). I m sure this solution will raise some exception to the alarm but im too dummy to try to figure out what and where so I decided to just drop the thing on the wild and see what happen. Ill keep studing some more serious solutions but for now this is what I am able to put up :).
This should be the 1st really usable release, it show the percentage of the battery level all the time (another reason to keep the application running all the time :D. I should not be too difficult to keep a variable to store an entire day of battery history (something like 720 ticks per day (a sample each 2 minutes) to populate the graph space I prepared on the about screen and it should fit well on the 800 pixel of the tablet.
https://garage.maemo.org/frs/downloa...98/fk9.tar.bz2
https://garage.maemo.org/frs/downloa...sshot009_1.jpg
https://garage.maemo.org/frs/downloa.../changelog.txt
I know, the leds could become really annoying but I can't force myself to remove the feature. In case just changing the
sw_led variable to 1 in ci_init.py should be enough to disable the 'spettring'.
There is a lot of free space on the about screen so if someone want his name there can drop a line here to say if the alarm have any issue on a long term (more than a couple of hours) use.
The clock still keep working even when is in background since I didnt found the OS call to interrogate and save some resource anyway I really like the idea to keep updating the battery things so even without any alarm set the application have always have something to do at least each 2 minutes.
I think that's all for the day.
Buonanotte a tutti e buona domenica.

Faz 2009-01-11 09:33

Re: Flip clock pre pre pre pre release
 
Good morning ciroip!

Thank you for all the time and energy you've put into this project!! It is most definitely appreciated!!!
It's been interesting to follow, although not being a developer I have to admit in skipping the high geek factor stuff! :rolleyes:

I've just downloaded fk9.tar.bz2 and after extraction I'm executing using the command "python fk009.py" successfully launching "Flip Alarm Clock 0.008" ...8? ;)

Nice battery meter, working as expected.
Liking the use of the LED too! First time I've ever seen my N810's LED turn purple!! :D

albright 2009-01-11 14:15

Re: Flip clock pre pre pre pre release
 
I can start flipclock with the python command in
xterm and it runs, but nothing happens when I push the
set alarm button. Is there some trick to this?


All times are GMT. The time now is 09:02.

vBulletin® Version 3.8.8