Flooding hits parts of Scotland
Heavy rain has brought flooding to parts of Edinburgh, the Lothians and the Borders.
Lothian Fire and Rescue has taken 140 flooding related calls since midnight, and a flood response team is using sand bags to stem the flow of water in the Stockbridge Colonies area of Edinburgh.
Several roads were shut, and the River Esk and Tyne have seen flooding.
ScotRail said there was disruption to services between Glasgow and the capital due to flooding at Haymarket.
Throughout the day there were 13 flood warnings across the capital, the Lothians and the Borders.
Streets in parts of the north of Edinburgh were turned into rivers, and firefighters used sand bags to stem the flow of water.
Holyrood Road near the city centre and parts of the Trinity area were badly affected. The Edinburgh city bypass has closed earlier but has now reopened.
Graham Inglis, group commander of Lothian and Borders Fire and Rescue, said: "The Colonies area has been badly affected, it has affected the houses but we've been here for a wee while so we're getting on top of it. We've liaised with the public and the police to ensure that they are their property is safe.
"There are other areas across Edinburgh and the Lothians that are still affected.
"I would advise the public to put sandbags at access points, to gather valuables and prepare for evacuation if necessary, if the water is entering their home."
Many other parts of the country were subject to a Sepa flood alert, which means flooding is possible. These are; Ayrshire and Arran, Central, Dumfries and Galloway, Dundee and Angus, Fife, Tayside and west central Scotland.
And fans at T in the Park, Scotland's biggest music festival, faced muddy conditions as rain lashed the site at Balado near Kinross. Crowds of up to 85,000 have flocked to the three-day event, but some campers had to pump water out of their tents.
Meanwhile, the Taste of Edinburgh Festival has cancelled all its sessions after its site at The Meadows was flooded.
The event, from 6-8 July, was due to feature pop-up restaurants, chef demonstrations and exhibitors and 25,000 tickets had been sold.
In a statement, organisers said: "Despite all our planning, over the last 24 hours we have experienced some extremely heavy rainfall and our site at The Meadows has become severely flooded.
"We have been working throughout the night with our health and safety experts and the City of Edinburgh Council Parks Department to do what we can to make the site operational, but despite all our efforts we have been forced to cancel the show.
"This has not been an easy decision and we are all absolutely devastated. So much hard work has gone into making this show happen with the event team, sponsors, restaurants, suppliers and exhibitors all going above and beyond.
"We will be in touch with all ticket holders early next week to arrange refunds."