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)

lcuk 2009-05-03 09:22

Re: Flip clock pre pre pre pre release
 
ciroip (and others)

I stumbled upon a great site last night offering some amazing clockface designs

http://www.darkroastedblend.com/2009...d-watches.html

some are most interesting and certainly fodder for ideas :)

ciroip 2009-05-03 10:44

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 283722)
Code:

# flipclock -f

/usr/lib/python2.5/site-packages/flipclock/flipclock.py:4: RuntimeWarning: import cdrom: No module named cdrom
  import pygame
/usr/lib/python2.5/site-packages/flipclock/flipclock.py:4: RuntimeWarning: import joystick: No module named joystick
  import pygame

(Hmmm I really have to clean up some of those pygame errors and things... is that just my old install of pygame, or do those errors appear for others too?).

I always received those pygame's errors, the porting was probably never really completed (probably don't having the access to the hardware accelerations demotivated a bit the developers). I tried to strip down a bit the pygame lib but other projects take over.

@Lcuk: lol, good site and yes, the steampunk, the clockbomb and the goggle clock versions are already in the project drawer but there are another couple of cool idea there :)

Laughing Man 2009-05-03 14:59

Re: Flip clock pre pre pre pre release
 
I'm noticing an interesting bug. It seems alarms won't show in the main interface (the one with the clock) but they'll still fire if turned on.

I noticed this with the last version and an upgrade didn't fix it.

BrentDC 2009-05-03 16:23

Re: Flip clock pre pre pre pre release
 
Never have used pygame, but a simple statement l like:

Code:

try:
  import pygame
except RuntimeWarning:
  pass

should at least kill the traceback. :)

Edit: I just tried that and it doesn't work (that'll teach me to post code before testing it! :p).

jolouis 2009-05-04 15:19

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Laughing Man (Post 284182)
I'm noticing an interesting bug. It seems alarms won't show in the main interface (the one with the clock) but they'll still fire if turned on.

I noticed this with the last version and an upgrade didn't fix it.

Alarms won't show as in the count-down area is blank, or? the AlarmSet area is empty? or it just shows the wrong info?

Once I get the modularity and code cleanup done, then the new features and graphics will be next, but I want to try and spend a bit of time figuring out a way to make the clock at least somewhat easily "skinnable" so that users will get to choose which one of Ciro's Uber Crazy clock designs they want, rather than just using which ever one we (the devs) impose at will ;o)

Nice try Brent, unfortunately it looks like it is a problem with the compiled pygame main module (it points to the CDRom and Joystick modules that were never ported to Maemo since the hardware didn't have support for them); it's not a big deal since this is a GUI app anyways, and maybe one day we'll find a way to clean it up...

Laughing Man 2009-05-04 15:33

Re: Flip clock pre pre pre pre release
 
The count-down area is blank.

BrentDC 2009-05-04 15:38

Re: Flip clock pre pre pre pre release
 
Determined to kill the error, I just tried placing two files in /usr/lib/python2.5/site-packages/pygame/; one named "cdrom.py" the other "joystick.py". I just put "pass" in each file, and....drum roll.... that seems to work fine.

Sloppy, kludgy, horrible, yes, I know, but a solution nonetheless :)

jolouis 2009-05-06 15:45

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Laughing Man (Post 284401)
The count-down area is blank.

I was working on something completely unrelated to this for the new version of the clock (when it gets done you guys are going to love it, some big changes coming!) when I noticed the same problem! Turns out I forgot a + sign on one line of code...

Try opening up ci_alarmNew.py, go to line 344 where it currently reads:
Code:

                        if (mins < 10):
                                countdownStr = "0"
                        countdownStr = countdownStr + str(mins)

And update it to be:
Code:

                        if (mins < 10):
                                countdownStr = countdownStr + "0"
                        countdownStr = countdownStr + str(mins)

That should fix the countdown problem (worked for mine at least)...

Laughing Man 2009-05-12 03:03

Re: Flip clock pre pre pre pre release
 
Hmm and oddly the alarms do not go off reliably. (whatever ones I set in flipclock). The regular ones I have still go off.

jolouis 2009-05-12 13:11

Re: Flip clock pre pre pre pre release
 
"alarms do not go off reliably" as in they don't play? The clock doesn't auto-launch? Are you using the same sound file all the time, or?

If it's the "clock doesn't autolaunch/do anything at alarm time" then you can always fall back on Flip's internal alarms instead of alarmD;
Make sure you have all alarms in Flip TURNED OFF, then just edit the config file (/home/user/.flipclock) and look for the section that says "useAlarmD=1"; change that to 0, save, and you should be all set. Note that this approach will no longer cause auto-launches/etc and means you'll need to have the app running in order to get alarms, but it should at least be 100% consistent.


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

vBulletin® Version 3.8.8