You need to create a triggered template sensor. Like this:
https://www.home-assistant.io/integrations/template/#trigger-based-handling-of-service-response-data
Though I’d replace the time pattern trigger with a state trigger that monitors the weather entity for updates,
template:
- trigger:
- platform: state
entity_id: weather.whatever
action:
- service: weather.get_forecast
data: etc...