Since the airborne transmission of SARS-CoV-2 is the key in the spread of COVID-19, the interest in the quality of the air in enclosed spaces has become utmost importance. Natural ventilation is the first obvious option to improve epidemiological security, and general rules have been widely disseminated. Nevertheless, the changes in weather conditions greatly limit the validity of such rules. Here we present a system that, upon the introduction of basic parameters of a given space, its volume, location, orientation, architectural environment and average occupancy, yields optimized ventilation times on the basis of wind meteorological forecasts. It has been successfully implemented in the educative system of the Autonomous Community of Galicia (northwest Spain) and it is currently operative.