wttr.in and conky

wttr.in and conky
Previously, the wttr.in service provided a PNG file, but since 2023 it says “PNG support temporarily disabled”.
Well, we Ukrainians are smart and resourceful – then we will make PNG ourselves.
All you need is to install phantomjs and imagemagick:

${voffset 65}
${texeci 10 phantomjs $HOME/phantomjs/rasterize.js http://wttr.in/Kyiv /dev/stdout | convert - -crop 200x140+0+0 -transparent black /tmp/wttr.png}
${image /tmp/wttr.png -p 0,0}

UPDATE: and do not forget to add this line:
imlib_cache_size = 0