maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   FlipClock Beta (https://talk.maemo.org/showthread.php?t=32832)

esaym 2009-12-11 13:49

Re: FlipClock Beta
 
Ok I ran flipclock from a console last night. Alarm went off fine this morning. I hit snooze. I think it went off again (can't remember) and then I hit snooze again and it never went back off. It was sitting at the turn alarm off/snooze screen when I finally woke up. I piped stdout to a file but I noticed that I did get one error on stderr:
http://www.copypastecode.com/17489/

Do the sound files only loop a max of 5 times? If that is true, I guess it is possible that I could have shamefully slept through all 5 loops.. Tomorrow I will try again and instead of going back to sleep after pressing snooze, I will get up and wait and see if it does actually go off.

jolouis 2009-12-11 17:16

Re: FlipClock Beta
 
Quote:

Originally Posted by esaym (Post 422761)
Do the sound files only loop a max of 5 times? If that is true, I guess it is possible that I could have shamefully slept through all 5 loops..

I did some checking through the code and it turns out that I had a "max of 5 loops" statement in the looping function because I was trying to troubleshoot the "no sound" problem a while ago and it locking up with infinite loops if the sound couldn't be played! (lol I opened up the source file and saw a counter variable called "bahbah" and thought to myself "What the heck is that?!?!?" lol) Needless to say that wasn't supposed to be in the release, and is probably the cause of your problem! I'll eliminate that when I implement the default alarm sound thing as qole suggested.

Sorry about that! Thanks for pointing it out though, I might have forgotten about it!

白い熊 2009-12-12 12:00

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 417027)
Right now Flip is still having some issues with working fully on N900 (it crashes sometimes apparently), but any feedback you can give will help me fix it as I don't have a N900 to test with!

Hey :O)
No pun intended, and no offense, but it doesn't work at all on the N900, as said above, it'll crash everytime a redraw is done, like when the minute changes. So currently is unuseable on the N900.

Quote:

Okay awesome feedback thanks! Let me do some playing around in the SDK here and see if I can reproduce it! With the "every minute segfaults", is that when in Night mode, or just any mode?
It's in day mode, basically when the minute is up, and I assume the minute flip animation is to take place, that's where the above error occurs.

I don't know if it does it in night mode, as it can't be switched to nightmode currently, as it also segfaults when switching to nightmode as said above.

If there's anything you need me to test on the N900 etc in order to fix these issues, go ahead, say so, and I'll get it done.

jolouis 2009-12-15 18:54

Re: FlipClock Beta
 
Okay everyone it's been a bit busier that I'd thought but finally I've gotten to another release point:

For Maemo 4.x
https://garage.maemo.org/frs/downloa....9.7_armel.deb

and Maemo 5
https://garage.maemo.org/frs/downloa...ntle_armel.deb

I still have no idea if the Maemo5 version will even run without crashing almost immediately (thanks for pointing that out and offering to help 白い熊) but I've posted in the hope that maybe something I've changed lately will help. The thing still runs perfectly on my Maemo5 SDK, on Maemo4, and on every other Linux machine I've thrown it at so far, so until I can come up with some reason that it's different it's a trial and error thing...

A word of warning! Updating will clear your previous alarms! So make sure you know what they are/were first!

Anyways on to the goodies: Here's what's new/changed/exciting in this release:
  • Snooze Slider Snooze time can now be set to any number of minutes you want between 1 and 59 using the slider interface. If you want to disable snooze, just set it to 0.
  • UI graphics tweaks I've tweaked the defaultFlip graphics some more as per requests and just gerenally. The buttons are now consistent and with black text. The mood colouring works much better. A few other little tweaks here and there. Unless there are major complains this is probably the final version of the main Flip theme. The night theme, of course, needs a lot of work... but that's a different story.
  • Timer Since I started it and there was talk about it a while ago I finished it up... there's a basic "timer mode" that you can get to by dragging from the left side of the screen towards the right (opposite motion returns you to normal clock display). The "Reset" doesn't quite work properly, and I'm sure there will be a lot of comments saying "thats okay but it really is useless/out of place", so I'll probably ditch it, but at least it's there as a proof of concept for now...
  • Playlist folders Okay now to make up for that timer stuff... for each alarm, there's now a third "alert mode" option... "Folder". Click on the chooser icon, and it will let you select a folder instead of a single file. Then, choose "Random" or "Fixed", and you're good to go. When the alarm occurs, the first file in that folder will be played... when the file finishes (if the alarm hasn't been stopped/snoozed), the next file will play, etc. The files continue to play until you stop the alarm (so file1, file2, file3, file1, file2, etc). If you're on "random" then a random file will be choose each time instead of just the next one. Note that the random function is very basic and I make no promises about how "random" it will really be!. Also, while in this mode... if you hit snooze, the next time the alarm plays, the NEXT song will be played...
  • Bug fixes Eliminated the "5 times looped and no more sound" problem, a few minor memory issues, and some other little tweaks.

    As always thanks everyone! Enjoy and give me feedback! I'm trying to hit an "official" release fairly soon!

白い熊 2009-12-15 19:56

Re: FlipClock Beta
 
On the N900 segfaults with the same error.

I watch the second triangle approach sixty, when it's at 58 seconds, I guess that's when the minute flip starts, it fails with the above mentioned segfault.

No change in behavior:(

Den in USA 2009-12-15 20:18

Re: FlipClock Beta
 
Jolouis, the Main Flip Theme is PERFECT, thanks!!!!!

Den in USA 2009-12-15 20:40

Re: FlipClock Beta
 
Jolouis, I have an alarm set problem. When it is 12:30pm, and I set an alarm for 12:45pm ( for 15 minutes from now ) in the main clock display it shows that the alarm is set to go off the next day at 12:45am. If I set the alarm for 1:00pm it will go off in 30 minutes like it should.

jolouis 2009-12-16 17:53

Re: FlipClock Beta
 
Quote:

Originally Posted by Den in USA (Post 429504)
Jolouis, I have an alarm set problem. When it is 12:30pm, and I set an alarm for 12:45pm ( for 15 minutes from now ) in the main clock display it shows that the alarm is set to go off the next day at 12:45am. If I set the alarm for 1:00pm it will go off in 30 minutes like it should.

Fixed, I had a < than instead of <= thanks for pointing it out. I still have some concerns over the stability of audio playback (had the nice fortune of having my alarm this morning play a few songs that I seem to have slept through, then lockup completely)... I never did get a bad MP3 sent over my way, but maybe if I keep at it I'll find one of my own that causes the problem...

Den in USA 2009-12-16 20:00

Re: FlipClock Beta
 
Jolouis, maybe a refinement on the default folder that contains our sound files. In the "Set Alarms" screen, "Mode" is set for "Sound", "Loop" is enabled, and I have already selected "Song.mp3" from the "Sounds" folder on my external memory card. Once I do this, it should remember that default folder so everytime I click on "Alarm Sound" the contents of that folder is displayed. Many times it reverts back to the internal flash which is where our applications are stored.

esaym 2009-12-16 21:47

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 429355)
Okay everyone it's been a bit busier that I'd thought but finally I've gotten to another release point:

For Maemo 4.x
https://garage.maemo.org/frs/downloa....9.7_armel.deb

and Maemo 5
https://garage.maemo.org/frs/downloa...ntle_armel.deb

Awesome!

I noticed you forgot to seed the random number generator, so although the tracks are chosen at random, you get the same tracks every time flip clock starts.
Perhaps adding this somewhere:

#include <time.h>

srand( (unsigned)time(NULL) );

:D

jolouis 2009-12-16 22:08

Re: FlipClock Beta
 
Quote:

Jolouis, maybe a refinement on the default folder that contains our sound files. In the "Set Alarms" screen, "Mode" is set for "Sound", "Loop" is enabled, and I have already selected "Song.mp3" from the "Sounds" folder on my external memory card. Once I do this, it should remember that default folder so everytime I click on "Alarm Sound" the contents of that folder is displayed. Many times it reverts back to the internal flash which is where our applications are stored.
Once you've selected a sound, if you go to change that sound it will already be pointing at the folder that contained the previous sound file. The only time it will revert to the "default folder" is if no sound was previously selected. I guess I could tweak it so that if the current alarm doesn't have a sound associated with it, when you browse for a file it reverts to the directory of an alarm that does have a sound file... it might seem a bit strange if your files are all over the place, but okay I can do that..

Quote:

I noticed you forgot to seed the random number generator, so although the tracks are chosen at random, you get the same tracks every time flip clock starts.
Perhaps adding this somewhere:

#include <time.h>

srand( (unsigned)time(NULL) );
Yea thanks! I noticed that this morning when I did some more testing and had added the code you posted above immediately before the random call so that it's always "more random"! ;-)

esaym 2009-12-17 15:52

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 430717)
I still have some concerns over the stability of audio playback (had the nice fortune of having my alarm this morning play a few songs that I seem to have slept through, then lockup completely)... I never did get a bad MP3 sent over my way, but maybe if I keep at it I'll find one of my own that causes the problem...

Yes this has happened to me. Playing/testing flipclock always seems to go fine but twice now I have woken up to flipclock being lockup and having to be forcefully shutdown.

Den in USA 2009-12-17 19:28

Re: FlipClock Beta
 
Quote:

Originally Posted by esaym (Post 432033)
Yes this has happened to me. Playing/testing flipclock always seems to go fine but twice now I have woken up to flipclock being lockup and having to be forcefully shutdown.

Same thing here, locking up when I use the alarm.

jolouis 2009-12-17 21:21

Re: FlipClock Beta
 
Quote:

Originally Posted by Den in USA (Post 432322)
Same thing here, locking up when I use the alarm.

I've had the same problem two days in a row now so I decided to sit down and test it today... and after 12 tries of various attempts to reproduce the problem I can't do it! Damn... I know it's going to happen again tomorrow though... if anyone can figure out what stage of the game thigns are at when they lock up/crash I'd greatly appreciate it so I can find a way of reproducing the issue consistently in order to troubleshoot/fix it!

Den in USA 2009-12-18 06:52

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 432483)
I've had the same problem two days in a row now so I decided to sit down and test it today... and after 12 tries of various attempts to reproduce the problem I can't do it! Damn... I know it's going to happen again tomorrow though... if anyone can figure out what stage of the game thigns are at when they lock up/crash I'd greatly appreciate it so I can find a way of reproducing the issue consistently in order to troubleshoot/fix it!

Jolouis, both times that FlipClock locked up was just after the music (mp3 file) begain to play. I noticed that there were black rectangles on the main clock screen as if an email alert was trying to be displayed during the alarm or else some other message like "Unable to connect to one or more accounts" was trying to be displayed.

More detail:
My alarm was set to go off at 8:00am.
In "Alarms Set" screen Mode = "sound", set for "loop", snooze=off.
FlipClock was not even running, not minimized. It runs when there is an alarm condition.

jolouis 2009-12-18 18:48

Re: FlipClock Beta
 
Quote:

Originally Posted by Den in USA (Post 432979)
Jolouis, both times that FlipClock locked up was just after the music (mp3 file) begain to play. I noticed that there were black rectangles on the main clock screen as if an email alert was trying to be displayed during the alarm or else some other message like "Unable to connect to one or more accounts" was trying to be displayed.

More detail:
My alarm was set to go off at 8:00am.
In "Alarms Set" screen Mode = "sound", set for "loop", snooze=off.
FlipClock was not even running, not minimized. It runs when there is an alarm condition.

I think it's to do with the looping code... although why I've run into it I'm not sure, but it's definitely a gstreamer odd ball problem. I've made some changes in the SVN here to try and solve it and will let you know after I test it over the weekend. In the mean time, try it with the "loop" option turned off (i.e. set to "once") and see if that solves the locking up problem.

Thanks!

Den in USA 2009-12-20 04:36

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 433728)
I think it's has to do with the looping code... , try it with the "loop" option turned off (i.e. set to "once") and see if that solves the locking up problem.

Thanks!

Thanks, Jolouis, I will not select "loop" and see if it helps.

白い熊 2009-12-20 10:00

Re: FlipClock Beta
 
Quote:

Originally Posted by 白い熊 (Post 429453)
On the N900 segfaults with the same error.

I watch the second triangle approach sixty, when it's at 58 seconds, I guess that's when the minute flip starts, it fails with the above mentioned segfault.

Is there some way to debug why it's failing? I thought maybe some images or whatever missing, as when the minute change animation is coming up it segfaults...

Den in USA 2009-12-20 16:42

Re: FlipClock Beta
 
Jolouis, it seems that since I turned "loop" off the alarm volume no longer slowly increases, it works fine with "loop" on.

sampieter 2010-01-03 16:36

Re: FlipClock Beta
 
I installed 0.9.7 yesterday and it works great. The main theme is, indeed, as good as perfect now.

All the best wishes to everyone for this new year, 2010 !

Reuna 2010-01-06 18:08

Re: FlipClock Beta
 
Quote:

Originally Posted by 白い熊 (Post 435154)
Is there some way to debug why it's failing? I thought maybe some images or whatever missing, as when the minute change animation is coming up it segfaults...

same problem in my n900 (latest version)

jolouis 2010-01-06 21:39

Re: FlipClock Beta
 
Happy New Year everyone! I'd hoped to get more done on Flip over the holiday break than I actually did, but I did manage to resolve a few minor issues (I think I've got the audio stuff sorted out a bit more finally, but I want to do some really vigorous testing first).

I've also been hard at work building a new (quite different) theme now that the main one is pretty much set (and I needed another complete theme before I could start working on the theme browser!). I won't have things as completed as I'd liked to, but maybe in the next few days if I get some time to finish it up I'll throw together a little "preview package" so you can try it out.

Also for the Maemo 5/N900 people out there, a fellow coder/developer buddy of mine managed to get himself an N900 over the holidays so I'm going to see if I can convince him to drop by and help me do some troubleshooting/debugging to get this up and running on there for you!

Thanks!

Den in USA 2010-01-06 21:49

Re: FlipClock Beta
 
Jolouis, when you get to working on the Night Theme, I noticed that there is no "am/pm" indicator. Thanks!

bazz 2010-01-12 02:49

Re: FlipClock Beta
 
Not sure if this can do this or how hard this would be, but ....

I was looking at the description of FlipClock and thinking it be cool to have it as an alarm clock. I was thinking maybe it could make use of something like camkeyd to turn off the alarm, and perhaps use the zoom keys for a snooze. (Thinking if you push zoom one way it could give you five minutes, and if you push it the other way it could give you 10) Maybe even have a setting to set a custom snooze.

Maybe use the power button to light the screen on for a few moments. That way if you want to see the time at night you just press it....?

I haven't install this yet, but can this app do anything along those lines? If not how hard would it be to implement something like that?

Den in USA 2010-01-12 04:26

Re: FlipClock Beta
 
Bazz, FlipClock is an awesome alarm clock! A separate alarm can be set for each day of the week. Besides alarm sounds it will play your favorite mp3 songs. When the alarm comes on, it starts at a low volume and slowly increases over a 60 second period. The daytime theme is the mechanical flip clock from the 1970's. The night theme resembles a jumbo LED display that is color selectable. Once an alarm is set on my N800, FlipClock will execute even when my device is turned off. The developer, Jolouis, releases a new version for us on a regular basis and has incorporated many of our suggestions. More display themes are in the works.

bazz 2010-01-12 13:56

Re: FlipClock Beta
 
Very cool! Now I'm gonna have to install it. Do I still need to install the dependencies manually, or is it a nice package? Do you know if it is optified?
Thanks

Den in USA 2010-01-12 14:10

Re: FlipClock Beta
 
Quote:

Originally Posted by bazz (Post 466310)
Very cool! Now I'm gonna have to install it. Do I still need to install the dependencies manually, or is it a nice package? Do you know if it is optified?
Thanks

Bazz, As far as I know it is a single install from extras. I do not know if it is optified. You don't say if you have an N900 or N8xx. The N900 version has some major bugs for now (see earlier threads of this post).

jolouis 2010-01-12 14:34

Re: FlipClock Beta
 
Bazz, as Den's already pointed out, most of the features your describing are already included into Flip in some way or form (they hardware keys act a little bit differently, but the customizable settings and Insomnaic mode/insomniac lock/etc provide a lot of the functionality you were asking about already without requiring you to be awake enough to find hardware keys to press ;-) )

I had some issues with the extras repository, but there should at least be a base version in there now... so install from extras, that should grab the dependencies, and then if the extras version isn't up to the latest then just install the latest one from the garage page (link is on the first post of this thread).

If you're running an N900 Flip is basically dead in the water at the moment as I have had many reports saying it simply crashes all the time, but don't have a device myself to test/debug with. I am working on it though as a developer friend of mine just got one over the holidays and is willing to give me a hand troubleshooting.

I do apologize for getting a bit behind in my work/releases here guys, but don't think I've forgotten... I have been working on a new theme that I quite enjoy, and will keep you up to date on both the progress of that and the move towards a 1.0 release.

Oh, and btw Flip is designed and built specifically for the tablets... it'll compile and run on anything, but it is optimized for tablet usage both in power/processing functionality and in interface design/interactivity...

Thanks!

bazz 2010-01-12 22:45

Re: FlipClock Beta
 
Cool! Well I guess I'll have to wait for now. I'm using a n900. Cant wait to try it.... Thanks!!!

Den in USA 2010-01-13 18:43

Re: FlipClock Beta
 
Jolouis, I got an idea for a new theme display. A minimized theme that would put a tiny digital time display just to the right of the "Home" applet text at the top left of the screen. Basically it would be a tiny version of the "Night" theme.

redi 2010-01-23 01:01

Re: FlipClock Beta
 
pr 1.1 and flip clock wont start (n900).

http://pastebin.com/f4c4d36c6

murts 2010-01-26 11:38

Re: FlipClock Beta
 
Jolouis, I think this is a great app and one I do want to use as my alarm clock. Is there anyway of forcing the alarm to come out of the speakers as I like to fall asleep listening to music on my headphone, I'll then miss the alarm as it's in my headphone that I'll have pulled out of my ears while sleeping..

sampieter 2010-02-05 12:13

Re: FlipClock Beta
 
Funky bug

Finally I uploaded some music on my N810. My alarm is set to play randomly from my music folder.

Often, but not always, the alarm starts at the maximum volume setting for about a second, and then continues with a very low, gradiently increasing, volume.

Instead of being gently awakened, I'm shocked, wide-eyed frantically reaching for the mute button.

Unfortunately, I cannot reproduce the issue at will.

bazz 2010-02-07 02:27

Re: FlipClock Beta
 
Is this working with the n900 yet? I installed it before, but couldn't get it to run.

F2thaK 2010-02-07 03:06

Re: FlipClock Beta
 
works better than it used to on n900, until you press a button on the bottom of the screen; or just randomly; it will crash...... looks F@*@ing sweet but :D

PLEASE GET APP WORKING FOR N900
THANKS
.
.

Alan_Peery 2010-02-07 10:20

Re: FlipClock Beta
 
Two quick comments:

1) You mention alarmd integration -- why is this good? What's the benefit? If you can come up with a short description for the general user, it also belongs in the application details of the package...
2) When I run FlipClock I get a screen that shows a minimized mouse pointer for a bit, and then FlipClock exits. Since I am not sure if it has installed correctly, I've uninstalled.

lemmyslender 2010-02-07 15:26

Re: FlipClock Beta
 
Quote:

Originally Posted by Alan_Peery (Post 514145)
Two quick comments:

1) You mention alarmd integration -- why is this good? What's the benefit? If you can come up with a short description for the general user, it also belongs in the application details of the package...
2) When I run FlipClock I get a screen that shows a minimized mouse pointer for a bit, and then FlipClock exits. Since I am not sure if it has installed correctly, I've uninstalled.

2) It would help if you mentioned what device and software you were trying to install it on. Perhaps we could help you determine if it was installed correctly.

1) alarmd is the maemo alarm subsystem. Being integrated with alarmd means that if you set an alarm, it will still go off even if FlipClock isn't running and even if the device is turned off (it will turn on and sound the alarm). I believe that there is a setting (config file) that can turn this off so alarms only work when FlipClock is running.

jolouis 2010-02-11 19:19

Re: FlipClock Beta
 
Hey All!

Sorry I've been off on other projects, swamped with stuff in the personal and work side of things and just not had a lot of time lately to be on here and working on Flip! However, I bring awesome news with me today... Spenc3 and I sat down and had a Flip Hackfest last week with his N900 and finally got the thing working properly, so for anyone who's got an N900 and wants Flip, the latest version in Extras-Testing for Maemo5 should now at least run and work!

I will also update the package that's on the garage page, just incase you want to manually install... though the extras-testing one will pull in dependencies properly for you so it's the better way to go.

Spenc3 is working on helping me re-organize the SVN and clean things up, but once he's got that taken care of then the two of us are going to have some more time to bang out features and things. We didn't get to do full testing on the N900 yet, so some things still might not work properly, but the app will at least run now and we couldn't get any more random/unexpected crashes so that's a plus! Feedback is welcome as always!

For the Maemo4 people, I'm working on new themes and small things stuff, but got distracted by another project and many other things in life that suddenly started happening. Now that we have the N900 thing sorted out and a second programmer on board I'm hoping that we'll be able to wrap up for a 1.0 proper stable release soon!

Thanks all!!

tissot 2010-02-11 19:21

Re: FlipClock Beta
 
That's great news!

jolouis 2010-02-11 19:35

Re: FlipClock Beta
 
And before I go... question answering time, since I've been away for a while and don't want you guys thinking I've forgotten about ya!

sampieter - It's a gstreamer stupid issue. The problem is I can't set the volume on a PIPE (audio playback) until the PIPE is actually playing... so if your song doesn't have any silence at the beginning, or if the CPU is running a bit slow on the tablet, the music will play before the volume drops... I'll make a note to set the system volume to 0 and leave it there until the stream itself starts getting louder. I've noticed this myself a few times randomly in the mornings with different songs...

murts - Forced option for headphone/speaker/auto... I could do that... I'll add it to the "todo" list... That was one of my original gripes with the build in alarm app (that I couldn't get it to play anything BUT the built-in speaker), but I can understand the usage scenario...

Thanks!


All times are GMT. The time now is 18:23.

vBulletin® Version 3.8.8