July and August are typically the warmest months in Midlothian, when the average temperature is 24°C. January and February are the coldest months, when the average temperature is 6°C. August and July are the months with the most rain.