4 ms·
Hmm. "Weather for City: Santa Rosa, Philippines" That's the wrong Santa Rosa, in the wrong country. There's an interesting bug in there somewhere.
by kbenson 10y ago
Hmm. "Weather for City: Santa Rosa, Philippines"
That's the wrong Santa Rosa, in the wrong country. There's an interesting bug in there somewhere.
- deleted 10y ago[deleted]
- scottmf 10y ago> Get city by IP address > Search weather for city
- ChoGGi 10y agoIt accepts airport codes, so you can use the one for Sonoma County Airport (assuming it's close by enough). http://wttr.in/sts http://wttr.in/sts
- SiVal 10y agoTO THE DEVELOPER, FWIW: I'm also in California and it thinks I'm in the Philippines in a town with the same name as one a few miles from here. I assume you use IP to find town, country; throw away country; look up town in a list with country names in alphabetical order (Philippines < United States) Note that even if you get the country right it won't be enough, because there is a "Springfield" in each of the 50 states. You'll have to get keep all of the location info you get from the IP lookup, not throw part of it away and attempt to recover it.
- sillysaurus3 10y agoAs a workaround, you can use your zip code instead. E.g. http://wttr.in/90401 http://wttr.in/90401
- kuschku 10y agoDoesn’t work with German ZIP codes: http://wttr.in/24107 http://wttr.in/24107 or ISO ZIP codes: http://wttr.in/D-24107 http://wttr.in/D-24107
- nkkollaw 10y agoWhy would it work with German zip codes? Zip codes are not universal...
- saghm 10y agoBecause there are people in Germany who want to get the weather?
- swiley 10y agoI think his point is that there would be collisions with every other country so it could only concivably work with one countries zip codes.
- david-given 10y agoThere are countries which don't have zip codes. Turns out that when I'm in the US, I can't use my credit card to order takeaway food online, because they universally require zip code validation, and neither the postcode for my Swiss credit card (8047) or my UK credit card (IV548JS) (both codes modified to protect the guilty) pass the very simple minded zip code validation. ...and Ireland only had them at all since 2015.
- deleted 10y ago[deleted]
- Oletros 10y agoWhy would it work with USA zip codes? Zip codes are not universal...
- notatoad 10y agoyou can also use basic text search, which works internationally: http://wttr.in/santa%20rosa,%20ca http://wttr.in/santa%20rosa,%20ca
- crooked-v 10y ago> Note that even if you get the country right it won't be enough, because there is a "Springfield" in each of the 50 states. D'oh!
- SiVal 10y agoYes, and here's another d'oh: I learned long ago, years before The Simpson's show existed, that there was a Springfield in every state. The show's creators may have heard the same urban legend back in those days before we had that oracle called Google. But, for the first time in all these years, I just went off to check out this claim for myself, and I'm wrong. There is no Springfield, Utah, or Alaska, or North Carolina, for example, and I find no evidence there ever was one in Utah (I didn't check the others), so it's not something that WAS true when I was a kid but no longer is. I don't think it was ever true. D'oh! (All these years.... How many other things do I "know" that aren't true...?)
- abrowne 10y agoI can confirm that it does correctly give me Minneapolis, MN, not Minneapolis, KS, which is what the MacOS Dashboard weather widget would display around 10.5 or so if you entered "Minneapolis".
- QUFB 10y agoI'm definitely not in Santa Clara, Cuba...
- esrauch 10y agoI get the same thing: shows a city in a different country with the same name.