Active Topics

 


Poll: Would you be happy not having the operator name, for Battery Percentage in its place?
Poll Options
Would you be happy not having the operator name, for Battery Percentage in its place?

Reply
Thread Tools
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#1
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.



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.
Attached Images
 
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055

Last edited by MFaroTusino; 2012-08-03 at 11:03.
 

The Following 22 Users Say Thank You to MFaroTusino For This Useful Post:
Posts: 115 | Thanked: 188 times | Joined on Feb 2006 @ Finland
#2
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.. ..anyway, you could use synchonization framework or timed for the auto updating?

Last edited by juhapekka; 2012-02-23 at 08:14.
 
Posts: 87 | Thanked: 66 times | Joined on Jan 2010 @ Australia
#3
nice, would love to have it
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#4
Care to share?

Also, IMHO the text too small. 8-)
 
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#5
Originally Posted by F2thaK View Post
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?
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055
 
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#6
Originally Posted by MFaroTusino View Post
Share what exactly? The source?
The .zip would be good for starters...
 
Dousan's Avatar
Posts: 1,161 | Thanked: 1,707 times | Joined on Jan 2010 @ Denmark
#7
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...
__________________
My Procreate art:
https://folio.procreate.art/dousan

My Søciety6:
http://society6.com/Dousan
 
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#8
Sorry guys, didn't realise zip didn't attach, all good now
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055
 

The Following User Says Thank You to MFaroTusino For This Useful Post:
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#9
Originally Posted by Dousan View Post
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
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055
 

The Following 2 Users Say Thank You to MFaroTusino For This Useful Post:
TMavica's Avatar
Posts: 2,021 | Thanked: 1,060 times | Joined on Apr 2010 @ Hong Kong
#10
Looking forward for new update
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:51.