×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    3

    How to read battery level in Python?

    Is it possible to detect battery level (mA or W) using Python?
    THANK

  2. #2
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: How to read battery level in Python?

    Hi,

    Check the sysinfo module. There's a battery function that return the battery level ranging from 0 to 100. (4.2 sysinfo — Access to system information).

    You can download the doc at sourceforge http://mesh.dl.sourceforge.net/sourc...doc_1_3_18.pdf

    Check the other functions of this module too. They'll probably be useful some day

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  3. #3
    Registered User
    Join Date
    Feb 2007
    Posts
    10

    Talking Re: How to read battery level in Python?

    Hi asimo_san

    As Ifd sir has told that by using sysinfo module you get to know about battery level , by using battery() usually it will range from 0 to 100 so my suggestion is look up vendors brochure for battery specification and depending upon that make an look up table for particular strength what will be the magnitude in volts or amps usually for small changes there is not much difference...


    ENJOY

    Regards

    jillion

Similar Threads

  1. Notification for change in battery level
    By venunet in forum Symbian
    Replies: 4
    Last Post: 2009-05-21, 08:43
  2. Detecting battery level with Javaphone API
    By cassioli in forum Mobile Java General
    Replies: 17
    Last Post: 2007-03-19, 20:16
  3. How to read battery level in J2ME?
    By cassioli in forum Mobile Java General
    Replies: 4
    Last Post: 2007-02-01, 20:19
  4. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44
  5. can you read battery level?
    By scottboham in forum Mobile Java General
    Replies: 0
    Last Post: 2004-11-02, 13:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •