News for hackers. Stuff that matters.
Re:Getting weather via your command line by dbarlett on Wednesday October 17, 2012 @05:15PM (#4666476)

  telnet rainmaker.wunderground.com
[deleted]
Re:Getting weather via your command line by jlgreco on Wednesday October 17, 2012 @06:00PM (#4666614)
Try piping echo into netcat, it makes it a bit simpler. I can post what I use for it a bit later.

edit:

  echo -n "\nPHL\nX" | nc rainmaker.wunderground.com 23 | tail -n +18
Re:Getting weather via your command line by TheGateKeeper on Wednesday October 17, 2012 @06:00PM (#4666611)
and for the automated, try this:

(echo "open rainmaker.wunderground.com";sleep 1;echo "\r";sleep 1;echo "nyc";sleep 1;echo "x";) | telnet

Re:Getting weather via your command line by dredmorbius on Wednesday October 17, 2012 @05:12PM (#4666461)
Re:Getting weather via your command line by galaktor on Thursday October 18, 2012 @03:06AM (#4667758)
Using powershell:

PS> Get-Weather

gives:

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

Re:Getting weather via your command line by eli on Wednesday October 17, 2012 @05:11PM (#4666457)
A while backed a hacked a little script to update the LCD display on old HP printers with the current weather: https://gist.github.com/832730

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.

Re:Getting weather via your command line by amwelles on Wednesday October 17, 2012 @05:03PM (#4666423)
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.

1. http://darkhorse.nu/software/

Re:Getting weather via your command line by doctoboggan on Wednesday October 17, 2012 @06:10PM (#4666643)
I wrote a script a little while back that texts the weather to you every morning. It used google's unofficial weather api.

https://github.com/doctoboggan/Wake-up-to-the-Weather/blob/m...

Re:Getting weather via your command line by onli on Wednesday October 17, 2012 @08:01PM (#4666960)
That api is no more. For izulu, which also used that api, i switched to yahoo.
Re:Getting weather via your command line by jff on Wednesday October 17, 2012 @04:50PM (#4666363)
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.

http://plan9.bell-labs.com/sources/plan9/rc/bin/weather

Re:Getting weather via your command line by nevermore on Wednesday October 17, 2012 @05:15PM (#4666473)
I'm not quite sure why it's so complicated. Their telnet actually has a UI state machine built in.

On any linux computer: nc rainmaker.wunderground.com 23

Re:Getting weather via your command line by jff on Wednesday October 17, 2012 @05:57PM (#4666599)
Sure, I've used the telnet version, but it's nice to say "weather ROC" and get weather.
Re:Getting weather via your command line by koenigdavidmj on Wednesday October 17, 2012 @04:52PM (#4666370)
It's part of plan9port already, for the record.
Re:Getting weather via your command line by jff on Wednesday October 17, 2012 @04:53PM (#4666381)
Must be a recent addition, it's not in my (~3 month old) installation of Plan 9 Port.
Re:Getting weather via your command line by worldimperator on Thursday October 18, 2012 @07:05AM (#4668224)
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.
Re:Getting weather via your command line by james2vegas on Wednesday October 17, 2012 @05:20PM (#4666490)
Re:Getting weather via your command line by donutdan4114 on Wednesday October 17, 2012 @06:11PM (#4666646)
Well this was a pleasant surprise to find.