The generator is diesel. The whole thing really works on fossil fuel. To run on electricity, electricity has to make the electricity, or wind or solar or fart power.
Headshake. How do you think the commercial power companies generate electricity? Except for water powered turbines and wind powered generators they all use fossil fuel to generate the electricity. Hydro electric water power is a natural blessing and it is not plentiful. Wind turbines are not cost effective without subsidies. Photovoltaic generation is even less efficient than wind turbines. And it is created as DC not AC. DC may be OK to charge car batteries, but they are impractical because of the size needed.