[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. |
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? |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
nice, would love to have it :D
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Care to share?
Also, IMHO the text too small. 8-) |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
Share what exactly? The source? |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
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... |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Sorry guys, didn't realise zip didn't attach, all good now :)
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
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 :) |
Looking forward for new update
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Bit of an update guys,
Have managed to get the status bar to be locked to the one icon, and have altered the permissions (chmod) so the app can write to it. At the moment the only issue is refreshing the status bar. If you know how to do this, please send me an email. I will make sure to credit your efforts michaelmnb@hotmail.com.au |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
if you can make the text while and bold would look really nice :D
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
@MFaroTusino i can't make it work mate. When using your instructions as on first post i only get a green app icon on my desktop with 'Percent' written under it. When pressed a xterm window appears really quick, like a short flash.
I have a .BatteryWidget folder in /home/user/ How to make it work? Regards Dousan... |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
This may be because the icon hasn't been created properly, or also due to permission issues. Try a few things; 1. The output of; cd /home/user/.BatteryWidget/ ls -a Should be; BatteryWidget.py BatteryWidget_Template.png Icon_Widget.png Percent.sh percent.txt 2. cd /usr/share/applications/ nano BatteryWidget.desktop should have icon=/home/user/.BatteryWidget/Icon_Widget.png If they are all in place, check permissions cd /home/user/.BatteryWidget ls -l And make sure that Icon_Widget.png is owned by/ allowed to be written to and executed by the user and not root Cheers |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Realised the issue many are facing is a dependency issue. Install python and python-imaging from terminal (apt-get install python python-imaging) and all should work.
Sorry that this slipped my mind, have updated the first post |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
Regards Dousan... |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
Regards Dousan... e: i need to tap it twice to update, tried it 4 times after my post and all of them needed a double tap. |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
working now thanks
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
@MFaroTusino any news/update on this fine app/widget/desktop icon?
Regards Dousan... |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
There has been a problem with packaging that I can't seem to fix. That is my first goal for the time being.
I have an action plan to resolve changing the icon in the status bar, and it has been successful. I just need to develop a method of altering multiple files, otherwise I need to refresh the status bar each time, and that will drain more battery. It is taking longer as my uni schedule is pretty heavy at the moment and only have about 6hours a week free. Hopefully shouldn't be too much longer. |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Updated install info is on first post.
Provide some feedback please. |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Install deb file.
Install python python-imaging. chmod 777 /home/user/.BatteryWidget/* chmod 777 /opt/BatteryWidget/* I see icon battery on homescreen but don't see the percent on icon.... |
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
I tap the icon and Terminal is open 1s then close. Nothing on icon......
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9
Quote:
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.1
Autoupdate and tap on it not work. When tap on the icon terminal open and close so fast, i see problem in percent.sh.
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.1
Quote:
chown user /home/user/.Batterywidget/* |
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.1
Quote:
Watting for your update...... |
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.1
Quote:
Hopefully I will solve it in 0.0.3. Thanks for providing important feedback |
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.2
V 0.0.2 has been packaged and uploaded
Text is still misaligned but the double execution of the app to update bug has been fixed. (At least that I can tell.) As always, feedback is essential :) |
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.2
v 0.0.3 is currently being packaged.
Fixes : Terminal window no longer appears Text is back to being centred Font is white as requested (Although I think it is less readable) - Feedback is needed Bugs: Permissions error is still an issue (If you know a solution, PM me :) ) Bold font not yet implemented Update: I have scrapped 0.0.3 and am jumping ahead to 0.0.4 Fixes: Same as 0.0.3 plus; Permissions is no longer an issue Package in App Manager now has icon Bugs: Bold is still not implemented |
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.4
Seems 0.0.4 has an issue executing the postinstall script.
Working on a fix, sorry guys Update: Packaging 0.0.5 now, pretty sure it wil fix the bug from 0.0.4 Fingers crossed |
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.4
V 0.1.1 Now released, DL link if OP
Fixed: Install bug from 0.0.4/0.0.5 Faster execution of code Bugs: Auto update not successful Text not correctly centred As always, give feedback guys. Want to know if you like the White text better. Will release Transparent, Black and White options shortly for comparisons |
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.4
require python?
|
Re: [Announce] Battery Percentage 'widget' for Nokia N9 - V0.0.4
Quote:
|
All times are GMT. The time now is 08:55. |
vBulletin® Version 3.8.8