Temperatures are expected to be in the high 90s on Saturday and Sunday, and Mayor Bill de Blasio is advising New Yorkers to stay indoors to avoid this weekend's extreme heat.

The mayor announced on Friday that both the New York City Triathalon and OZY Fest in Central Park have been canceled due to weather.

He encouraged residents to check on elderly neighbors and be conscious of electricity use.

"The message I want to keep getting across to all New Yorkers is, take this weather seriously," de Blasio said. "We have not seen temperatures like this in at least seven years. We haven't seen this many concentrated hot days in a long, long time. Take this very seriously."

The city's Olympic-sized and intermediate pools will be open until 8 p.m. through the weekend, and beaches will be open until 7 p.m.

Meanwhile, Con Edison says it's confident the power will stay on through the extreme temperatures.

Tim Cawley, the president of the utility, broke down their strategy to stay on top of outages during the heat wave.

"We do a few things," Cawley said. The first is, you see it here, we establish this command post to make sure that all functions of the company are focused on the same thing, safe and reliable operation should events occur. We have augmented our staffing considerably, so we have 4,000 women and men out there in the streets, both monitoring the equipment and, should events occur, jumping on it so that we can minimize any impact to our customers."

If you experience an outage, you're asked to report it at coned.com.