A common approach for using weather data in rules is to get the data from a weather device.
This previously was much more common in SmartThings, but it’s less common to see weather ‘devices’ in SmartThings nowadays.
Instead, a common approach is to get weather data from a service like Open Weather Map or OpenMeteo. Some examples for the former are available here: