Autonomous hybrid system for irrigation