Active Topics

 



Notices


Reply
Thread Tools
Posts: 1,097 | Thanked: 650 times | Joined on Nov 2007
#21
Great work and a big thanks for a nice interface to a simple big clock.

Would love to have alarms as a minimum addition to it - so I can use it as my wake-up device.
Right now I use the StatusBar Big clock with alarms - but frustratingly - it kills the sound daemon totally everytime after the first snooze. I have to reboot the NIT to get sound back each time. So having another alternative without the sound problems would be great indeed.

Personally - I would lile the clock to have minimal function overloads - i.e alarm functionas a addition. Would not want to have weather, news etc features overloaded onto it.
 

The Following 2 Users Say Thank You to nilchak For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#22
Originally Posted by daperl View Post
orario[3] is an integer. Try and make it a string with:

str(orario[3])

Then you would have:

cfr2=str("/usr/share/flipclock/")+str(orario[3])+".png"
Worked a treat, thank you!
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#23
Packaged finally!

You can get the deb from here:
https://garage.maemo.org/frs/downloa..._0.001_all.deb

Source packages are available on (unless you want to make changes, the deb is what you should need):
https://garage.maemo.org/frs/?group_id=851

All the changes I've made to flipclock itself are in patches managed by quilt so it should be easy to see what was done. Any other changes such as setup.py installer script, debian folder etc are in the diff.gz.Thanks to daperl for the str help and for the window size modification (which I've included).

And now, we can exit it :
 

The Following 7 Users Say Thank You to qwerty12 For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#24
Originally Posted by qwerty12 View Post
Hmm, I'm having trouble getting flipclock to use the new paths. Anyone know what the correct way to do:
cfr2 = str("/usr/share/flipclock/")+(orario[3])+".png"
is in python?
The most usual and "pythonic" idiom would be :

cfr2 = "/usr/share/flipclock/%d.png" % orario[3]
PS: great job BTW ciroip and Faheem - I love it !
 

The Following 3 Users Say Thank You to fpp For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#25
@fpp

Good call.

@others

And if you decide to use more complex string formatting, don't forget that the variables need to be in a list (comma separated inside parenthesis). For example:
Code:
#! /usr/bin/env python

don = 7
a = 6
b = 8
s = "Q: %03d, what is the speed limit of sex?\nA: %d%d" % (don, a, b)
print s
__________________
N9: Go white or go home
 

The Following 2 Users Say Thank You to daperl For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#26
daperl: can you get a ticket for going just one over the speed limit?
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#27
Originally Posted by qole View Post
daperl: can you get a ticket for going just one over the speed limit?
Well, I've never heard about getting a ticket, but here are 3 things that can happen:
  • you eat it
  • you have to turn around
  • she blows a rod
Or did something just go over my head? Again.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#28
I hate to be a nit-picker here, but... daperl: from my understanding of python (and I could be wrong, I'm still learning), items in parentheses () are a tuple, while items in brackets [] are a list. So, in this case, the items need to be in a tuple, not a list. Not a big deal here, but the terminology changes what you can do with the items. (Reference Link)
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 

The Following User Says Thank You to TrueJournals For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#29
@TrueJournals

Yes, thanks. Grandpa always said, "better to pick the nit than pass on bad information." We used to slap the sh*t out of him. Just kidding. Variation on an old George Carlin joke. Thanks again.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
ciroip's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#30
New release: 0.002
I optimized a bit the code, now should be easier to read/modify/touch it .
Im testing new graphics: feedback, feedback, feedback.
I hate it so ll probably decide for the naked flipping number.
I added a completely useless (and probably deadly for the cpu) flipping animation at the start.
I still have no idea how create a package out of the thing so I keep uploading the .py for now.
https://garage.maemo.org/frs/downloa...ock002.tar.bz2

 

The Following 4 Users Say Thank You to ciroip For This Useful Post:
Reply

Tags
clock, flip clock


 
Forum Jump


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