Neither openweathermap (since the famous API V2.5 Deprecation) nor pirateweather work.
I’ve attempted to get both working for a reasonable amount of time.
To no avail.
Openweather remains with wrong api key error (tried recommended solutions from this forum, new keys, wait for days, play around with intervals etc. etc.).
Pirateweather custom_component (vanilla and 1:1 legacy alternative) return a python error (google returns 0 results on that one).
I’m giving up on these two.
Does anyone have a working weather integration with core-2021 homeassistant container?
you are likely to run into the same problem using any newer integration on a 4 year old system.
and no one can know which integrations will work anymore on such an old system because no one is still running that old of a system and has any experience with which integrations might still work on it. So it’s probably impossible to help you.
the best you can do is try each of the available weather integrations to see if they will work. You might get lucky.