Unfortunately the power-dock application is a binary rather than a python script, but maybe the source code for it is available somewhere? In any case, when I run 'strings /usr/bin/power-dock', I see that the binary contains within it the function "readBatteryLevel", which would indicate either that the power-dock application can access the battery level in software or that they've left an empty function with such a name in order to fill it in later when they add that functionality. I also see this bit of text:
> Reading Battery Level Pins
Level0: %d (GPIO%d)
Level1: %d (GPIO%d)
I suppose based on that, that the battery level might be readable based on the level of a couple of the GPIO pins. I'm not sure which ones are the battery.
According to the help text built into the application, executing 'power-dock -v' should make it run "verbose: lots of output", but all I get when I run that is:
/usr/bin/power-dock -v
> Enabling Battery Indicator LEDs
Can anyone from onion.io confirm whether or not the battery level or other power information can be accessed by software running on the Omega2?