maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] Battery Percentage 'widget' for Nokia N9 - V0.1.5 (https://talk.maemo.org/showthread.php?t=82526)

MFaroTusino 2012-02-23 07:03

[Announce] Battery Percentage 'widget' for Nokia N9 - V0.1.5
 
1 Attachment(s)
Development of this app has ceased as my goal has been fulfilled. Percentage has been successfully replaced and is available in Unrestricted-System-UI.

I want to say a huge thanks to everyone who supported the app. I suggest you follow any posts regarding USI, and support MAG's efforts.

Also, SPECIAL THANKS to crazyhg for being the one to finally complete what I started. My only regret is not learning QT quick enough to be able to do it myself.


You may have seen my post a while back about trying to replace the N9's battery icon for a percentage. Well I am half way there. At the moment, I am announcing an app Icon widget.

http://i.imgur.com/vywEs.png

This "widget" builds upon THP's IpAddr widget, and a lot of thanks goes to him for his support during the development of my app. I would also like to thank Ejas Mudar (MrModr), Schturman, and NovaG for their help along the way. Also, immi.shk for his icon design for what I've implemented as the charging icon :)

What does it do?
It is simple. Launching the app results in the execution of shell and python script in which the icon of the app is populated with the current percentage. IF the device is in a charging state, this will also be shown.

The percentage is gathered the same way that it does in the Settings>Device>Battery menu, so it is as accurate as it can be (I assume anyway).

There is a lot of work to still be done. All development done on an N950 itself.

APP REQUIRES DEVELOPER MODE TO BE ENABLED

Current Install Method:
If you have V0.0.4 or earlier, remove first and then install v0.1.1 or later. If you have V0.1.1 or later, you can simply install over previous version

Install the latest version
If install doesn't download python and python imaging, do it via xterm (apt-get install python python-imaging)

To Do list:
-Centre "Chrg" Text
-Auto update of percentage (No need to tap icon) [If you know how to create the daemon for a script, please tell me ]
-Successfully replace status bar icon

Current features:
-Transparent/Black/White percentage label (Will use the most popular)
-Displays current percentage/charging status when clicked
-FIXED: bug where app needs to be tapped twice sometimes to update (V0.0.2)
-FIXED: Avoid the terminal window that opens for a split second (V0.0.3)
-FIXED: Deb package (without any terminal input) (V0.1.1)
-FIXED: Increase text size and make bold (V0.1.6)

VERSIONS:
0.0.1 - Initial Release
0.0.2 - Fixed: Execute the app twice to update percentage
0.0.4 - Fixed: No terminal window; Permissions no longer an issue; App Icon in PKG MGR
0.1.1 - Fixed Install of 0.0.4/0.0.5 with code modifications for faster execution (Will remain available for those who wish to have it the way it is shown in the screenshot)
0.1.2 - Removed graphic from background
0.1.3 - Cleaned up the code and put as much of the app as I can outside the home directory
0.1.5 - Fixed bug caused from changing files to /opt/BatteryWidget
0.1.6 - Made text larger and bolder


Any and all feedback/criticism is welcome.

juhapekka 2012-02-23 08:11

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
Have you tried to use the QML BatteryInfo to get all the information, then just use the Qt Creator to do the project and packaging for you :)
http://doc.qt.nokia.com/qtmobility/qml-batteryinfo.html

EDIT: Misunderstood.. need more coffee.. :D ..anyway, you could use synchonization framework or timed for the auto updating?

et3rnal 2012-02-23 10:42

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
nice, would love to have it :D

F2thaK 2012-02-23 10:47

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
Care to share?

Also, IMHO the text too small. 8-)

MFaroTusino 2012-02-23 11:55

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
Quote:

Originally Posted by F2thaK (Post 1168674)
Care to share?

Also, IMHO the text too small. 8-)

I know, I am looking at making it larger. Need to fiddel around still. Like I said, V 0.0.1 still very infant. Lots of improvements to come.

Share what exactly? The source?

slarti 2012-02-23 12:00

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
Quote:

Originally Posted by MFaroTusino (Post 1168694)
Share what exactly? The source?

The .zip would be good for starters...:rolleyes::D

Dousan 2012-02-23 12:01

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
Nice work :)

I also think the txt is to small. Could it be an idea to ditch the battery icon and just have a solid white txt (21%) in the desktop/home screen app icon? It would fit in better with the rest of the UI/app icons imo ;)

Regards Dousan...

MFaroTusino 2012-02-23 12:25

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
Sorry guys, didn't realise zip didn't attach, all good now :)

MFaroTusino 2012-02-23 12:27

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
Quote:

Originally Posted by Dousan (Post 1168699)
Nice work :)

I also think the txt is to small. Could it be an idea to ditch the battery icon and just have a solid white txt (21%) in the desktop/home screen app icon? It would fit in better with the rest of the UI/app icons imo ;)

Regards Dousan...

So just do solid text on the grey app icon? I don't see why not.

This was just done to get the technique of writing data to the image. In status bar, I will just replace the current fill of the battery with text :)

TMavica 2012-02-24 06:31

Looking forward for new update


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

vBulletin® Version 3.8.8