Acustic 'empty battery warning' ?
john dowd
jdowdster at gmail.com
Mon Dec 22 15:44:44 CET 2008
I'm sure someone has mentioned this application before but just in
case, have you ever heard of using the accelerometer to check the
batter status? The application that I heard about was: when the
application is running, you shake the FR just like you shake an opaque
water bottle to determine if its full or not, the application will
cause the phone to "gurgle" with the appropriate pitch in sound that
you would get if the FR's battery was full, half emtpy or empty.
This would be way kewl!!
Cheers!!
2008/12/20 François TOURDE <fr-om at tourde.org>:
> Le 14230ième jour après Epoch,
> Lothar Behrens écrivait:
>
>> Am 17.12.2008 um 13:16 schrieb Timo Juhani Lindfors:
>>
>>> Lothar Behrens <lothar.behrens at lollisoft.de> writes:
>>>> Is there a way to do this ?
>>>
>>> while true; do
>>> if [ `capacity` -lt 10 ]; then
>>> alert
>>> fi
>>> sleep 120
>>> done
>>>
>>
>> this is a starting point :-)
>
> I've a small script that works as a daemon, checking interval depends
> on the charge (described on a file), play sounds (except when
> charging) depending on the current charge.
>
> There is no doc, no install proc, it's not packaged, but it can be
> done easily...
>
> The config file (default values in the script) contains:
>
> # Les différents niveaux
> THRESHOLDS="100:20:1200: 20:10:600:low 10:5:150:critical 5:0:30:emergency"
>
> Each group of check parms is max:min:delay:sound
>
> If level is between (_max_,_min_), the "aplay" _sound_.wav and wait _delay_
> for next check.
>
> Hope it helps.
>
>
>
> --
> PR: Le serveur (de news) de PacWan est en panne depuis le mois de juillet !
> AT: A mon avis ils vont finir par s'en apercevoir, mais il risque de manquer
> des articles.
> -+- in: Guide du Cabaliste Usenet - La Cabale se propage (mal) -+-
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>
--
John Dowd
jdowd at slashdevslashnull.org
133 Waverley St.
Ottawa Ont. K2P 0V3
Home: (613)234-7884
Cell: (613)316-7884
More information about the community
mailing list