@Xx_Codeur_xX You could have a look at some of the modules that already does this. They get the weather from the default weather module, no need to redo this as it is already available.
See either of the below.
https://github.com/fruestueck/MMM-WeatherDependentClothes
or
https://github.com/Lavve/MMM-WeatherOutfit/tree/main