A window module for the thermal regulation, comprising heating or cooling, of a building, comprising: - an outer glazing and an inner glazing wherein between the outer glazing and the inner glazing an intermediate space sealed off against solid materials, in particular dust, is formed; - at least one air-liquid heat exchanger, which comprises a cooling/heating element, through which a fluid flows, with a fluid line in which a heat transporting medium is conveyed, wherein when the window module is installed the at least one air-liquid heat exchanger is arranged at the top, lying horizontally, in the intermediate space so that air can flow through it from the intermediate space; - a separating element, arranged in the intermediate space, which comprises an adjustable solar protection function, which on activation extends essentially in parallel to the outer glazing and the inner glazing and separates the intermediate space into an inner intermediate space and an outer intermediate space in order to produce a rising and falling air flow in the intermediate space, wherein the solar protection function can be activated in cooling operation and activated and deactivated in heating operation, characterised in that - the outer glazing has a lower thermal transmittance (U a) than the inner glazing in order to thermally regulate the interior of the building via the inner glazing; - when the window module is installed the at least one air-liquid heat exchanger is alternatively or additionally arranged at the bottom, lying horizontally, in the intermediate space; and - at least one fan is arranged in the intermediate space which can be operated in several operating modes of the window module, which include cooling operation and heating operation, wherein at least in cooling operation by way of the at least one fan air is conveyed through the at least one air-liquid heat exchanger in order to exchange heat between the air and the heat transporting medium and to convey the air in the intermediate space in a circulation. - an outer glazing and an inner glazing wherein between the outer glazing and the inner glazing an intermediate space sealed off against solid materials, in particular dust, is formed; - at least one air-liquid heat exchanger, which comprises a cooling/heating element, through which a fluid flows, with a fluid line in which a heat transporting medium is conveyed, wherein when the window module is installed the at least one air-liquid heat exchanger is arranged at the top, lying horizontally, in the intermediate space so that air can flow through it from the intermediate space; - a separating element, arranged in the intermediate space, which comprises an adjustable solar protection function, which on activation extends essentially in parallel to the outer glazing and the inner glazing and separates the intermediate space into an inner intermediate space and an outer intermediate space in order to produce a rising and falling air flow in the intermediate space, wherein the solar protection function can be activated in cooling operation and activated and deactivated in heating operation, characterised in that - the outer glazing has a lower thermal transmittance (U a) than the inner glazing in order to thermally regulate the interior of the building via the inner glazing; - when the window module is installed the at least one air-liquid heat exchanger is alternatively or additionally arranged at the bottom, lying horizontally, in the intermediate space; and - at least one fan is arranged in the intermediate space which can be operated in several operating modes of the window module, which include cooling operation and heating operation, wherein at least in cooling operation by way of the at least one fan air is conveyed through the at least one air-liquid heat exchanger in order to exchange heat between the air and the heat transporting medium and to convey the air in the intermediate space in a circulation.