Hi,
i had the exact same problem and created this script for your Shelly 2.5. Please check it out and let me know if this works for you: https://github.com/gregorjakobi/S…r_automation.js
In the config-part you can adjust the settings, simply copy it to your Shelly in the script section.
You need an OpenWeatherMap API Key, which you can get for free, if you keep the interval low enough (up to 60 views per minute and a total of 1,000,000 views per month).
I check every 5min and thats totally fine.