libwiiremote is a multi-platform C library for communicating with the Nintendo Wii Remote. This library supports Win32, Linux and Mac OS X. There are ruby binding and java binding.
The function to read the battery level was added.