Revolutionizing Energy Management: The Critical Role of Real-Time Data in Sustainable Grids