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)

silvermountain 2009-07-22 18:20

Re: Flip clock pre pre pre pre release
 
1 Attachment(s)
Changing the colour on the settings options made it much easier for me to see them.
Thanks for the heads-up on where those files were stored.

"All" I did was (please don't laugh):
a) Run emelfm2 as root from xterminal

b) Browse to the folder mentioned above and copy the image files I wanted to change over to a working directory on my internal memory card (so I had the original ones should I mess something up). FINDING what image files I wanted to change required me to go through them one by one (viewing them through emelfm2.

c) Emailing the images to me (still haven't set up tablet-to-PC file transfer..sigh..)

d) Opening the images in photoshop and do a colour-replacement

e) Emailing them again

f) From modest mail saving them to a working directory

g) with emelfm2 copying them from my working directory to the flipclock directory.

Ta-da!

Attached below is a screenshot with just the AM/PM setting changed to a darker colour.

nilchak 2009-07-22 18:27

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by qole (Post 305965)
I'm going to try to figure out how to get Nixie tubes back into flipclock! After all, I should just have to swap in the images in the data directory from this release, right?

Aha - the Nixie fans are back in droves ... :D

Now that the "to put a phone or not to put a phone" into Maemo debate has died down (very dull it is without a fight going on), can we start this new one ...

To 'Nixie' or not to 'Nixie' ?

I guess now that the user modifications are possible on Flip-clock we don't need to oppose each other - to each his own mods - as Silvermountain just did.

nilchak 2009-07-22 18:30

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by ciroip (Post 305943)
wow, too much love to manage :)

yeah, I get your point but the clock is like my 'hello world'


Boy some "Hello World" app you did dude ... <thumbs up>

ciroip 2009-07-22 18:58

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by bilofsky (Post 305932)
Again, I say this with appreciation, and in an attempt to share some of the perspective of a long career in software development.

lol, I suppose is a bit too late for that but thank you anyway :)
I dont know about talented but I always had an alternative chaotic approach that never really matched the marketing rules :D

Anyway I am always open for job offers:rolleyes:

ciroip 2009-07-22 19:09

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by silvermountain (Post 305989)
Changing the colour on the settings options made it much easier for me to see them.
Thanks for the heads-up on where those files were stored.
...

Well done!
The mail trick is a nice workaround but a more comfortable way to share files with the tablet could be to use an SSH conection. Install the ssh server on the tablet and then use an ssh client on the PC (Under windows u can use WinSCP).

If you (or anyone outthere) plan more drastic pimps/mods I can upload somewhere the 'source' original vector Xara files (.xar)

ciroip 2009-07-22 19:22

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by qole (Post 305965)
I'm going to try to figure out how to get Nixie tubes back into flipclock! After all, I should just have to swap in the images in the data directory from this release, right?

That should do the trick: I think to remember that the positioning changed a bit: in case you can try to change the coords in ci_init (if I correctly recall the coords for ore_decine, ore_unita, minuti_decine and minuti_unita... ore=hours and minuti=minuts...)

You want probably change the 'fondo.png' too to make the background match the nixie style: I should still have some original XARA vector files if you are brave enough to try to learn a new (great) graphic program

jolouis 2009-07-22 19:24

Re: Flip clock pre pre pre pre release
 
It's funny how this idea of "modding" just came up, considering that it's been possible using the same technique since the first major release of the app...

There's also a slew of other things you can play around with if you're feeling adventurous and want to "tweak" things further to suit your needs. For example, if you're not happy with the available "night" colours, you can always change them or add your own: just go to ci_init.py (/usr/lib/python2.5/site-packages/flipclock/ci_init.py), and around line 227 there's an arrray called moods:

Code:

moods = [{"name":"Off","image":pygame.image.load(path + "m_0.png"), "color":(0,0,0), "nightColor":(0,0,250)},
                {"name":"Yellow","image":pygame.image.load(path + "m_yello.png"), "color":(250,125,0), "nightColor":(250,200, 0)},
                {"name":"Blue","image":pygame.image.load(path + "m_blue.png"), "color":(0,0,250), "nightColor":(0,0,250)},
                {"name":"Red","image":pygame.image.load(path + "m_red.png"), "color":(250,0,0), "nightColor":(240,0,0)},
                {"name":"Purple","image":pygame.image.load(path + "m_purpl.png"), "color":(250,0,125), "nightColor":(220,0,160)},
                {"name":"Green","image":pygame.image.load(path + "m_green.png"), "color":(0, 250,0), "nightColor":(0,220,0)}]

the "nightColor" property is an rgb set that determines the colour of the clock display in "night mode".

Quote:

If you (or anyone outthere) plan more drastic pimps/mods I can upload somewhere the 'source' original vector Xara files (.xar)
Maybe throw them up on the SVN/garage page as part of a "Developer" section? Any C code that you've done for the other version of the clock could also go in there... just an idea?

ciroip 2009-07-22 19:27

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by nilchak (Post 305992)
Boy some "Hello World" app you did dude ... <thumbs up>

lol, really a digital clock is really basic: is just put up some graphics on the screen and the 'developing' dont need any tool: everything happen on the tablet (pythons are simple interpreted txt file and the GCC for the C compiling run directly from on the tablet :)

qole 2009-07-22 19:43

Re: Flip clock pre pre pre pre release
 
2 Attachment(s)
Just some tweaking in Gimp... A bit closer to what I was thinking of...


EDIT:


ciroip: is there any way to convert your vector images to CorelDraw? That's the vector program that I use....

ciroip 2009-07-22 20:38

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 306011)
It's funny how this idea of "modding" just came up, considering that it's been possible using the same technique since the first major release of the app...

must be the summer :D

Quote:

Originally Posted by jolouis (Post 306011)
Maybe throw them up on the SVN/garage page as part of a "Developer" section? Any C code that you've done for the other version of the clock could also go in there... just an idea?

mh, yes, I completely forgot about the svn...Ill see if I can catch up that part too...
You were right, the SDL under C is nothing special (memory managment? it is something edible?)
Like usual Im always ashame of the 'code': Im still exploring the C peculiarities; Ill see if I can find the time to clean a bit the code this evening (gmt-5) and post it somewhere.

The tablet is revealing itself once again a pretty straighforward development platform (know OS on know hardware). if I were a teacher I would use it in a class.
Since the code is so basic maybe I/someone could made a tutorialish wikipage (being C/SDL/FULLSCREEN is pretty platform indipendent)


All times are GMT. The time now is 13:48.

vBulletin® Version 3.8.8