maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Concept: battery widget (https://talk.maemo.org/showthread.php?t=31279)

Jaffa 2009-09-04 15:09

Re: Concept: battery widget
 
Quote:

Originally Posted by Capt'n Corrupt (Post 321516)
Is there support for python/ruby/perl scripting for widgets? A plugin 'wrapper' or something. If not, it would be GREAT to be able to rapidly prototype and roll out widgets.

You could in Diablo: http://talk.maemo.org/showpost.php?p...4&postcount=34

Given the final SDK isn't out for Fremantle, we've not seen the details on doing it for Fremantle - I assume it won't be too different.

livefreeordie 2009-09-04 15:41

Re: Concept: battery widget
 
Quote:

Originally Posted by joppu (Post 321435)
I really want to kinda stick to the Maemo 5/Nokia style and not just copy Apple.

Even if you don't want to copy that design, the reflections on the nipple help it be visible even against a dark background. I'd suggest adding at least something similar.

Capt'n Corrupt 2009-09-04 16:20

Re: Concept: battery widget
 
@Jaffa,

Thanks for that. I figured there was support. Do you have any idea how open the api is to the python interpreter? For example, can widgets have access to accelerometer data? Is perl supported too?

I'm thinking some virtual fish swimming about my display is impressive enough to get me laid.

I may try my hand at a widget for fun! I'd love to have a generic remote-control widget that can execute pre-defined shell commands to do whatever.

It's official, Maemo rox.

}:^|~

qwerty12 2009-09-04 16:25

Re: Concept: battery widget
 
I know nothing of Python but I'm pretty sure that Perl isn't supported due to it lacking GTK+ bindings (for one) in the repository, forget Hildon ones for applications even. :)

Capt'n Corrupt 2009-09-04 16:40

Re: Concept: battery widget
 
A wrapper could take care of that (in a limited way), though it's probably far more trouble than it's worth for the majority of tasks. Thanks for the info!

};^)~

joppu 2009-09-04 16:40

Re: Concept: battery widget
 
Quote:

Originally Posted by livefreeordie (Post 321533)
...visible even against a dark background.

Quote:

Originally Posted by pelago (Post 321490)
although I worry that the outline might be indistinct against a dark background.

Well, the battery itself isn't solid black, it's more reflective. I tested and it seemed to be visible even on an black backround, or what do you think?:
http://i28.tinypic.com/sn2gy9.jpg

Lord Raiden 2009-09-04 16:42

Re: Concept: battery widget
 
Personally, I'd rather have something similar to what my laptop has. IE, it shows the % remaining, and the estimated number of minutes/hours remaining based on current usage patterns over the past 5 minutes.

livefreeordie 2009-09-04 17:16

Re: Concept: battery widget
 
Quote:

Originally Posted by joppu (Post 321564)
Well, the battery itself isn't solid black, it's more reflective. I tested and it seemed to be visible even on an black backround, or what do you think?:
http://i28.tinypic.com/sn2gy9.jpg

Black isn't the worst case. The worst case is a dark image with a pattern that blends into the nipple. I'd add stronger highlights. The rest of the battery is large enough to not really have that issue.

412b 2009-09-05 14:13

Re: Concept: battery widget
 
Percentage and/or timeleft or none (give the user options to configure it :)) on the battery widget looks nice. When I realese new AP and APM, I'll take a closer look at the fremntle's hildondesktop-python, but writting such widget seems to be not a hard thing to do.

igor 2009-09-12 19:39

Re: Concept: battery widget
 
Quote:

Originally Posted by 412b (Post 322080)
Percentage and/or timeleft or none (give the user options to configure it :)) on the battery widget looks nice.

The sad truth is that the power consumption varies so much depending on the use case that it's not really reasonable (imho) to give any estimate about residual use time.

What can be given - somehow - is the residual battery charge.

Of course it all would be much more simple if the battery had an integrated uC like most laptop batteries do.

P.S.
It's cool to be able to post again without having to worry of giving away something considered confidential.


All times are GMT. The time now is 16:57.

vBulletin® Version 3.8.8