From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Sorace Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: Date: Thu, 25 Jun 2015 10:49:42 -0400 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: [9fans] Darksky Topicbox-Message-UUID: 5a7e0ab8-ead9-11e9-9d60-3106f5b1d025 I love that Weather Underground is still offering a telnet interface, but I wanted a bit more control over what I get back. I was also trying to get familiar with the nice JSON library bedo did[1], so I wrote up a Darksky client. Get an API key of your own[2] and stick it in $home/lib/darksky, and you can ask for whatever combination of detail or summary data for current conditions, minute-by-minute, hour-by-hour, or day-by-day data you like. It=E2=80=99ll also print any weather alerts in effect for your location. The precipitation graph is maybe a little silly (the unicode block drawing stuff doesn=E2=80=99t provide great granularity). Source in /n/sources/contrib/anothy/src/cmd/darksky.c; man in /n/sources/contrib/anothy/lib/man/darksky.1. [1] https://bitbucket.org/bedo/9son [2] https://developer.forecast.io/register