View Single Post
  #703  
Old 2011-08-29, 07:50
412b 412b is offline
 
Join Date: Sep 2008
Location: Moscow
Posts: 462
Thanks!: 108
Thanked 550 Times in 203 Posts
Send a message via Skype™ to 412b
Default Re: Pybattery - battery statusbar applet with candies

Quote:
Originally Posted by Estel View Post
As for kp48, bq27x00 module is depreciated, and can't be used together with bme.

ho ever, all bq27200 (fuel gaude) data can be accessed by other means - via i2cget tools.

I've attached file with method of getting data via i2cget. I've took this from shadowjk's bq27200 script. It need i2cget placed in "./", but maybe You can use i2ctools as dependency and use other path for accessing it.

Of course, it requires root privileges, to access data via i2cget.

Currently, it's only thing lacking in Your wonderful application to be fully compatible with kp48, so, if by any chance, You can replace bq27x00 with this, it would be great.

Of course, method via i2cget works also in kp47 or earlier version, so it's more compatible method.
Attachment missing unfortunatelly )
Polling data from i2c can bring additional overhead to APM and partly is an exception of async nature of wrappers in APM, nevertheless, I'll try to make a beta wrapper module for it ASAP, 'cause at the moment I'm more looking into adding Bleeding Edge to AIS than upgrading AP/APM.
Reply With Quote