36 Commits

Author SHA1 Message Date
James Lu
31121ae1a8 Weather: fix 'weather' help showing --user and location in wrong order 2018-05-20 13:53:58 -07:00
James Lu
a4f42ed727 Weather: properly return API errors when we receive them 2018-04-27 11:54:50 -07:00
James Lu
88c5cad072 Weather: show states/provinces in 'locationsearch' where available 2018-02-04 11:29:22 -08:00
James Lu
e04f6c5b2d Weather: remove unused _weatherSymbol helper 2018-02-04 11:23:02 -08:00
James Lu
e4c7bc81b8 Weather: show names in 'locationsearch' again 2018-02-04 11:20:13 -08:00
James Lu
1134e8474d Weather: fix potentially corrupt API URLs if features and presets are added in reverse order
This can happen because dict.items() doesn't sort deterministically.

Reported by @jztech101.
2018-01-28 17:30:21 -08:00
James Lu
e61f73fc9d Weather: don't need to add in the api key twice
Reported by @jztech101.
2018-01-28 17:25:05 -08:00
James Lu
063f3e4800 Weather: quick fix to locationsearch
This will be updated again in the future to return the place names like it used to.
2018-01-28 16:28:49 -08:00
James Lu
0f5fdcfefd Weather: fix errors when forecast info isn't available 2018-01-28 16:28:49 -08:00
James Lu
e13eb7203c Weather: rewrite to use the geolookup API
Thanks to @jztech101 for the initial suggestion.

Closes #69.
2018-01-28 16:28:45 -08:00
James Lu
84e376acf5 Weather: remove try/except on getUrl in _wuac()
irc isn't defined in this scope, so this would throw errors trying to raise an error
2018-01-28 14:25:26 -08:00
Julian Zhou
0cc102c3c6 Weather: reword 'no API key configured' error (#68) 2018-01-04 09:41:29 -08:00
James Lu
ff867d3ed5 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.
2018-01-03 19:07:32 -08:00
James Lu
9378aca10f Weather: rewrite 'setweather' help for clarity 2017-11-02 20:20:26 -07:00
James Lu
e32223bb66 Weather: omit the Alerts line completely if none are available
This is otherwise just spam...
2017-10-23 19:46:44 -07:00
James Lu
4452e5af4f Weather: fix last-updated time parsing on values such as "just now" 2017-07-16 06:53:11 -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