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-25 06:36

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

mariusmssj 2012-02-25 07:48

Re: [Announce] Battery Percentage 'widget' for Nokia N9
 
if you can make the text while and bold would look really nice :D

Dousan 2012-02-25 11:27

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...

MFaroTusino 2012-02-26 05:56

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

Originally Posted by Dousan (Post 1169537)
@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...

The xterm window is supposed to happen, at least for now. Need to work on that :). So when pressed, the icon doesn't update?

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

tcbl50 2012-02-26 09:23

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

Originally Posted by MFaroTusino (Post 1169833)
The xterm window is supposed to happen, at least for now. Need to work on that :). So when pressed, the icon doesn't update?

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

I'm having the same problem.when I checked the directory /home/user/.BatteryWidget I noticed that the file Icon_Widget.png was not there! I've repeated the script several times but it doesn't seen to create that file. would love to have this app working.

MFaroTusino 2012-02-26 09:43

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

Dousan 2012-02-26 10:04

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

Originally Posted by MFaroTusino (Post 1169884)
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

Cheers mate that did the trick, now working as it should ;)

Regards Dousan...

MFaroTusino 2012-02-26 10:06

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

Originally Posted by Dousan (Post 1169895)
Cheers mate that did the trick, now working as it should ;)

Regards Dousan...

Glad to hear:) How is it with updating? Do you need to tap twice to update occasionally?

Dousan 2012-02-26 10:15

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

Originally Posted by MFaroTusino (Post 1169896)
Glad to hear:) How is it with updating? Do you need to tap twice to update occasionally?

I only need to tap it once to update it. It's not updating by itself.

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.

MFaroTusino 2012-02-26 10:22

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

Originally Posted by Dousan (Post 1169897)
I only need to tap it once to update it. It's not updating by itself.

Regards Dousan...

Okay, for me I occasionally need to run app twice. At this stage (V0.0.1) update is only manually done, by tapping icon. Auto-update should be coming soon :)


All times are GMT. The time now is 22:53.

vBulletin® Version 3.8.8