Image caption The Riverside rather than the seaside has been the place to be in Glasgow

Temperatures topped 29C on Scotland's hottest day of the year so far - sparking a warning of overnight downpours and thunderstorms.

The Met Office said the warm air brought a risk of lightning, hail, storms and flash flooding later on Tuesday and into Wednesday morning.

Image caption Aberdeen has seen good weather and hit temperatures hotter than parts of Africa

A Yellow "be aware" warning is in place from 17:00 until 18:00 on Wednesday.

The extent of the thunderstorms is uncertain, but some places could see over 30mm of rain in an hour.

Image caption A morning Nasa image showed patchy cloud and a lot of clear skies

Prestwick in Ayrshire had the day's highest recorded temperature at 29C, followed by nearby Auchnicruvie at 28C.

Image caption Dumfries has been one of the real hot spots for the July heatwave

Shetland was one of the only places in Scotland not to enjoy the sunshine - with the weather largely cloudy with patchy rain and drizzle.

Image caption Stephen Woodcock said it was lovely and sunny on Glasgow Green

Aberdeen - which was sitting at around 19C at lunchtime - was hotter than Nairobi, Kenya.

Heavy, thundery showers are forecast for Tuesday night.

Image copyright Michael Williamson Image caption Michael Williamson sent in this view taken from Dunfermline

The adverse weather could cause disruption on Wednesday morning. Frequent lightning is expected to continue along with high temperatures of 22 or 23C in the afternoon.

What's the weather like where you are? Send us your pictures to newsonlinescotland@bbc.co.uk

Please ensure when filming or photographing an incident that you make your safety and the safety of others a priority.

If you submit an image, you do so in accordance with the BBC's Terms and Conditions