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 2009-01-17 17:20

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by casper27 (Post 258251)
Great work Ciroip and everyone else been following this for some time now and have to say it's very impressive. I have only loaded the 0.001deb app but am so far impressed. I was just wandering if there is anyway of making this the default screen saver instead of the screen blacking out as usual? Don't know if this is even possible but if you don't ask..
Again great work

Thank you casper for spending time on this app :)
The tablet screensaver is actually a 'real' saver, and is suppose to really dim down the screen brightness to save battery juice. I dont even know if it is possible to overtake the OS power setting of each user (probably yes but still seem a bit rude...). The app since the beginned was thinked like something 'cool' and usefull to show during the recharging time (usully night time for me and thats why I tried the partially dimmed red light always on, and be able to find the tablet in the darks). So the answer is 9probably9 no but Ill probably add an 'always display on' button in one of the free spaces on main screen active working only when the tablet is connected to the charger.

Saturday morning notes:
I tried to managing the packaging (.deb) of the thing and is a nightmare hell! (that's give even more kudos and credits to qwerty for his help).
I think I was able to use the py2deb directly from on the tablet (great Khertan's script) and I ask an invitation to upload and autobuild(?) the thing. In case of trouble Ill ask for help. Im sure senjors here are 9bored9 to watch newbbie repeat over and over the same paths so Ill try to be as quiet as I can :)

buon weekend

caperren 2009-01-17 17:22

Re: Flip clock pre pre pre pre release
 
Hey everybody...I was wondering if someone could tell me how to run this program. I have never used anything with python before but would like to use this awesome program. If it is incredibly difficult I will just wait until the deb comes out. Thanks a lot for your help.

ciroip 2009-01-17 18:29

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by caperren (Post 258282)
Hey everybody...I was wondering if someone could tell me how to run this program. I have never used anything with python before but would like to use this awesome program. If it is incredibly difficult I will just wait until the deb comes out. Thanks a lot for your help.

No is not too difficult (and since Im not a programmer you can trust me) but there are thousand of little things can be not in the right place anyway:

Open a terminal and unpack one of last versions (Is probably funny to test every version and check the progress :) ) and launch the clock with
Code:

python fk012_noparty.py
Probably if you are not 'root' something will not work (I suppose all the OS calls?) something trivial like led flashing or battery stats.
In case previous on the thread there are some suggestions to 'downgrade' the application features touching the ci_init.py to disable the led and battery check (sw_led=0 instead of sw_led=1) and someone was even smart enough to create a working menu shortcut.


The worste case scenario is when you dont have the 'dependencies'.
In this case the clock need python (of course) pygame, and probably something other (python-hildon things). There are good chances people already have all these components since many applications out there use the same things (a good library is honey for developers bees).
So if you have installed other python programs the relative .deb installation probably already solved everything (ukmp, advancedbattery etc).
I think installing one of the old flipclock deb from garage:

https://garage.maemo.org/frs/downloa...0.004a_all.deb

should also resolve a lot (and give an icon the the clock).
If your tablet survived you are probably ready to try to open a terminal and launch the app again.

I know transfering files and write 'code' directly on the nokia is a pain so I suggest to use SSH (linux user should not have problems with that).

My solution for Ms windows users is to use PuTTY (and use the terminal from the pc instead of using the (AMAZING) tablet keyboard and (AMAZING) tablet screen)...
and using totalcommander + the 'secure ftp connection' plugin capable to open a ssh connection (something like an ftp but -fancier-) to transfer files everywhere you prefer on the tablet filesystem (obviously login like root let people do everykind of damage to the device --ergo>> timelamb to sacrifice to the Reflashing God). I usually put my s*it on the memory card (/media/mmc1 on the n810). I prefer this method over the usb cable since window take over the permission of my memory card and I cant access from the tablet while connected ()


or you can simple beg qwerty12 to make a .deb for each crappy experimental revision :)

ok, compressing too much informations+crappy english+mental confusion = complete mess.
Obviously this is not an iphone (thanks God?) and probably this app dont deserve all this time but everything there really help people to really begin to use the tablet as it deserve and open the testing at hundred of other great projects out there

caperren 2009-01-17 19:14

Re: Flip clock pre pre pre pre release
 
Thanks a lot.....It works (and looks) great!

ciroip 2009-01-17 19:24

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by caperren (Post 258298)
Thanks a lot.....It works (and looks) great!

lol, you are welcome, that's was easy :)

Anyway where is my 'Thanks' for the post? :eek::eek:
I surprised myself checking this user stats. In this forum seem working pretty fine to find all posts by smartest people around here

ciroip 2009-01-18 06:56

Re: Flip clock pre pre pre pre release
 
ok, still here
I realised that python is great and quick for testing new ideas but really suck have to fight with all the developing issue for 'normal' people who just want try the apps. So I tried to 'compile' a version for msWindows using pyinstaller. Everything went smooth and I didnt need to modify anything to make it work (I usually write the thing on window so I try to code with all the tricks to make it working on both the platforms (windows/tablet).
http://www.box.net/shared/yzxd2dd6dn
https://garage.maemo.org/frs/downloa...ck_windows.jpg
the zip contain the application folder, no installation should be necessary, no dependencies, no nothing. double click on the exe and the thing should be run.
It is a 4 mb file (I didnt check the pyinstaller documentation so I probably bloated the app with a lot of garbage).
Let me know if someone find this usefull or not
(and maybe decide to loose some time trying to fix all the dependencies on the tablet and test the RealDeal :))

It is the 1st time I use that storage service and Im not sure it let people download or I need to give more sharing permissions or whatever...

ciroip 2009-01-18 07:20

Re: Flip clock pre pre pre pre release
 
ok, probably sunday in the morning ill be able to upload a working version of the 'windowable version... for now Im going to show what I were thinking to put there. Again suggestions of what you people would prefer to have on the windowed screen will be really appreciate :)
https://garage.maemo.org/frs/downloa...enshotfake.png

That screenshow have a 'themeinprogress' but the application should look decent on any theme, I dont think im going to hildonize it more
Buona domenica

lemmyslender 2009-01-18 15:26

Re: Flip clock pre pre pre pre release
 
Thanks for all the hard work. I never thought to run it as root. Perhaps that's why I had problems. At any rate changing led=0 in ci_init.py let it run no problem.

ciroip 2009-01-20 04:55

Re: Flip clock pre pre pre pre release
 
ok, last version from US (Ill return in Italy on thursday).
I finally add the light sensor graph and the date.
I refined a bit the windowized screen and added the clock on the window caption.
https://garage.maemo.org/frs/downloa...050_NC.tar.bz2

https://garage.maemo.org/frs/downloa...050_window.jpg

Now I jusst need to know how risky is to leave the led and lux query on the final version (it seem there are issues for some users and I have no clue why) so Ill ask to qwerty12 to make a debian out of this version(as I said I ask, and received, the permission for the maemo extras) because Im still not able to complete a debianizing process by myself :o

Rassilon7 2009-01-21 13:56

Re: Flip clock pre pre pre pre release
 
Can I just say that I for one am really excited about seeing a deb of this program

Faz 2009-01-21 19:44

Re: Flip clock pre pre pre pre release
 
1 Attachment(s)
Just had chance to download latest version - Very nice improvements!!! :)

I like what you've done with the bottom part of the screen, "Engaged" etc - Damn efficient use of space! :)

Plus audible and LED response on screen touches! (Only downside is that I keep pressing the screen) :D
It took me a second to realise the genius of the context help. At first I thought it was just some random squiggles! LOL! :o

Loving the LED colour changes when switching from alarm to clock view... :)

What method are you using for positioning in window mode? I'm using the LCARS theme which seems to be smaller than the Nokia provided ones, resulting in some repeated graphics at the bottom (see below). Just an observation, doesn't bother me in the slightest as I prefer full screen!

Thanks!!

OK, now back to the light show...:D

ciroip 2009-01-22 17:11

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Faz (Post 259142)
Just had chance to download latest version - Very nice improvements!!! :)

I like what you've done with the bottom part of the screen, "Engaged" etc - Damn efficient use of space! :)

Plus audible and LED response on screen touches! (Only downside is that I keep pressing the screen) :D
It took me a second to realise the genius of the context help. At first I thought it was just some random squiggles! LOL! :o

Loving the LED colour changes when switching from alarm to clock view... :)

What method are you using for positioning in window mode? I'm using the LCARS theme which seems to be smaller than the Nokia provided ones, resulting in some repeated graphics at the bottom (see below). Just an observation, doesn't bother me in the slightest as I prefer full screen!

Thanks!!

OK, now back to the light show...:D

grazie, troppo gentile :)
using the qwerty12's suggestion to use the 'hildon' call for the sound was pretty easy to add the sound feedback (and seem pretty light on the system). Yes, playing with the leds is pretty addictive and I always feel that the feedbacks are never enough; I just need to find a smarter way to make the led loop (the function carnevale()) because now freeze the application and that is pretty annoying, maybe acceptable but still annoying.
I admit I really didnt spent too much time on the help graphic but was just to show how easy could be to integrate more extra info on the interface, pygame support the trasparent png (slow but still acceptable) so it was enough to just 'draw' the extra layer before the 'flip'. Thank you for the screenshot, I had some doubt about the height (I usually use a 60px top bar and probably some themes use a smaller size). I guess I can just add some extra graphics on the bottom to avoid the ugly repeating effect. I think the application is still enough 'reactive' but it seem a bit too heavy on the memory, I suppose is time to return to the simpliciest version to have something usable when the tablet is not charigng laying in the bedroom :)

ciroip 2009-01-23 04:38

Re: Flip clock pre pre pre pre release
 
back in italy and fighthing with the jetlag. That lcars screenshot bugged me off a bit and since the theme seem pretty poupular I made something more aligned:
https://garage.maemo.org/frs/downloa...fondowindo.png
substituting the file under ./data should do the trick.
I can't really test it because I forgot the tablet's power adapter 5000 miles away so probably it will not 100% match

Faz 2009-01-23 23:28

Re: Flip clock pre pre pre pre release
 
1 Attachment(s)
Hey ciroip, hope you've had a chance to rest since your last post.
I feel a bit guilty for posting that screenshot now!! :o

Updated screenshot attached. I really wasn't expecting you to design a whole new theme though! I would have thought a little padding / repeat of original theme using same colour would suffice...?

Regarding charger, any N series phone adapter should do, e.g. N95.

ciroip 2009-01-24 02:56

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Faz (Post 259578)
Hey ciroip, hope you've had a chance to rest since your last post.
I feel a bit guilty for posting that screenshot now!! :o

Updated screenshot attached. I really wasn't expecting you to design a whole new theme though! I would have thought a little padding / repeat of original theme using same colour would suffice...?

Regarding charger, any N series phone adapter should do, e.g. N95.

lol, no problem, is still hard for me to believe someone actually really install the app (not having the one click .deb make things really more: I WANT REALLY TRY THIS feeling :) ) and is great to see other people screenshots.

Well, Lcars is pretty poupular and 90% of the clock point is to be cute and as I said before everything I do on the tablet is personal itchscratching so dont worry: you just pointed out something that made my skin itchy :)

wow, that really look bad. and yes, I found a compatible nokia power adapter so I now I can install the theme and create the different alarmon/off switch graphics for the windowmode *not a big deal, really.

Rassilon7 2009-01-24 03:23

Re: Flip clock pre pre pre pre release
 
When do you think there will be a deb release? I'm getting itchy to try it because it looks so great!

Thanks for all your hard work

Steve

ciroip 2009-01-24 07:00

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Rassilon7 (Post 259612)
When do you think there will be a deb release? I'm getting itchy to try it because it looks so great!

Im trying to learn how build a .deb by myself using py2deb. Im using the previous .deb made by qwerty12 for the version .04 like 'template'
https://garage.maemo.org/frs/downloa...0.004a_all.deb
but I still don't understand how make it find the modules under site-packages :mad: If Ill not be able to solve by myself before sunday evening Ill ask to qwerty12 if he can make a new deb

qwerty12 2009-01-24 07:51

Re: Flip clock pre pre pre pre release
 
I've packaged this one (after numerous structural changes) but on a N800, it will crash with:

Quote:

/usr/bin/flipclock:3: RuntimeWarning: import cdrom: No module named cdrom
from pygame.locals import *
/usr/bin/flipclock:3: RuntimeWarning: import joystick: No module named joystick
from pygame.locals import *
Traceback (most recent call last):
File "/usr/bin/flipclock", line 45, in <module>
flipclock.ci_alarm.light_sensor()
File "/usr/lib/python2.5/site-packages/flipclock/ci_alarm.py", line 102, in light_sensor
lux = file("/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux","r")
IOError: [Errno 2] No such file or directory: '/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux'
Despite me having set sw_led to 0.

Never mind, changed ci_alarm from:
Quote:

def light_sensor():
lux = file("/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux","r")
ci.luxlevel=int(lux.read())
to
Quote:

def light_sensor():
if ci.sw_led==1:
lux = file("/sys/devices/platform/i2c_omap.2/i2c-0/0-0029/lux","r")
ci.luxlevel=int(lux.read())

qwerty12 2009-01-24 08:28

Re: Flip clock pre pre pre pre release
 
Ok, I've released a test package here:
https://garage.maemo.org/frs/downloa..._0.050_all.deb

Tell me if you notice any problems when running flipclock using this package if the same errors you encounter do not exist in the tarball version. I've had to make quite a few changes so I'd like to know if I've missed something out or messed something up :).

If the package is proven to work, then I or ciroip have no problems in uploading it to extras-devel.

Thank you.

casper27 2009-01-24 08:52

Re: Flip clock pre pre pre pre release
 
Flawless installation. Have set alarms and played with it for an 1/2 hour or so and all seems to work brilliant. Im using N800 with Diablo 43-7.
Excellent work all many thanks for a great application. Will use and recommend. :-)

Rassilon7 2009-01-24 10:19

Re: Flip clock pre pre pre pre release
 
Worked perfectly! It's Chinese New Year at the moment so I do not have to get up for work. I will let you know how it goes once I have to,

I keep getting the "Estimated battery time left message" popping up over the nice beautiful clock. It seems to arrive every couple of minutes and stay on screen until I touch it.

ciroip 2009-01-24 16:12

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by qwerty12 (Post 259634)
Ok, I've released a test package here:
https://garage.maemo.org/frs/downloa..._0.050_all.deb

Tell me if you notice any problems when running flipclock using this package if the same errors you encounter do not exist in the tarball version. I've had to make quite a few changes so I'd like to know if I've missed something out or messed something up :).

If the package is proven to work, then I or ciroip have no problems in uploading it to extras-devel.

Thank you.

great job, the installation seem working just fine. Im sorry you had to mess so much with the code but at least now I have an installable base to fix the final bugs. Ill stop messing with the structure, no more feature creeps.
The tablet/led switch IF controls overlapped a bit I guess so I need to move all the TABLET features under the 'TABLET IF' control and add another control for the light sensor (I rush a bit that part).
I didnt know the n800 didnt have the light sensor :o my bad. The led otherwhise should work on both the device (800 and 810)
once Ill fix the IF controls Ill ask for some feedback here.
Now is time to touch a bit that code. Ill keep you update

ciroip 2009-01-25 04:57

Re: Flip clock pre pre pre pre release
 
ok qwerty12, great job. As I told you I had a lot of problems trying to make python understand where find the modules. the only way I was able to have somethine work for me is to add directly inside the main py (flipclock) the new syspath+flipclock.
https://garage.maemo.org/frs/downloa...00-n810.tar.gz
I read somewhere this sould make complatible the thing with the tablet, mac, linux and window.
Like usual there is the path to set for local and installed version. I could not resist to change again a module... :o. I substitute the battery_status.py (dbus) with a more brutal query of the /dev/retu (and this should solve the annoyng duefault popup each minute when the charger is connected as pointed out by Rassilon7). The problem is that Im calling the external program kcbatt (great small program from KotCzarny) with the python:
kcbatt = ci.os.popen("./kcbatt ","r") in ci_battery.py
but Im not sure how hard can be to make a package out of this mess.
I finally fixed the tablet/sw_battery/sw_led/sw_lux thing. Now I check the tablet model (thanks again qwerty12) and it should automagically downgrade the clock for the n800s: no led, no lux, si batteryes si sound.
Let me know if something cause too trouble for the .debianizing Im sure I can find some alternative way to make the thing work.
Buonanotte e buona domenica

Rassilon7 2009-01-25 05:05

Re: Flip clock pre pre pre pre release
 
Actually it only gave the message when it wasn't plugged in, once I plugged it in I got no message every minute.

Munk 2009-01-25 07:57

Re: Flip clock pre pre pre pre release
 
Qwerty! Oh no, I was installing the latest .05 deb and then the tablet rebooted in the middle of the installation. After I booted back into my SD based install the original Flip Clock, I believe version .04 which was the other deb, was gone.

Using xterminal I have browsed to "/usr/share/flilpclock" and when I do an "ls" I get weird stuff like:

Code:

ls: cannot access a1.png: input/output error
I have tried "rm -r *" but it wont delete anything giving me the errors such as:

Code:

rm: cannot stat 'help0.png': input/output error
Did my SD card get somewhat corrupted when the install rebooted the NIT? And if so, does anyone know how to repair it? :confused:

albright 2009-01-25 18:38

Re: Flip clock pre pre pre pre release
 
Hi. I love this app, but at the moment (using the
.50 deb) I cannot get any sound out of it. No alarm
sounds I mean. I can set the alarm just fine but when
the time comes there is only silence:confused:

Any trick to this - some python package I might need,
or what?

Saturn 2009-01-25 21:35

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Munk (Post 259773)
Did my SD card get somewhat corrupted when the install rebooted the NIT? And if so, does anyone know how to repair it? :confused:

Did you try to fsck the card? sometimes it helps.

that is, boot from flash, gain root and type:
Code:

fsck -fy /dev/mmcblk0p2
HIH

ciroip 2009-01-25 22:50

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by albright (Post 259822)
Hi. I love this app, but at the moment (using the
.50 deb) I cannot get any sound out of it. No alarm
sounds I mean. I can set the alarm just fine but when
the time comes there is only silence:confused:

Any trick to this - some python package I might need,
or what?

oh, odd, I tried to minimize any kind of dependencies using the hildon calls (avoiding the crappy pygame audio support and his stupid esd calls) and I packaged a sound 'ringin.wav' for the alarm sound.

during the developping I discovered that if you have the
System Sound OFF
under the setting/controlpanel/sounds all the hildon calls are mute.
You can use the about button to test is the sound works (I HATED to have to set the alarm just to test the sounds :) )

ciroip 2009-01-25 22:56

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Rassilon7 (Post 259641)
Worked perfectly! It's Chinese New Year at the moment so I do not have to get up for work. .

Happy new ox? :)

yukop4 2009-01-26 06:00

Re: Flip clock pre pre pre pre release
 
i installed it -looks great - what are the white arrows that come up when you press help or the numbers


ed

Rassilon7 2009-01-26 06:04

Re: Flip clock pre pre pre pre release
 
Put your finger over one of the white arrows and stroke in the direction that it shows...

Faz 2009-01-26 19:10

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Rassilon7 (Post 259912)
Put your finger over one of the white arrows and stroke in the direction that it shows...

You mean it's not abstract art?! :rolleyes:

ciroip 2009-01-26 19:40

Re: Flip clock pre pre pre pre release
 
you know italians are artsy for the sake of being artsy...

Im not sure what is wrong with the kcbatt program I now use to query the battery level but seem it does not always works on my tablet: any different experience out there? beside that I cant find any more problems.
Anyone with the n800 tried if the tablet is corrected recognized now?

ciroip 2009-02-07 20:24

Re: Flip clock pre pre pre pre release
 
Trying to find a bit of time to finish the thing. Ill refine the app and graphics and move on to something more usefull. Probably before monday ill be able to upload something stable and definitive.
https://garage.maemo.org/frs/downloa...lock_night.jpg
I need to decide the color of the night mode, blue seem fine to me for the tablet

lcuk 2009-02-07 20:34

Re: Flip clock pre pre pre pre release
 
ciro :) you have a talent.
how can we make this dynamically themable?

Faz 2009-02-07 21:50

Re: Flip clock pre pre pre pre release
 
Wow, very deep cool blue! I like it! :)

Just one problem, the help button's gone! :p

ciroip 2009-02-07 22:33

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by lcuk (Post 262837)
how can we make this dynamically themable?

not too hard I guess, 4 different couples of coords for each number and a background for the rest of the screen... and obviously the 10 digits. Pushing a bit the concept could be possible to add the extra thrasparent layer for the 5 'moods' (at some point I thinkied to create a desaturated led version with color moodable). With a bit of creativity (and real talent) should be possible to use the extra layers with something less dumb than simple colors (add stickers, objects or whatever anyone could be crazy enough to think.

mh, that jpg compression really look like s*it, it look nicer wint png on the tablet

ciroip 2009-02-07 22:38

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Faz (Post 262851)
Wow, very deep cool blue! I like it! :)

Just one problem, the help button's gone! :p

Yes Im sure a lot of people will miss that...
but I traded 1 button with 7 new ones (testing how have 7 different alarm settingss)

ciroip 2009-02-08 10:39

Re: Flip clock pre pre pre pre release
 
ok, time for the sunday's lunch with the parents.
Meanwhile here something to play with.
https://garage.maemo.org/frs/download.php/5436/fc98.gz
https://garage.maemo.org/frs/downloa...8_alarmset.jpg
By now the exit button does not work and Im working on the .conf file
to decide what write in there (so it dont save the settings)

The night light mode works,
the "moodable about" and "moodable window mode" works (if the user launche the application being root the background should have the mood color, otherwise a normal user should have the relative background choosed for the 'desktop').

The 'device model check' should be there and working: no led for n8100.

Im removing the battery and light sensor things.
It was fun but its over, no regrets, just move on ciro don't look back...

The '7 different alarm set' is there but pretty sure is buggy for now (nothing too heavy, just need to check a couple of variables around.
For monday everything should be fixed
Happy Sunday

ciroip 2009-02-09 11:21

Re: Flip clock pre pre pre pre release
 
Done, let's me celebrate the 200th post of the thread with this that should be pretty definitive for a while.
https://garage.maemo.org/frs/download.php/5442/fc99.tgz
It should show the right time +/-1min and play the alarms.
It should work on n800 & n810, root&user, day&night.
It should use the user background for the window mode and the about.
https://garage.maemo.org/frs/downloa...pclock99_w.jpg


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

vBulletin® Version 3.8.8