McDonald's is installing digital menu boards at restaurants nationwide that will make food recommendations based on the weather.

When it's cold out or raining, for example, the digital menus might recommend heartier meals and hot drinks.

"It can monitor temperature outside and it will know which products sell better at hotter or colder temperatures and promote those products," McDonald's US President Mike Andres said at an investor meeting in New York City on Tuesday.

The boards will show moving images of McDonald's food to better engage customers and bring their attention to certain products.

McDonald's new digital menu boards will recommend food based on the weather. McDonald's Andres said customers ended up spending more on every transaction in restaurants where the new menu boards were tested in Canada.

In addition to the weather, the menu boards will also track the time of day to promote breakfast products in the morning, then switch over to lunch, dinner, and snack items at the appropriate times.

The menu boards will be installed at all US restaurants by the end of next year.

Andres also provided an update on the company's all-day breakfast launch, saying more than 15% of purchases outside of the morning time now include breakfast items.