by niij · 10y ago · 0 comments
Or just go to http://wttr.in/
That's the wrong Santa Rosa, in the wrong country. There's an interesting bug in there somewhere.
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.
D'oh!
> Search weather for city
For other options see http://wttr.in/:help
https://www.wunderground.com/cgi-bin/findweather/getForecast...
Note you can click the controls at the top right of the graph and add/remove elements. The graph is a bit heavy, but that may be necessary to generate the visualization.
Same trick works for many sites, particularly old media (TV, newspapers, content spam etc).
https://www.weather.gov but mixed content
This is a slow down caused by browser rendering/parsing/JS execution. I'm not sure what the server operating system would have to do with it.
That AngularJS is a slow piece of ... is another part. I coded up a simple Twitter client using Cordova with Angular, scrapped and rebuilt it in jQuery with Cordova (was a test if one can actually build a backendless Twitter app). Such speed, many awesome.
I guess many of the "hipster" JS devs use the latest, max-spec macbook/iphone only and totally ignore the rest of ordinary PCs/average Android phone, or they wouldn't dare to touch Angular and friends even with a pole.
Source: operating a couple Drupal instances.