Hacker News new | ask | show | jobs
by cissikatt 111 days ago
Why would I like to know the weather in some other city?
1 comments

What do you mean? It gets the weather for your city via your IP address, maybe you're on a VPN.
That's a pretty crappy way to detect it seems, it thinks I'm in some city almost a thousand miles away, no VPN, purely direct connection,...
Your IP address doesn't automatically correspond to your city, even without a VPN.
Then add your city as an argument to the curl. It works well enough regardless and doesn't use hundreds of megabytes of RAM which is what the initial complaint was.