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)

ciroip 2008-12-14 07:20

Flip clock pre pre pre pre release
 
EDIT
Most recent version: 0.1.7 Beta DBUS Alarm
https://garage.maemo.org/frs/downloa....1.7_armel.deb
0.1.2 plankton application alarm
22th February 2009: .DEB
https://garage.maemo.org/frs/downloa....1.2.armel.deb
OS 2008 5.2008.43-7 (DIABLO) on Nokia N810 (but it should disable the Led function on N800).
Packaged with Kerthan's Pypackager using the qwerty12's previous version.
Dependencies: Python 2.5 - Python2.5-pygame (the 1.7 but the 1.5 should do the job)
I dont think exist a really easy way to install python2.5: a workaround could be to install an application
that use python and let the application manager take care of the dependencies
(from wha I understand only an application in a repository can manage the dependencies)
SolarWolf (a game) made the trick for python2.5 AND pygame:
http://maemo.org/downloads/product/OS2008/solarwolf/
I wasnt able to find a list of apps that actually use python or python+pygame.
BE AWARE PEOPLE: Installing python would take something like 4 precious mb of the tablet
link to single debs:
Python2.5:
http://repository.maemo.org/extras/p...sso2_armel.deb
http://files.myopera.com/ciroip/albu...3/fc-0.1.2.jpg
Garage page:
https://garage.maemo.org/frs/?group_id=851
[disclaimer in poopie english]
No one should use under any circumstance this application: Im not responsable for any damage that will occour to your tablet
or any appointment you will eventually miss for the application misfunctioning
__________________________________________________ _______________________________________
[ORIGINALL POST]

...
Since I didnt see any hand raising:
http://www.internettablettalk.com/fo...ad.php?t=24865
I decided to try by myself so here my really 1st python program ever. The thing need python (of course) and pygame to 'work'.
I have no idea what really is goin'on... I just randomly copied and pasted code around. No one should try this release. I dont assume any responsability. L'application run ONLY in full screen and there is no way to kill it. It dosn't manage the display lit (every minute the screen eventualy return bright ), no alarms, no radio manager, no flipanimations, no flashing leds, no nothing (well, the clock should work....)
https://garage.maemo.org/frs/downloa...pclock.tar.bz2
https://garage.maemo.org/frs/downloa...flipclock1.jpg

pton 2008-12-14 10:49

Re: Flip clock pre pre pre pre release
 
Looks cool!

lcuk 2008-12-14 13:30

Re: Flip clock pre pre pre pre release
 
ciroip,

!!! impressive, but it doesn't work by default :(

Your code is looking for d1.png and d2.png in the clock function:

def clock(cfr1,cfr2,cfr3,cfr4):
# sep1=pygame.image.load("d1.png")
# sep2=pygame.image.load("d2.png")

commenting these out gets it running :)

Package it up and make it available for everyone.
Simple little usable apps are great to have.

lcuk 2008-12-14 13:39

Re: Flip clock pre pre pre pre release
 
ciroip, do you mind if i use the glyphs you constructed to build a widget in liqbase?
it will help me to test things.

ciroip 2008-12-14 15:02

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by lcuk (Post 249439)
ciroip, do you mind if i use the glyphs you constructed to build a widget in liqbase?
it will help me to test things.

not at all.The opposite.. I cant wait to see more apps from you.
Feel free to use whatever you want.

ciroip 2008-12-14 15:08

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by pton (Post 249422)
Looks cool!

thank you. For now just 'look' cool. I hope I ll can find a way to make it work too
:p

qwerty12 2008-12-14 15:16

Re: Flip clock pre pre pre pre release
 
Nice work, looks cool. :)

2 suggestions, please use a text editor that understands unix line endings! (in vi, i'm getting ^M after each line which means it was saved in windows format). Plus, replacing "#!/usr/bin/python" with "#!/usr/bin/env python2.5" lets you start the program quicker if you hav python-launcher installed.

Also +1 with lcuk but all you need to do is remove the "d" rather than commenting the lines.

ciroip 2008-12-14 15:17

Re: Flip clock pre pre pre pre release
 
Quote:

commenting these out gets it running

Package it up and make it available for everyone.
Simple little usable apps are great to have.
Damn, I uploaded the wrong one... anyway Im still looking for help.
I would love to leave the boring parts :p (coding packaging...)to someone else who want complete the thing. I promise fame and celebrities.

ciroip 2008-12-14 17:09

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by qwerty12 (Post 249445)
Nice work, looks cool. :)

2 suggestions, please use a text editor that understands unix line endings! (in vi, i'm getting ^M after each line which means it was saved in windows format). Plus, replacing "#!/usr/bin/python" with "#!/usr/bin/env python2.5" lets you start the program quicker if you hav python-launcher installed.

Also +1 with lcuk but all you need to do is remove the "d" rather than commenting the lines.

that's the kind of comments I like :)
I hope Ill became a bit less sloppy if/when maemo will approve this project and things 'll became a bit more official...

daperl 2008-12-14 17:45

Re: Flip clock pre pre pre pre release
 
Making the following change allows me to run this app in Kubuntu 8.10 and on my n800. Otherwise it changes the screen resolution of my KDE nvidia graphics desktop. Painful.
Code:

try:
  window = pygame.display.set_mode((0,0))
except:
  window = pygame.display.set_mode((800, 480))

Cool stuff. Thanks.


All times are GMT. The time now is 00:34.

vBulletin® Version 3.8.8