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)

Munk 2009-01-12 02:17

Re: Flip clock pre pre pre pre release
 
Ciroip, your alarm clock is certainly coming along and is getting very good! I think the we are no longer at "pre pre pre pre release" and more just at "pre release". ;)

Boy, I wish I just threw enough time at my programming project too. You don't give yourself enough credit as it's really not that bad of code. Your strength is the incredible graphics that you create and that you don't give up.

Good work Ciroip!

lemmyslender 2009-01-12 13:39

Re: Flip clock pre pre pre pre release
 
ciroip-

Thanks for the help. I set led=0 first, that worked. I have an N800, so maybe that makes a difference.

I thought that maybe I was missing something, the last part of the trace seems to indicate that a file was missing (/sys/devices/platform/i2c_omap.2/i2c-0/0-0032) called from ci_alarm.py.

I had tried to edit that line out figuring that it would just not write/read a value to/from that file, but that gave other errors (about expected indents?).

I assume now that the file in question has to do with the led. Version 9 works like a charm now.

One other issue for you to consider: I set it up to launch from Personal Menu, however it fails to find the data folder and errors out. It appears to assume that it is being launched from inside the fk9 folder. I simply made a sym link in /home/user to the data folder and it works fine after that. Again, perhaps a problem with the way I'm launching it.

Thanks again for all your hard work.

Len

ciroip 2009-01-12 14:12

Re: Flip clock pre pre pre pre release
 
Len: I suspect the expected indent is the typical python trap/joy. Python DEMAND a perfect 'alignment' of each line (indentation). Thar probably caused the error. Anyway removing/commenting that line will probably make the clock works but for sure will not trig any led event (the line is the very point of setting the os call for the led :) ).
Yes, the application now look for the data folder; Iprepared the application with 2different 'path' variables (to make easier the packagin and the testing at same time). If you want try and feel adventurus you can try to touch thar (in the usual ci_init) and copy the data content there, or I maybe using an absolute path for the data in relation to your files positions: something like /media/mmc1/fk009/data/ in case of the external memory card on the 810. Anyway I suppose a new .deb version should be on the way

ciroip 2009-01-12 17:25

Re: Flip clock pre pre pre pre release
 
wow, reading back my last post I realize how suck in 'explanation skill'.
Anyway Im still working on the ESD sound thing juicing resources all the time. If someone have any suggestions because I cant really figure it out why :) (maybe is just how pygame works?) Should I look for an alternative way to play the alarmsound?
Meanwhile I tried to make someting up for the qole idea:
Quote:

Of course, when I see this, I immediately think of other retro ideas for full-screen clocks. For instance, how about nixie tubes...
I liked the idea to use the nixie trasparencies with the background (Im still thinking to add the slideshow feature or at least to integrate the user wallpaper with the clock background
https://garage.maemo.org/frs/downloa...clocknixie.png
Note: The background pic is not mine,(and sadly I dont know the author's name) is just an example of how a bitmap could works with the clock

danramos 2009-01-13 08:50

Re: Flip clock pre pre pre pre release
 
I also noticed a bug: If I use the HOME key to go to my desktop, there's no way to get back to the clock--there isn't a task bar icon to tap on to go back to it.

I also ran into the same LED error mentioned earlier--and commenting out the LED option made it work for me as well.

I'm also finding it very, very difficult to manage to get into alarm setting and alarm disabling modes with the finger-fu moves (that sleepy sliding finger thingy). (I personally would prefer a hardware key mapping for this--something that can't be done by mistake like finger-fu would allow.)

Thanks, though! This is certainly a great work in progress!! :)

412b 2009-01-13 14:14

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by ciroip (Post 256870)
wow, reading back my last post I realize how suck in 'explanation skill'.
Anyway Im still working on the ESD sound thing juicing resources all the time. If someone have any suggestions because I cant really figure it out why :) (maybe is just how pygame works?) Should I look for an alternative way to play the alarmsound?

Yep. Sound playing in pygame is crappy. I tried to use it, but cpu consumption is just enormous for that little thing.
You can just use
Code:

hildon.hildon_play_system_sound(absolute_path_to_the_sound_file)
I'm not sure if it can play files other than WAV (no time and too lazy).
The other way, if you need to play other formats, could be using OSD, MPlayer, other player, but it seems to be a bit heavy.

ciroip 2009-01-13 14:47

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by 412b (Post 257216)
Yep. Sound playing in pygame is crappy. I tried to use it, but cpu consumption is just enormous for that little thing.
You can just use
Code:

hildon.hildon_play_system_sound(absolute_path_to_the_sound_file)
I'm not sure if it can play files other than WAV (no time and too lazy).
The other way, if you need to play other formats, could be using OSD, MPlayer, other player, but it seems to be a bit heavy.

well,I didnt want to sound to harsh with pygame (that seem pretty decent otherwise). qwerty12 already suggested me to use that hildon call (on #maemo, it seem the guy know pretty everything going on on the nokiatablet and Im getting bored to keep thank him) but I was not able to have anything playing :( (and yes I imported hildon).
Im agree any other solution I checked just fall under the overkilling umbrella categopry. If you confirm the possibility to call it from python Ill keep sniffing this road.
(I think in theory it should works even from the python 'commandline' >>>)

Thank you

ciroip 2009-01-13 15:41

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by danramos (Post 257150)
I also noticed a bug: If I use the HOME key to go to my desktop, there's no way to get back to the clock--there isn't a task bar icon to tap on to go back to it.

I also ran into the same LED error mentioned earlier--and commenting out the LED option made it work for me as well.

I'm also finding it very, very difficult to manage to get into alarm setting and alarm disabling modes with the finger-fu moves (that sleepy sliding finger thingy). (I personally would prefer a hardware key mapping for this--something that can't be done by mistake like finger-fu would allow.)

Thanks, though! This is certainly a great work in progress!! :)

The point is that the application don't have an icon :) (to be more precise the icons are not in the right place) I think a workaround (until next .deb) is to install at least one of previous .deb from the garage:
https://garage.maemo.org/frs/?group_...elease_id=2338
but maybe is just safer to just wait a bit (since all the version till now are battery hungry) and installing old .deb will dirt a bit the tablet with some .png that are not going to be used again)
Ill ask to someone smarter than me why should be so difficult to for an app to write that OS flag for the led, I sure dont want have a .deb that make people lose time for my fault (I guess I can do a check at the init and make the led configuration trasparent to the user.
If you are following a bit the different versions you noticied the app keep changing a lot, I sometime make some REALLY irrationals and !intuitive decisions and I need people to kick me in the right directions... and anyway the point of so many versions is that people can test different directions. The final version will probably have the hardware buttons support (sound pretty natural for a full screen app) but I still have to check how they works (Ill probably use the pygame events because everytime I use the OS services it seem there is something wrong popping up :( ) and be sure will work on the 770/800 whatever is out there.

412b 2009-01-13 16:01

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by ciroip (Post 257221)
If you confirm the possibility to call it from python Ill keep sniffing this road.

Well, it's already working in my Advanced Power (aka pybattery) ;)

ciroip 2009-01-13 18:32

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by 412b (Post 257243)
Well, it's already working in my Advanced Power (aka pybattery) ;)

Thanks, I was looking for a piece of real code using that call but google suck when one have the need to discriminate 1 single line difference between billions of files...
So I can check what is wrong with my n810 :)


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

vBulletin® Version 3.8.8