Supply of batteries for generator operation