add batteryinfo.rb