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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Getting weather via your command line

28 点作者 beghbali超过 12 年前

10 条评论

dbarlett超过 12 年前
<p><pre><code> telnet rainmaker.wunderground.com</code></pre>
评论 #4666559 未加载
评论 #4666611 未加载
dredmorbius超过 12 年前
<a href="http://packages.debian.org/squeeze/metar" rel="nofollow">http://packages.debian.org/squeeze/metar</a>
galaktor超过 12 年前
Using powershell:<p>PS&#62; Get-Weather<p>gives:<p>Location : Secret, Location (ABCD) 12-34N 123-45W 85M Time : Oct 18, 2012 - 02:30 AM EDT / 2012.10.18 0630 UTC Wind : from the SE (140 degrees) at 9 MPH (8 KT):0 Visibility : greater than 7 mile(s):0 SkyConditions : mostly cloudy Temperature : 50 F (10 C) DewPoint : 46 F (8 C) RelativeHumidity : 87% Pressure : 29.18 in. Hg (0988 hPa) Status : Success
eli超过 12 年前
A while backed a hacked a little script to update the LCD display on old HP printers with the current weather: <a href="https://gist.github.com/832730" rel="nofollow">https://gist.github.com/832730</a><p>I doubt it works any more since I don't think that Google Weather API still exists, but it should work if you switch it to Yahoo or one of the others.
amwelles超过 12 年前
I ran across a little CLI called "weatherman" [1] that does this, though you need to input your location manually each time. The data comes from WeatherBug.com, but it seems to work well enough for my purposes.<p>1. <a href="http://darkhorse.nu/software/" rel="nofollow">http://darkhorse.nu/software/</a>
doctoboggan超过 12 年前
I wrote a script a little while back that texts the weather to you every morning. It used google's unofficial weather api.<p><a href="https://github.com/doctoboggan/Wake-up-to-the-Weather/blob/master/textWeather.py" rel="nofollow">https://github.com/doctoboggan/Wake-up-to-the-Weather/blob/m...</a>
评论 #4666960 未加载
jff超过 12 年前
Here's a simpler version that doesn't require PHP or an API key. Only works on Plan 9, though, but you could probably port it.<p><a href="http://plan9.bell-labs.com/sources/plan9/rc/bin/weather" rel="nofollow">http://plan9.bell-labs.com/sources/plan9/rc/bin/weather</a>
评论 #4666473 未加载
评论 #4666370 未加载
worldimperator超过 12 年前
Using windows: Go to window, open, stick your nose out, and you know the weather. Look up to sky to predict weather for next half day.
james2vegas超过 12 年前
weatherspect: <a href="http://robobunny.com/projects/weatherspect/html/" rel="nofollow">http://robobunny.com/projects/weatherspect/html/</a>
donutdan4114超过 12 年前
Well this was a pleasant surprise to find.