generator's engine powers the system until the sun comes up, when clean solar energy backed up by battery power replaces the engine, which is switched off. this is all run by a control system, which coordinates all three elements to even out supply and maximize clean energy use and storage. johnny wood...