Predicting Energy Demand Using Machine Learning: Exploring Temporal and Weather-Related Patterns, Variations, and Impacts