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)

jolouis 2009-03-19 12:49

Re: Flip clock pre pre pre pre release
 
Ahh now for the long and dubious task of bug fixing ;o)

Okay, first off since the first round of comments I've updated a lot of the code to resolve the problems that were occuring, namely:
- background image problem that Lemmy reported has been fixed
- deviceState problem that lots of people were running into has been fixed
- the "setting alarm" thing hanging there for a few minutes the first time the app is run has also been fixed (it was being caused by the first time the configuration gets generated having a small bug in it).

One other note, by the way, is that I don't generate the deb from a running copy of the flipclock, it comes only from sources; so the first time you run the app, it will take a longer to load because python has to compile all of the sources into python objects; any time after this the objects are already there so it loads much more quickly.

Now then new bugs that have been reported: Alarm does not go off at the correct time in other timezones (i.e. Germany/Berlin); my bet would be that this is my screw up (I think the code right now subtracts the timezone offset which might not work right on other side of prime meridian... shouldn't be too hard to fix).

ukjeeper - problem may be related to the timezone stuff just mentioned, I will try to resolve that any will release new "bug fixes" version of the app hopefully very soon so that all of these things will be taken care of (and if problem still comes up, try running from x-term and when the app locks up, check the x-term output to see what the last thing the clock tried to do was)

As far as the Dbus/alarmD stuff goes, the biggest problem I ran into was the lack of accurate documentation. I think a lot of people stay away from it/fear it/think it's a piece of junk because they can't figure out how to actually use it, and it's not very forgiving (i.e. if you screw up in passing variables to set the alarm, alarmD will crash because you've caused it to trigger an alarm 90000000 times all on the same second, etc). I've crashed alarmD numerous times during development... but now with the "Release" version, I have never had a single problem with the alarmD stuff, it's all just the coding within the clock app itself that's at fault...

For Ciro (or anyone else who dislikes alarmD stuff or wants to run app on non-tablet) taking the latest version and adding a "local alarm monitor" thing should be very easy; I store all of the actual alarm times/alert sounds/etc in the local .flipclock.conf file, the only thing alarmD stuff does is call a function in the app "triggerAlarm"; you could very easily replace the alarmD stuff with just a simple few if statements in the main loop and produce the same effect without alarmD features... (maybe I'll even add this into the code since it's pretty easy and just put a config var for it or something....)

I'm not sure what "and launching the HUGE 3mb python just for make the thing hopefully playing is a recipe for disaster" that means though... the clock would have to be running anyways, so whether you have it launch automatically, or have to leave it open all the time...?...

nilchak 2009-03-19 13:49

Re: Flip clock pre pre pre pre release
 
I used the new 0.15 version with AlarmD integated into it - and liked it.

Yes the first load is slow and it "seems" as if it has crashed or frozen.
But all subsequent runs are fine - so no issues there.

Alarm worksed fine for me - I set up one Alarm theu Flip Clock and also had another alarm already set thru the Big Statusbar clock up on top.

Both alarms (different times) kicked off at their respective times - so Flip clock works just as fine with AlarD integrated.

One issue that I noticed - I connect the N810 on power all night and have set it to not sleep when connected to power.

On the new Flip clock version I see that the time stays the same - set at 11:54 PM even in the morning and has not changed - untill I touch the screen and then it refreshes to show the current time.

This was not the case with the older version - the time would change as and when I looked at the clock during the night.

So something seems wrong here - if its on powersave mode - then I understand the time will refresh only when the device wakes up - on touching the screen, but on charging mode without any power save enabled - it should refresh the time so that the time on the screen which is visible all times reflects the current time always.

ciroip 2009-03-19 16:58

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 272918)
Ahh now for the long and dubious task of bug fixing ;o)

I'm not sure what "and launching the HUGE 3mb python just for make the thing hopefully playing is a recipe for disaster" that means though... the clock would have to be running anyways, so whether you have it launch automatically, or have to leave it open all the time...?...

Is just the way I use the device: my tablet is pretty always doing something: typically, xchat, a big pdf document, a twitter client, pidgin, the clock...etc Having everything already open dont cause a lot of problems, but having an huge application that will startin in the future in the middle of session is not something I want have to plan when I set an alarm :) otherwise if what Im doing already have to deal with the clock footprint I dont have to worry of something in the future (make sense?).
It is just the way I ended up using the tablet: I still believe the dbus is the right thing for the clock (and these kind of problems will even have less impact with next generation tablet) and for most part of users.
Sorry if it sounded like a critic to your work :)
I think is pretty obvious I dont care too much about OS and integration, but that is just me: I would never had to begin the thing if I had to follow the Maemo Best Practices ;).
I'm usually a 'rule follower' in 'real life': I probably need a way to express myself free from constrictions and just doing what I think is right for myself (and be happy to share with people who want follow my craziness).
Don't feel I have any right to say what you have to do: the application ownership is defined by the number of hours someone spend on and it seem you gained enough credits to do what you think is best :)

Using the Ringo Star words:
Peace and Love, Peace and Love, Peace and Love

talmage 2009-03-19 19:13

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 272320)

I installed this one and it's not working for me. The first time I ran it, I was able to see the alarm page. The application wasn't very responsive and at some point, it displayed a milky white screen. I killed flipclock and restarted it. Then, no matter what I did, I couldn't get the alarm page to come up. The clock kept time and I could turn the night light on and off but that's all. I uninstalled flipclock then reinstalled it. Still no love! I can't get the alarm page to display.

jolouis 2009-03-19 20:52

Re: Flip clock pre pre pre pre release
 
OK guys, we're getting closer here.

Power Management/non-refreshing issue: Fixed:
Thanks nilchak for pointing out the power-on issue, I didn't realize the tablet would leave the screen on (charger attached and display set to always on) but still consider itself in "idle" mode... that's a bit counter-intuitive! Anyways, I integrated the old power management module from Kagu that had been suggested WAYYY back in this thread, and things are now working properly (does not refresh if idle and not charging/AC connected; refreshes if screen is set to always on when AC connected, etc).

Alarms not accurate in other time zones: Fixed:
The problem was indeed my fault, as the documentation for how python handles time zones wasn't as accurate as I had hoped. Anyways, I've gone back, re-adjusted the way things work a bit now, and tested it on my alternate tablet with the timezone set to Berlin/Germany and it now works perfectly, no problems, so hopefully that one is also fixed.

Alarm Screen hanging/not responding on first time: Fixed:
This was caused by a goof in the way Python handled config parsing; I've worked around it shouldn't be a problem anymore (fingers crossed).

Background image not found: Fixed:
As mentioned in previous post, just a quick string replace, I'll try to find a more robust/complete solution later, but it solves the problem at the moment.

Not sure about ukjeeper's odd behaviour there, so haven't been able to address that yet without more information/ability to reproduce it. New deb for updates is:
https://garage.maemo.org/frs/downloa....1.6_armel.deb

The config file format hasn't changed or anything, so you should just be able to do an inline upgrade (i.e. install new deb and it will replace the old stuff, but your alarms and things will still be there)

yukop4 2009-03-20 10:11

Re: Flip clock pre pre pre pre release
 
tried flopcock again

alarm page works once then no more
still wallpaper bug when load

otherwise if you leave alarm out it works beautifully truly

yukop4 2009-03-20 10:13

Re: Flip clock pre pre pre pre release
 
should i remove old config before 1.6 install---????

sds910 2009-03-20 11:53

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by yukop4 (Post 273154)
tried flopcock again

Best. Typo. Ever.
I almost spit coffee all over my screen... :D

yukop4 2009-03-20 11:58

Re: Flip clock pre pre pre pre release
 
what can say -i got bad eyesight

jolouis 2009-03-20 12:47

Re: Flip clock pre pre pre pre release
 
yukop4, you shouldn't have to remove the config file but since you're having so many odd issues, try taking it out and see if that helps. Also,try running the app from x-term (open xterm and just type "flipclock") and let me know what the output that shows up is when the app locks up.
The background image fix that I implemented only resolves spaces that were in the filename, since that was the only problem that was actaully reported. Again if you run from x-term it will print out some debugging information about what background image it is trying to load; please let me know so that I can try and determine the cause of the problem and resolve it.
Has anyone else experienced any of these issues with the 0.1.6 build?

talmage 2009-03-20 15:11

Re: Flip clock pre pre pre pre release
 
I installed 0.16 on top of 0.15 as instructed. It runs but I still can't get the alarm page to display. I tried it without a .flipclock.conf and with an empty one. I even ran it as root. That left a lot of .pyo files in /usr/lib/python2.5/site-packages/flipclock. Alas, none of that gave me an alarm page.

Could this be simple user error on my part? To make the alarm page come up, I press on the box labeled "ALARM SET", right? I've tried that plus most of the physical buttons. No joy. :(

ciroip 2009-03-20 15:16

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by talmage (Post 273221)
Could this be simple user error on my part? To make the alarm page come up, I press on the box labeled "ALARM SET", right? I've tried that plus most of the physical buttons. No joy. :(

tried to slide up with the finger on the clock numbers?

talmage 2009-03-20 17:51

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by ciroip (Post 273222)
tried to slide up with the finger on the clock numbers?

So that's how to do it! Yes, that works. Slide up: alarm page. Slide down: clock page.

What's the rainbow colored box on the lower right corner of the alarm page for?

ciroip 2009-03-20 18:39

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by talmage (Post 273254)
So that's how to do it! Yes, that works. Slide up: alarm page. Slide down: clock page.

What's the rainbow colored box on the lower right corner of the alarm page for?

My favourite feature! the mood change :) it should simple change some graphics to show some colors and activate the relative led color: the thing is suspended now because jolouis is fixing the applications rewriting the spaghetti mess with real code... read back trough the thread and you'll have all the answers you need and check all the application steps: there are some features removed but that could return back in future versions, and some wacky themes.
Pappa time here:
happy weekend

LABAUDIO 2009-03-20 18:43

Re: Flip clock pre pre pre pre release
 
where i can find the old version whit led option on?

ciroip 2009-03-20 18:50

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by LABAUDIO (Post 273284)
where i can find the old version whit led option on?

...at the begin of this thread: 1st post and on garage page: if you have window u can install totalcommander+ deb plugin to open the .deb files or the tar.gz.

Happy weekend and enjoy the experiments :)

jolouis 2009-03-23 18:49

Re: Flip clock pre pre pre pre release
 
For anyone who's looking to install and try out the latest build (still 0.1.6 at the moment), it's now up in the extras-devel repository!

(Yea it's not that exciting, but it does mean that you don't need to install the dependencies by hand... they are now all automatically pulled in!... and yes, I managed to break all of the icons in the packaging, but it's there and it works... icons will be fixed later!)

ciroip 2009-03-23 19:31

Re: Flip clock pre pre pre pre release
 
GREAT! I installed an old version and the application manager just proposed to update the application. It is time to clean up the graphic for a more official release (removing plankton and the blood drip, set a bit the colors, remove the dead mosquito from the 3s) and decide what to do with the 'window mode'.
I would suggest to substitute the slide movement with the proper fullscreen hardware switch (all that slide up and down seem a bit counterintuitive. Ill not touch the application until jolouis will not give me the ok :)
Good job

jolouis 2009-03-23 20:03

Re: Flip clock pre pre pre pre release
 
Hey Ciro,
The code is still in the process of "cleanup", but if you want to clean up the graphics and come up with some new plans or suggestions on the rest of it/how it should work/appear/etc just post them up and I will do my best to roll it all into the application. I think the hardware "fullscreen" swap is a better approach to window mode, as you say; I'd also suggest that the whole "Window mode" should just be the same as the regular clock, but obviously made a little smaller so that it will fit in the window. That way you can leave the clock open in the background/etc and still have the time showing, switch between apps, etc etc.
On top of any graphic changes/tweaks/etc you want to make, please re-do the switches that I added (am/pm, loop/once, etc) as I did not have the proper font/colour to match your stuff... mine are close enough to be ok, but they're not exactly the same so good to clean it all up! I'm just in the middle of implementing the "mood" stuff, so that will be taken care of... is there anything else missing/needs to be changed in terms of functionality? (that way I can spend time working on the coding while you're doing the updated imagery/etc!)

(oh, at some point there are other things that could be added...i.e. ability to change time of snooze, etc... but that might be better to leave for the next "official" version... let's try and get a nice clean polished and working one out there, then focus on adding features/etc after that?)

ciroip 2009-03-23 21:10

Re: Flip clock pre pre pre pre release
 
sound great to me. I would really prefer to promote to extras a refined app and leave extra functions for the future. I thinked you weren't ready for the mood thing. If you will manage to put it there will be a cute touch to make the clock a bit less boring :).
Ill see how crappy the pygame image scaling will work for resizing the clock numbers in the window mode: I have a wacky idea to test... worste case scenario we will use a complete new number set that not have to necessarily be flips (but I think people is still not ready for something too extreme :) )
I suppose we can even remove the window mode at all for this version since the alarms are now indipendent from the clock so is not as vital as before for the app to stay 'on' all the time and users probably already have a clock for the 'desktop'. Having to manage that window and the full screen switching is a pain and there is no reason to rush the things.

LABAUDIO 2009-03-23 21:39

Re: Flip clock pre pre pre pre release
 
i hope you include a DEL option in the next release...all code is there and just need to be passed in the new one release from the first one...woot

jolouis 2009-03-24 01:44

Re: Flip clock pre pre pre pre release
 
Quote:

I would really prefer to promote to extras a refined app and leave extra functions for the future.
Completely agree, just want to have a few cleanups and finishing touches (we're still in extras-devel, so we can make some more changes before promoting to the normal extras repository); all the rest of the crazy changes can wait till the next version...
Yea, nice thing is with the way that the code has been changed around, adding extra things like the mood stuff is dead easy... I've got those "mood highlight" things going on, the last thing to do is bring the LED code back in (lol I spent 10 minutes staring at LABAUDIO's post thinking to myself "What the heck is a DEL option?!?!?") which shouldn't be very hard, though I'll need somebody to do some testing to confirm since I've only got N800's...
Yea let me know what you think about the window thing, as you say it might be worth just leaving it out... though on the other hand, it's terribly annoying to not be able to minimize the clock to switch between things, which is what window mode is really handy for. Anyways, let me know how your experiments go and I'll roll it in accordingly.... LOL yea, I know you have some pretty awesomely crazy design ideas, but that one's waaaay otu there! ;o)

Anyways, I'll let you know how when the LED stuff is rolled in and ready for testing!

wax4213 2009-03-24 02:40

Re: Flip clock pre pre pre pre release
 
Lol, you're better than me jolouis, I never did figure out that DEL = LED.

Good release. Of course I'm looking forward to the future releases with DEL option as well ;)

jolouis 2009-03-24 03:53

Re: Flip clock pre pre pre pre release
 
I'll try to get another "beta build" together for testing tomorrow... changes that I've made:
- Fixed LED support (but don't have an 810, so somebody give it a shot and make sure it does actually work...)
- Added support for hardware 'fullscreen' button to toggle between full screen clock and window mode. Window mode still is pretty pointless, but Ciro's working on that one ;o)
- Added preference setting for mood... so when you exit the app, next time you launch (or it auto launches due to an alarm), your mood setting will still apply.
- Added preference setting for clock mode; same thing as mood, except it determines whether the clock starts in "flip clock" or "Night" mode.

Going to try to squeeze one more sneaky little surprise in there while I wait for Ciro...

LABAUDIO 2009-03-24 03:55

Re: Flip clock pre pre pre pre release
 
LED-DEL
DEL-LED

lol damn

i figure we can change a alarm ring for mp3 as well??
try to root a default monocrome voice of the device for say a morning message

jolouis 2009-03-24 03:58

Re: Flip clock pre pre pre pre release
 
Yea sorry when I had to take the About button out I kind of forgot that there was no longer any explanation on how to use the clock at all! lol You can change the alarm sound for any given alarm by clicking on the big word "Sound" beside the "Loop/Once" button; it will pop up the normal file chooser thing to let you pick a new MP3. You can choose different MP3s for different alarms. Don't pick WAV or anything else though as that will crash it!

LABAUDIO 2009-03-24 04:00

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by LABAUDIO (Post 274072)
LED-DEL
DEL-LED

lol damn

i figure we can change a alarm ring for mp3 as well??
try to root a default monocrome voice of the device for say a morning message

the second is a joke:D

Didge 2009-03-24 06:41

Re: Flip clock pre pre pre pre release
 
ciroip please don't kill Plankton, he is so cute!
My girlfriend and I really like your small details, that make to clock much cuter, like the cracks in the 3 and the different exit-button in night mode. :-)

ciroip 2009-03-24 07:35

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Didge (Post 274097)
ciroip please don't kill Plankton, he is so cute!
My girlfriend and I really like your small details, that make to clock much cuter, like the cracks in the 3 and the different exit-button in night mode. :-)

well jolouis is pushing the app to another level, is time to became mainstream: I have to kill plankton and the blood drip...
But Im sure Ill keep a parallel underground version (dancing 'exit man' when the alarm sound, jumping sheeps...) + is pretty easy to pimp the clock as you prefer just changing the .PNGs (just smash your and your girlfriend pictures on each numbers, tone the 'grays' to 'pinks' and you ll have a cute dynamic picture frame) mh, I suppose could be pretty easy to write a small program that automatically resize the pictures and add the numbers to personalize the clock... mh maybe downloading the pics from flickr...maybe taking the pics from the camera so the tablet can became a chamaleontic flipclock that self integrate in the enviroment... :p.
OK. enough bs for the day: time to go to work.
BTW Thank for the comment: make me happy to know that people notice those small particulars

ciroip 2009-03-24 07:45

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 274071)
I'll try to get another "beta build" together for testing tomorrow... changes that I've made:
- Fixed LED support (but don't have an 810, so somebody give it a shot and make sure it does actually work...)
- Added support for hardware 'fullscreen' button to toggle between full screen clock and window mode. Window mode still is pretty pointless, but Ciro's working on that one ;o)
- Added preference setting for mood... so when you exit the app, next time you launch (or it auto launches due to an alarm), your mood setting will still apply.
- Added preference setting for clock mode; same thing as mood, except it determines whether the clock starts in "flip clock" or "Night" mode.

Going to try to squeeze one more sneaky little surprise in there while I wait for Ciro...

It is amazing to see how many small particulars you have to care about when the goal is to make something as good as possible can be :)
even is is just a simple clock application...

jolouis 2009-03-24 12:53

Re: Flip clock pre pre pre pre release
 
Quote:

well jolouis is pushing the app to another level, is time to became mainstream: I have to kill plankton and the blood drip...
Great now I sound like the evil ogre taking all the fun out of this app! We could always add a "serious/crazy" switch ;o)

As promised the latest Beta build is now up at garage:
https://garage.maemo.org/frs/downloa....1.7_armel.deb
You can just update/install right over the old package, no more conflicts with configs/etc to worry about...
I suggest everyone gives the mood stuff a try to make sure it works; I don't have an N810 to test the LED stuff (or the DEL either! ;o) ) but it should be in there same as what Ciro had before... let me know if that works or not and I can do some tweaking. Preferences for which type of clock you like ("flip" or "night") are now remembered, so that's kind of handy for when you set alarms and close the app... and don't forget to change the mood and check out the "night" clock ;o)

Thanks to everyone for helping support and develop this!

pelago 2009-03-24 13:03

Re: Flip clock pre pre pre pre release
 
Hopefully you will be able to implement themes in a future version, so that there can be a default 'boring' theme, and optional slightly wackier themes. On and please accept my vote for a usable windowed mode. As jolouis says, it is useful when you want to quickly switch to something else. Whenever I use a fullscreen app like Canola, I feel slightly claustrophobic as if I'm stuck in that app, even though I know I can use the hardware switcher button.

Nelson L. Squeeko 2009-03-24 13:40

Re: Flip clock pre pre pre pre release
 
Nice, I like how the Night Light mode colours change based on the mood.

Didge 2009-03-24 14:11

Re: Flip clock pre pre pre pre release
 
That's nice with the new mood-colors + night mode.
One curiosity I noticed, is the alarm area in the main view at the bottom left. It shows the alarm of the current day. It would be nice if you display the next enabled alarm there (incl day name). And also the countdown time (the original alarm clock shocked me each time I set the alarm, how few sleep I get).
But the rest is realy nice now!

Red 2009-03-24 14:23

Re: Flip clock pre pre pre pre release
 
http://img440.imageshack.us/img440/8...reenshot00.png

This is what I see when I try to set things up on my N800. The clock itself and nightmode work wonderfully, but I can't set alarms, the mood, or turn sound on and off. I am sure I'm missing something here. Can anyone point me in the right direction?

jolouis 2009-03-24 14:55

Re: Flip clock pre pre pre pre release
 
Red, that's the "questionably functional" window mode that you're looking at; it's a work in progress that's in the middle of getting re-done... to set alarms and actually make changes to mood/etc go to the main clock view and drag your finger/stylus "up" (alarm controls are "below" the main clock, so you drag up to access them... Ciro's interface idea, I'm just the coding guy! lol)

Quote:

It shows the alarm of the current day. It would be nice if you display the next enabled alarm there (incl day name). And also the countdown time...
Agreed, the only problem I have at the moment is that I couldn't figure out the best way to actually show when the alarm was going to occur... i.e. if it's today, should it be a different colour? or should it show a little date below the alarm time or something? Anyways, shouldn't be too hard to implement/update, we just need to decide on the best way to do it. Oh for anyone wondering there is a little block of text that pops up over top of the clock for a minute when you hit the snooze button... that's kind of a work in progress, it needs to be a bit more obvious/etc.

Red 2009-03-24 15:52

Re: Flip clock pre pre pre pre release
 
I tried that, then realised I was dragging up from the wrong place. Thanks for the prompt response! :D

Finger-trouble for this user!

Everything working just fine and dandy now.

LABAUDIO 2009-03-24 17:50

Re: Flip clock pre pre pre pre release
 
the mood stuff and led work perfectly now...

exept for the white led/color!??

and of course if you exit the flip clock for going on another application...LED shut off

and if i open or close hardware keyboard...the LED shut off too

but globaly is inprove now

and plankton is still here in setting of alarm....nice!!!

LABAUDIO 2009-03-24 21:02

Re: Flip clock pre pre pre pre release
 
ok here an issue i got it

i dont know if its just me or its a real bug

but here it is:

i set alarm for 17:10 at 17:05 whit a good mp3 track of Pink Floyd
i close flip clock
i make a very short dream...
when flip clock open it automaticly for wake up me...the application open...the mood is saving apear but no mp3 play for wake me (all work if the alarm is set it on and flipclock still open) but not there...

any clue???

- and maybe you can save the LED color same as you make for the mood too
yellow LED is selecting when i set my alarm but when the flipclock open automaticly for wake up...no more yellow LED...

-no more blinking LED too when alarm go on...you removed the blinking part?!?

ho and other issue maybe :

when the alarm is set on...and application be close...if the screen dimmer is on....when the flip clock alarm open and popup...the dimmer still on...
maybe make a config for wake up screen fully when the flipclock alarm go on and open automaticly

that all i see for now

but is not a bug i think...

just a couple more tweaking for be SLICKY maybe

ciroip 2009-03-24 21:39

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 274145)
Great now I sound like the evil ogre taking all the fun out of this app! We could always add a "serious/crazy" switch ;o)

bad cop good cop trick...

Quote:

Originally Posted by jolouis (Post 274145)
Thanks to everyone for helping support and develop this!

[/QUOTE]
thanks to you J, every new release 'sell' like water in summer in the desert...


I need more sleep


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

vBulletin® Version 3.8.8