25 Commits

Author SHA1 Message Date
Julian Zhou
db01a84fe9 Weather: reword 'no API key configured' error (#68)
(cherry picked from commit 0cc102c3c65174f71fb7b5ed232cd439b26a4239)
2018-02-01 19:39:51 -08:00
James Lu
500702d328 Weather: time out getUrl requests after 5 seconds
getUrl without a custom timeout seems to wait forever before returning a "Connection timed out" error, and this is really confusing.

(cherry picked from commit ff867d3ed508aad38b5730d8e038a9fe179c805c)
2018-02-01 19:39:51 -08:00
James Lu
b258d0803c Weather: rewrite 'setweather' help for clarity
(cherry picked from commit 9378aca10f2e6ba24aab39fd39778ffbd6c185e6)
2017-11-12 01:42:31 -08:00
James Lu
5c66a22fe9 Weather: omit the Alerts line completely if none are available
This is otherwise just spam...

(cherry picked from commit e32223bb6606b2e2a873378054615a58230a6219)
2017-11-12 01:42:31 -08:00
James Lu
d1c62eea52 Weather: fix last-updated time parsing on values such as "just now"
(cherry picked from commit 4452e5af4fd4977cbe48723b48532f7e0bf09d18)
2017-08-24 19:01:18 -07:00
James Lu
e0d3188719 Weather: add a locationsearch command to look up raw zmw codes 2017-03-09 19:41:26 -08:00
James Lu
a9d27f8bf6 Weather: move JSON decoding into _wunderjson() 2017-03-09 19:16:36 -08:00
James Lu
ba1eb6474b Weather: rewrite autocomplete code to support multiple results internally 2017-03-09 19:00:46 -08:00
James Lu
a8ebadc82e Weather: show a proper error if current conditions couldn't be found 2017-03-09 18:47:26 -08:00
James Lu
364f2d4f6a Weather: return raw ZMW codes as is in _wuac 2017-03-09 18:40:22 -08:00
James Lu
7b4a3ce95a Weather: another fix for "last updated" time normalization 2016-08-03 18:14:39 -07:00
James Lu
2827e54a82 Weather: fix "last updated" formatting for strings with hours instead of minutes 2016-07-27 11:07:14 -07:00
James Lu
370ec80434 Weather: reword last updated time output, and round to nearest minute 2016-07-22 12:24:43 -07:00
James Lu
f5d28c2aa1 Weather: fix almanac API parsing (Closes #46) 2016-03-08 20:07:53 -08:00
James Lu
f132f2cad2 Weather: give a slightly different error if we're looking up someone else's weather, and the target doesn't have a location set 2016-02-16 19:30:58 -08:00
James Lu
c82aaf50a7 Weather: cleanup, use @wrap, allow looking up other users' weather 2016-02-16 19:30:58 -08:00
James Lu
3f1e76384b Weather: don't error if temperature is not available 2015-09-28 13:06:56 -07:00
James Lu
59064f3c05 Update Weather snapshot
Merge remote-tracking branch 'weather/devel'
2015-07-10 09:09:13 -07:00
James Lu
aa7c9b383b Update Weather snapshot 2015-04-25 23:24:42 -07:00
James Lu
939b3ad786 Merge remote-tracking branch 'weather/devel' 2015-04-05 13:29:30 -07:00
James Lu
fc0e0077fc Update Weather snapshot (merge 'weather/devel') 2015-03-27 18:35:10 -07:00
James Lu
54350230d3 Merge remote-tracking branch 'weather/devel' 2015-03-13 22:58:48 -07:00
James Lu
5ebd85c2e7 Merge remote-tracking branch 'weather/devel' 2014-12-11 15:48:39 -08:00
James Lu
ea03b40137 Merge remote-tracking branch 'weather/devel' [ci skip] 2014-12-03 17:14:41 -08:00
James Lu
668d4613b5 Add 'Weather/' from commit 'd77ac9a8e24669f200a692740b7bc664681235ec'
git-subtree-dir: Weather
git-subtree-mainline: 76bb8817b8e07514749c2267ad9ee82ed7886d47
git-subtree-split: d77ac9a8e24669f200a692740b7bc664681235ec
2014-11-29 22:40:33 -08:00