TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: My project : Load and display multiple wind-speed forecasts on one page

2 点作者 derefnull超过 11 年前

1 comment

derefnull超过 11 年前
In the spirit of &quot;shipping it&quot;, I wanted to share this quick project that I made for myself and my friends: <a href="http://derefnull.org/wx" rel="nofollow">http:&#x2F;&#x2F;derefnull.org&#x2F;wx</a><p>As an avid skydiver, I regularly check wind forecasts for multiple drop zones to determine which location is most suitable for the day of jumping. I was tired of manually entering each location each time I checked the weather forecast, so I created this app to simplify the process.<p>This web app will render multiple wind-speed forecasts on a single page for comparison. Once locations are entered in, the user can return to the page and refresh the forecast with a single click.<p>The app is nearly all client side, which is a new paradigm for me. The only server side component is a proxy script I made to get around a browser-side issue (<a href="http://en.wikipedia.org/wiki/Cross-origin_resource_sharing" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cross-origin_resource_sharing</a>)<p>The locations are validated with the Google Geocode API, stored in a client-side cookie (jquery.cookie), and rendered with Raphael JS. Weather forecasts are provided by weather.gov. Additional UI goodies use twitter bootstrap and some custom scripting as glue.<p>Note: this was written a modern browser (tested with apple safari, and google chrome, IE 10)<p>Next iteration : client side app-building is fun, but I think I can improve response time by moving much of the weather.gov queries server-side. This will also allow me to add a slick &quot;share these locations&quot; feature to the app.
评论 #6323461 未加载