Usage of photovoltaics in an automated irrigation system