In this work we study the implications of light-quark pionic matter at finite temperatures on the properties of open and hidden charm mesons.
The meson-meson interactions are described by means of a chiral unitary approach
accounting for coupled channels and the finite temperature effects are included using the Imaginary Time Formalism.
The key observables presented here are the spectral function and the pion-induced width at finite temperatures for the mesons $D$, $D^*$ and most importantly $J/\psi$.
As a subsequent application the charmed-meson spectral functions are used to describe the behaviour of a dynamically generated $X(3872)$ in a hot pion bath.