Weather App Module Pattern?

Just wondering if it’s possible to write this code using the module pattern using no global variables. I’m trying and failing bahah

make iife to not polute global namespace
Then return object with his features ( functions ) - ur widget needs
And there u go…