Photovoltaic system for self-consumption on a farm