[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: battery status
From: |
Christian Hahn |
Subject: |
Re: battery status |
Date: |
Wed, 10 Nov 2004 13:14:01 +0100 |
User-agent: |
KMail/1.5.4 |
On Wednesday 10 November 2004 11:30, Kun Richárd wrote:
> How can I get to know the status of the battery on a nokia5110?
> Which options should I use?
Hello,
you can try this:
LANG=en; gnokii --monitor 3600 2>&1 | grep "^Battery:"
This display all 3600 seconds a line with the monitoring output like
this:
address@hidden:~ > LANG=en; gnokii --monitor 3600 2>&1 | grep "^Battery:"
Battery: 100
Battery: 100
....
If you want monitoring the battery status for only one time (to use this
in a cronjob) use this patch:
http://savannah.nongnu.org/cgi-bin/viewcvs/gnokii/gnokii/gnokii/
gnokii.c.diff?r1=1.409&r2=1.410
The patch adds the "gnokii --monitor once" option.
Thanks again to Bozo and greets from Kiel, Germany,
Christian
P.S: Kun: sorry for this mail again..
--
mailto:address@hidden for mail&freephone
- battery status, Kun Richárd, 2004/11/10
- Re: battery status,
Christian Hahn <=