Management of renewable energy sources