[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: battery status
From: |
Kun Richárd |
Subject: |
Re[2]: battery status |
Date: |
Wed, 10 Nov 2004 13:39:29 +0100 |
Hi!
Wednesday, November 10, 2004, 1:14:01 PM, you 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
Works fine, thanks!
--
Ricsi mailto:address@hidden