I'm stuck with "local weather viewer"

i don´t know what is wrong with the api call to the local weather JSON. Could somebody please tell me what is the problem with my code?

Did https://freegeoip.net/json actually work at any point when you were doing the project? It doesn’t seem to work on CodePen ($.getJSON seems to fail silently) and testing with the fetch API returns a network error. It seems to be an issue with the freegeoip.net API.

Perhaps try replacing with https://ipapi.co/json, it does work with your current code. I hope that helps!