Notices


Reply
Thread Tools
Munk's Avatar
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#131
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!
 

The Following 2 Users Say Thank You to Munk For This Useful Post:
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#132
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
 

The Following 2 Users Say Thank You to lemmyslender For This Useful Post:
ciroip's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#133
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
__________________
I can't do it. No one can help.
[SIGPIC][/SIGPIC]

Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito
 

The Following 2 Users Say Thank You to ciroip For This Useful Post:
ciroip's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#134
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:
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

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
__________________
I can't do it. No one can help.
[SIGPIC][/SIGPIC]

Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito
 

The Following 6 Users Say Thank You to ciroip For This Useful Post:
danramos's Avatar
Posts: 4,672 | Thanked: 5,455 times | Joined on Jul 2008 @ Springfield, MA, USA
#135
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 Following 2 Users Say Thank You to danramos For This Useful Post:
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#136
Originally Posted by ciroip View Post
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.
 

The Following 2 Users Say Thank You to 412b For This Useful Post:
ciroip's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#137
Originally Posted by 412b View Post
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
__________________
I can't do it. No one can help.
[SIGPIC][/SIGPIC]

Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito

Last edited by ciroip; 2009-01-13 at 15:16.
 

The Following User Says Thank You to ciroip For This Useful Post:
ciroip's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#138
Originally Posted by danramos View Post
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.
__________________
I can't do it. No one can help.
[SIGPIC][/SIGPIC]

Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito
 

The Following User Says Thank You to ciroip For This Useful Post:
Posts: 462 | Thanked: 550 times | Joined on Sep 2008 @ Moscow
#139
Originally Posted by ciroip View Post
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)
 

The Following 2 Users Say Thank You to 412b For This Useful Post:
ciroip's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#140
Originally Posted by 412b View Post
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
__________________
I can't do it. No one can help.
[SIGPIC][/SIGPIC]

Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito
 

The Following User Says Thank You to ciroip For This Useful Post:
Reply

Tags
clock, flip clock

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:56.