![]() |
Re: Flip clock pre pre pre pre release
What you could do, Ciro (btw, my name's Aniello, not Daniel :) ), is to allow for personalization.
You could load an image called "logo.png" into that place and let the user choose whichever they want. By default, put whatever free image as you like, and let people personalize they way they want. I could put in the Maemo logo, someone the penguin mascot and so on... About the power save feature, that is an important thing. When the screen dims down or the tablet goes in "sleep mode" (i.e. the tablet is in low power consumption), and same when it wakes up, it sends out events. Python for Maemo have APIs that let you handle this events accordingly. This allow your application to stop handling refresh events when the tablet's screen is dimmed down and start again (refreshing the application) when it receives the wake up event. Is not that much difficult to develop in. Probably you should start from here: http://maemo.org/development/documen...o_devicestate/ Great application, btw :) |
Re: Flip clock pre pre pre pre release
Quote:
mh the idea to let peope add their own personalization iss not bad but i think is a bit too hard for the casual users without a dialog inside the app. btw, having the logo.png open to customizations could appel some advanced user. Ill take a look to tha link for the power save feature. All the advices on Itt really helped me a lot to speed up things. Great job guys :) |
Re: Flip clock pre pre pre pre release
It's because we were waiting for such an application for ages :)
There was something earlier, but yours is what many were waiting for :p It is there now, just needs to grow and can grow a lot (I am sure). For example: - alarms: more than one, repetitive (choose day, week, whatever), snooze, stop (big buttons), volume, choose mp3 to play, radio station (for n800 users), internet radio station and so on, flashing display when alarm sounds - themes - seconds - flipping animation - user settings - integrated FM/Internet radio tuner ( :-) ) and so on... |
Re: Flip clock pre pre pre pre release
ok, I put down some ideas for the noparty version.
Since Im sharing the app evolution with some folks here seem reasonable U could suggest some interface preferences: I decided to move as much as possible the controls on the 2nd page (the alarm set) and leave the clock as empty as I can. To avoid false annoying switches I plane to do a drag up area for the entire top clock and use all the bottom 100 pixel for stopping the alarm (someone smartly suggested a big area for that) Let me know, Ill be out all the sunday afternoon so the answer could be a bit delayed :) I would love to have a smooth slide up/down effect for the clock part but that for now is out of my capacity. Any suggestion is appreaciate like always :) I also think to keep the bottom part partially transparent to see the user wallpaper trough: anyone know where I can find the hildon user wallpaper file? (I was just thinking to duplicate is on the app level and do my trasnparency experiment on the 'fake' wallpaper. I know, it is a bit confused but Im in a sort of rush :) Buona settimana a tutti https://garage.maemo.org/frs/downloa...5085/005_1.png https://garage.maemo.org/frs/downloa...5086/005_2.png |
Re: Flip clock pre pre pre pre release
...and no, I will probably never give up the MOOD effect...
playing with the LED is FUN |
Re: Flip clock pre pre pre pre release
closed the 0.005 release: the 0.006 will return to have the plastic wood.
No one, any any circumstances, should ever use this release. We are managing pretty heavystuff here :D lights and music. So since crappy programmer + led flashing = big troubles: Im not responsable if someone is going to stress the led and burn something. I warned you people. BE AWARE! https://garage.maemo.org/frs/downloa...oparty.tar.bz2 https://garage.maemo.org/frs/downloa...SShot005_1.jpg https://garage.maemo.org/frs/downloa...SShot005_2.jpg EPILEPSY WARNING READ THIS NOTICE BEFORE YOU OR YOUR CHILD USE ANY VIDEO GAME A very small portion of the population have a condition which may cause them to experience epileptic seizures or have momentary loss of consciousness when viewing certain kinds of flashing lights or patterns that are commonly present in our daily environment. These persons may experience seizures while watching some kinds of television pictures or playing certain video games. Players who have not had any previous seizures may nonetheless have an undetected epileptic condition. If you or anyone in your family has experienced symptoms linked to an epileptic condition (e.g. a seizure or loss of awareness), immediately consult your physician before using any video games. We recommend that parents observe their children while they play video games. If you or your child experience any of the following symptoms: dizziness, altered vision, eye or muscle twitching, involuntary movements, loss of awareness, disorientation, or convulsions, DISCONTINUE USE IMMEDIATELY and consult your physician. As someone noticied some posts ago: because with trademarks and healty things is not matter of sense of humor @ qwerty12: If u dont notice anything too bad feel free to debianize it |
Re: Flip clock pre pre pre pre release
Ok, let skip the version 006 and jump directly to the 007:
Rock solid fast no frill finger friendly FLIP ALARM CLOCK No led this time but great optimization job on the code (it look nearly decent now...) https://garage.maemo.org/frs/downloa...44/fk7.tar.bz2 https://garage.maemo.org/frs/downloa...145/sshot1.jpg (I know the screenshot look exactly like the old but the application is nearly completely new :) ) I guess this is the right balance of features for the final version... Im sure Ill end working on the usual pinataallfeatureson version anyway... |
Re: Flip clock pre pre pre pre release
to have an idea of the features i leaved out i made a clip:
http://www.youtube.com/watch?v=WRMxSStlGxg I feel the led blinkings were cool but maybe a bit too 'risky' for a 'final' version... otherwise the led are very bright and i suppose they could work like a 'backup warning' in case the volume is too low for the ringin sound. |
Re: Flip clock pre pre pre pre release
Looks awesome, I've been following the development thread here for a while as I've really wanted a nice BIG full screen clock that has alarm support for quite some time (ever since my old 1980's "digital alarm clock" kicked the bucket and I decided the tablet made a lot more sense than buying a new clock!). Did you manage to get the power-management code tied into your "Rebuilt" version of the app? For me that's the important one because I want to be able to leave the clock running on the tablet when it's not plugged into AC and not have to worry about the battery dying over night because the tablet hasn't gone into "standby/low power mode"...
Again great work!! Thanks, -Rob |
Re: Flip clock pre pre pre pre release
ciroip,
how difficult is it to make all the top row buttons respond to the alarm ringing - like a real alarm clock. In the form you have it now I can see myself poking blearily and making n810 slide off the bedside and smash on the floor. when the alarmclock is ringing, think of your users as cavemen ;) |
Re: Flip clock pre pre pre pre release
Quote:
Anyway yes, number 1 priority is to make the thing ringin :) |
Re: Flip clock pre pre pre pre release
Quote:
|
Re: Flip clock pre pre pre pre release
Quote:
0.0.4 sat constantly eating 12% CPU when not even in the foreground. It's a lovely looking app, but it needs some smarts (and not even the variety you're talking about ;-)):
If you've started on a rewrite, get this structure in first, and then add features. IMNSHO, this'll help you keep things sane in your head. HTH, Andrew |
Re: Flip clock pre pre pre pre release
@jaffa, i love this kind of comments :). Really help me to keep' the focus on the right things. I have no idea how balance the things... ill try to rebalance the app as much as i can
|
Re: Flip clock pre pre pre pre release
Well, I took a bit of time to see if I could modify ciroip's code to at least implement Jaffa's first suggestion, and this improved CPU usage DRAMATICALLY. The changes are actually pretty simple...
In fk007.py, find the line: Code:
pygame.time.set_timer(DRAW_CLOCK_EVENT, 5000) Code:
ctime = time.ctime() Code:
elif event.type == DRAW_CLOCK_EVENT: Code:
if timesixty == False: |
Re: Flip clock pre pre pre pre release
Quote:
So, although it's an extra call I'd suggest not committing the cardinal sin of premature optimisation until the extra step is a significant part of refreshing the screen/checking the alarm/doing nothing (if screen blank and no alarm set). |
Re: Flip clock pre pre pre pre release
Any .deb's available for install for the all new noParty version with Alarams ?
|
Re: Flip clock pre pre pre pre release
Rather than sleeping as a way of freeing up CPU cycles and checking every minute (I'd also immediately considered drifting and imprecision as issues if this is implemented), is there a way to use a system interrupt based library to run the update code every time the system's clock has incremented the minute? I'm not familiar with programming in python, but I would assume this would mean using a library that deals with the HAL (Hardware Abstraction Layer) interface? This would offload the work from the app and leave it up to the operating system to run the routine as an event.
|
Re: Flip clock pre pre pre pre release
Actually, this seems to make great reference to the technique I'm trying to express:
http://maemo.org/maemo_release_docum...1.x/node6.html The relevant portion is "5.3.1.12 Maemo Alarm Framework" and in a more general way "5.3.4 Application Framework". If the OS can execute the routine to update, rather than having the app running busy the entire time, then it can just simply sit there in memory and just exist to execute on a hardware timer to update the screen and another routine, again called by hardware timer event, to run the alarm routine. Maybe I'm just thinking this way because I did too much assembly programming as a kid. Seems like this would be a really easy thing to write in assembly but I've never looked at anything on writing assembly in ARM and I'd assume this type of functionality had probably already been written into the maemo python libraries somewhere. |
Re: Flip clock pre pre pre pre release
Quote:
Quote:
I think the overhead of context switching and DBUS signals make alarmd unsuitable for the task of updating the clock, every minute, when the app is running. It may be suitable, however, if the alarm should be integrated into the existing alarm system (including the built-in Clock). In that circumstance, it can even "do" the alarm sound and popup, not requiring flip-clock to even be (re-)started. |
Re: Flip clock pre pre pre pre release
Quote:
Code:
def clock_update(): |
Re: Flip clock pre pre pre pre release
Quote:
Simple and effective. :) I love it. |
Re: Flip clock pre pre pre pre release
Quote:
|
Re: Flip clock pre pre pre pre release
Quote:
Code:
ctime = Code:
if timesixty == False: Code:
elif event.type == DRAW_CLOCK_EVENT: Basically the same sort of solution, just a different way of going about it. Second point though... I tried implementing the power notification stuff using the osso module, but seem to have run into the same problems as others found when developing maemoClock, etc: set it all up just before the while True loop like this: Code:
Great app though, awesome work to everyone involved! Thanks, -Rob |
Re: Flip clock pre pre pre pre release
It seem I ll have a really busy weekend catching up all the suggestions and comment of the past 10 days. Time to reach a real computer (I followed the thread using only the N810 for a while) and Ill put my hand in the flipclock muddy code. Before leave for the xmas/newyear break I tried to use the pybattery status as a modules (and showing a progress bar of the status) and it seem working just fine. Again Ill keep the thing as modular as my poor python skill will allow so there should be no problem testing all the different technics proposed on the forum. The thread obviously grown over my aspectative and I can feel the pressure :). It is amazing how a 'simple' application trigged so many great 'spinoff' arguments. I m flattered and before return to work I just want to say thank you to all people who spent time to look at the thing.
Since is 'real'work in progress (Im still not sure if the clock and the alarm works :), and this for a clock/alarm program is probably bad...) I thinked that the app didnt deserve a debianizing (and since I write using shortcuts, tricks, weirdo technics is a pain to try to packagin it everytime (I still have no clue and since now qwerty12 made up all the packagings, and make realize that is not a so simple task. I ll try to release the long promised plain naked optimized version and ask to qwerty12 to do the job and ask to the maemo folks to promote to extra and give to everyone on the thread the credits they deserve and have the satisfaction to see the thing finally in the wild. Peace and love, peace and love |
Re: Flip clock pre pre pre pre release
Glad to hear that you're back on the job there Ciro! Nice to know you got the pybattery stuff going as well, that will certainly make things better! I'd found some suggestions about utilizing the power management/monitoring stuff from Kagu as well; not sure how much they overlap, but the Kagu one seems pretty extensive:
http://kagumedia.com/projects/kagu/b.../kagu/maemo.py Thanks again for this awesome app, looking forward to seeing the full final working version with integrated system alarmd functionality and full power management (lol and maybe a way to exit without having to manually issue a kill command at some point!) |
Re: Flip clock pre pre pre pre release
Quote:
|
Re: Flip clock pre pre pre pre release
Quote:
|
Re: Flip clock pre pre pre pre release
Quote:
I am waiting for someone came up with a comment about the advantages to use the alarmd. My (limited) experience is that the daemon is not really reliable. It hang and there is no easy way to be sure if the thing is running or whatever. My actual approach here is: if the application is running the alarm works, otherwise 'ciccia', no alarm. Maybe Im missing something (im really far from being a linux expert) so, in case noone will showup with something convincing to try to use the alarmd ill keep comparing the alarm variable setted directly from inside the clock. PS Ill think a decent way to kill the app... |
Re: Flip clock pre pre pre pre release
Quote:
- Your app doesn't have to be running for the alarm to occur. You can actaully setup the alarm to launch your app if you want, so that when an alarm goes off the clock app will open if it's not there already. - Alarmd will continue to run and trigger events at all power states of the tablets. This is important as it relates to your power savings features. If you implement proper power savings when the tablet goes into idle (not used), your application should literally stop doing anything so that the tablet can save power; it's awefully difficult to keep checking the time and comparing it to the given alarm schedule though if your app isn't doing anything, so the only way to make it work would be to have your app continue to run at some level, which wastes power. - Alarmd has the added ability to trigger alarms even when the tablet is "off" mode... that is, if you set and alarm and turn the tablet off, put the tablet on charge, the alarm will still execute normally. Good for those times when you have something like a daily alarm, and one night have your tablet off and forget to turn it on... alarm will still run. I'm sure there are other reasons, but from my understanding of it those are the obvious ones. The biggest point, of course, is that whole alarms will still run even if your clock is not. This is a major point. Think of it this way... if you set an alarm, then do some other stuff on the tablet (surfing the web, reading an ebook etc) before going to sleep and forget to switch back to the flipClock, your alarm will never go off! If you implement alarmd functionality then in this same scenario you can make the tablet automatically change to the flipClock app (and even open it if you had closed it before), and handle the alarm as expected. |
Re: Flip clock pre pre pre pre release
Quote:
|
Re: Flip clock pre pre pre pre release
Quote:
Thanks for the great app! |
Re: Flip clock pre pre pre pre release
Quote:
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 |
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.
|
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 |
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.
|
Re: Flip clock pre pre pre pre release
Quote:
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. |
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. |
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 |
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 07:28. |
vBulletin® Version 3.8.8