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)

albright 2009-01-11 14:29

Re: Flip clock pre pre pre pre release
 
oh .. I also notice that when flipclock is running
the sound demon (esd) is constantly taking up
2-3%cpu, so this thing will eat the battery pretty
ferociously I suspect

ciroip 2009-01-11 15:02

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by albright (Post 256449)
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?

yes, i know that the allarm button look exactly like the other but it work differently.
The alarm control is a slide button (I will try to have a working real drag button for the final version. So to make the thing works u need to move from left to right and from right to left to act/deact the alarm. Ill probably introduce a 20 pixel tollerance to avoid false clicking. I used the same technic for the alarm 'wheels' and on the main page (a slide up of at least 50pix) to acces the alarm page.

ciroip 2009-01-11 15:14

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by albright (Post 256455)
oh .. I also notice that when flipclock is running
the sound demon (esd) is constantly taking up
2-3%cpu, so this thing will eat the battery pretty
ferociously I suspect

GREAT!! I mean, crap. I noticied the esd thing but i wasnt sure it was caused by the flipclock (I have filled the tablet with tons of things and the situation is not completely under control) I dont know what exactly pygame do behind the curtains (it seem a really good job managing the graphics) and i suppose I have to initialize and kill the sound module just when I need it. worste case scenario Ill switch to another way to make some noise; Im just worried to not add another dependence to already overkilling python+pygame. (if only canola would release their code...)
You just won a place in the about page :)

ciroip 2009-01-11 15:46

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Faz (Post 256392)
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

Well my problem is that im very passionate on things for few weeks and then the excitment curve drop drammaticaly (thats probably why im without a job :o ) the fast and smart feedbacks from the forum really help things to stay alive. I know the unpacking/launching is a pain but this let me free to put the weirdest things out and dont have to feel guilty of wreking any 'occasional' tablet user experience (+ I have no Idea how make a deb and most of the time Im on a window desktop)
Don't be scared to look and modify the code. Im not a (python) programmer so is pretty neat (neat <> optimized). Some parts are completely black holes and I have no idea how they works ( led, battery access etc) but they are usually well separated in their own ghetto modules. A big plus is that you can probably learn some italian curses I usually 'forget' to remove from the comments.
I agree is a pretty fun ride to follow the app growing (but after 2 hours probably even the funniest rollercoaster became boring.
I knew touching the led is a bit risky but drunkier you are cooler they became so f the power saving and pump up the lights, (I kept the led partially dimmed on red all the time to make the tablet visible in the dark (is or not an alarm clock?) I will probably set the led to stay on only when the charger is connected.
note to myself: add faz to the about page

albright 2009-01-11 17:05

Re: Flip clock pre pre pre pre release
 
Quote:

The alarm control is a slide button
I get it - everything is controllable by sleepy fingers - that's
good for alarm clock! Great application even if still in
progress.

ciroip 2009-01-11 19:47

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by albright (Post 256501)
I get it - everything is controllable by sleepy fingers
progress.

lol, I like how 'sleepy finger' sound

wax4213 2009-01-11 23:39

Re: Flip clock pre pre pre pre release
 
This program will take care of one of the extremely basic tasks that a product such as the NITs should ship with. The built in clock utility does function, but it's not very readable or attractive. The thing that annoys me the most about it though is not being able to set alarms to go off on certain days every week (eg every monday at 7:30, tuesdays at 8:30, etc.). This would be extremely handy for me because as a student, I don't have class at the same time every morning and I always want to sleep in as late as I can :p

So I guess this is my way of requesting a feature ^^ Thanks for all your hard work on this! It's looking great so far, miles and miles beyond the current clock app

lemmyslender 2009-01-12 01:22

Re: Flip clock pre pre pre pre release
 
Very cool little app. I like the idea of it. Installed the deb for version 4, after I couldn't figure out how to get 8 to run. I really wanted to see what 8 looked like, so I did a little searching and figured it out.

xterm cd to the fk008 dir, issue python2.5 fk008.py command. It errored out. fk007,worked just fine. Saw that 9 was up, tried it, same error as 8. Do I need something else installed?


Error as follows:

Traceback (most recent call last):
File "fk009.py", line 28, in <module>
ci_gfx.init_clock()
File "/media/mmc1/fk9/ci_gfx.py", line 19, in init_clock
drawclock()
File "/media/mmc1/fk9/ci_gfx.py", line 42, in drawclock drawmood() #Draw the mood lights
File "/media/mmc1/fk9/ci_gfx.py", line 87, in drawmood
if ci.tablet: ci_alarm.led ()
File "/media/mmc1/fk9/ci_alarm.py", line 52, in led
set_mode("direct")
File "/media/mmc1/fk9/ci_alarm.py", line 60, in set_mode
FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/mode","w")
IOError: [Errno 2] No such file or directory: '/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/mode'
/media/mmc1/fk9 $

Thanks, Len

ciroip 2009-01-12 01:56

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by wax4213 (Post 256629)
This program will take care of one of the extremely basic tasks that a product such as the NITs should ship with. The built in clock utility does function, but it's not very readable or attractive. The thing that annoys me the most about it though is not being able to set alarms to go off on certain days every week (eg every monday at 7:30, tuesdays at 8:30, etc.). This would be extremely handy for me because as a student, I don't have class at the same time every morning and I always want to sleep in as late as I can :p

So I guess this is my way of requesting a feature ^^ Thanks for all your hard work on this! It's looking great so far, miles and miles beyond the current clock app

Well this seem one of that cases where the obvious is in front of everyone and noone seem care about :). It felt natural for me this kind of use of the tablet (simplest alarm clock possible), I looked around and seemed noother noticied and I made it the crappy version we have now (ok, the graphics resulted pretty, but the code... Could God Ever Forgive Me).
The week scheduling alarm idea sound brilliant to me and seem pretty easy to do on paper.
My only concerce is to keep simple and 'sleepyfinger (cit.)' friendly the setting of 7 different days...
Maybe I could use the tablet ability to recognize even a stylus other than only fingers (...) and keep strinking all the 7 days on the same 'page'...
Ill see what ill be able to cook and having that feature done before you graduate

ciroip 2009-01-12 02:07

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by lemmyslender (Post 256646)
Very cool little app. I like the idea of it. Installed the deb for version 4, after I couldn't figure out how to get 8 to run. I really wanted to see what 8 looked like, so I did a little searching and figured it out.

xterm cd to the fk008 dir, issue python2.5 fk008.py command. It errored out. fk007,worked just fine. Saw that 9 was up, tried it, same error as 8. Do I need something else installed?


Error as follows:

Traceback (most recent call last):
File "fk009.py", line 28, in <module>
ci_gfx.init_clock()
File "/media/mmc1/fk9/ci_gfx.py", line 19, in init_clock
drawclock()
File "/media/mmc1/fk9/ci_gfx.py", line 42, in drawclock drawmood() #Draw the mood lights
File "/media/mmc1/fk9/ci_gfx.py", line 87, in drawmood
if ci.tablet: ci_alarm.led ()
File "/media/mmc1/fk9/ci_alarm.py", line 52, in led
set_mode("direct")
File "/media/mmc1/fk9/ci_alarm.py", line 60, in set_mode
FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/mode","w")
IOError: [Errno 2] No such file or directory: '/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/mode'
/media/mmc1/fk9 $

Thanks, Len

I have no idea what going on there :). I always test the things on the nokia itself (I pratically write the junk directly on the tablet...) and I always 'work' as ROOT. I think the 008 was the 1st version to have enabled the led things so maybe before that the application never had the need to access that OS stuff (do you really believe I understand what happen?) If u REALLY want be able to try the different versions u should try to touch (edit with a text editor :) ) the ci_init.py file and disable the extra features (sw_led=0, animation=0...) and see what happen...
Sorry I could not help more


All times are GMT. The time now is 07:27.

vBulletin® Version 3.8.8