James Lu
a0ddd8e309
Weather: don't require reload on API Key change; reword almanac output ("Average High/Low" instead of "Normal High/Low")
2015-03-13 22:37:31 -07:00
James Lu
914c5c4de3
Finish rewriting parts of the plugin
...
(Closes GLolol/Supybot-Weather#1 )
- Removed configuration option 'disableColoredTemp' (this will likely be readded in the form of a more global, strip-all-formatting option later)
- plugin.py: copy license into file heading
- Remove unused _moonphase function
- Rewrite almanac, astronomy, and forecast (merging multiple if statements into one)
- Update tests and output formatting
Signed-off-by: James Lu <GLolol1@hotmail.com>
2015-03-13 17:18:40 -07:00
James Lu
599d40f19f
Rewriting parts of the plugin... part 1
...
- showImperialandMetric is dropped and now implied
- optlist handling is completely removed since it made already complex code even more so
- Lots of bugs introduced hopefully!
2015-03-11 14:57:33 -07:00
James Lu
b06e59341e
Revert "Quick fix to stop spammers."
...
This reverts commit b0969874a3873462c77115f34f469e4daa4d0a08.
Conflicts:
plugin.py
2014-12-05 19:59:46 -08:00
James Lu
f5178e5aad
Weather: Strip trailing whitespace?
2014-11-29 22:55:02 -08:00
GLolol
80420047e1
Weather: use irc.error() for error messages & update test.py
2014-11-23 11:45:02 -08:00
GLolol
4303cdc3bb
Weather: code cleanup & fix bug in handling gusts
2014-11-22 19:04:09 -08:00
spline
b0969874a3
Quick fix to stop spammers.
2014-11-07 12:55:34 -05:00
James Lu
c3e01edfe2
Use 'from __future__ import unicode_literals' for Py2/3 compatibility
2014-10-23 16:59:38 -07:00
James Lu
d65d8e882a
Merge remote-tracking branch 'upstream/master' into py3-devel
2014-10-23 16:50:49 -07:00
James Lu
78001a0939
Make the plugin start on Python 3 (pushing earlier changes)
2014-10-23 16:48:52 -07:00
spline
85f982b7de
Small workaround if almanac data is not present.
2014-10-23 10:32:26 -04:00
spline
a41d9784ad
Fix object type on almanac, as we should display strings and do math on int forms
2014-10-21 06:21:40 -04:00
spline
f2001531b4
Update lookup strategy for cities. Should fix errors in cities with mispellings.
2014-02-27 17:15:44 -05:00
spline
7e00312900
Some bug fixes.
2014-02-22 09:07:14 -05:00
spline
9f20dc329c
Add in new option showImperialAndMetric. It allows a user to show everything but forecast text with both units, instead of their choice.
2014-02-21 17:27:51 -05:00
spline
0dcbefaa4e
Fix what I previously did..
2014-01-04 11:20:53 -05:00
spline
235916daca
Small fixes. Move to WU autocomplete system to make general queries better.
2013-12-30 12:40:43 -05:00
spline
6803b48c6c
Oops. Forgot to take out one thing.
2013-07-19 17:12:21 -04:00
spline
d8d3bdd55b
Move the httpget and json stuff into its own function. Create relookup for ambig locations so it returns the first result instead of matching cities.
2013-07-19 16:31:39 -04:00
spline
54a79b7ab0
Fix alerts problem with parsing JSON.
2013-07-18 15:44:08 -04:00
spline
156e1029b7
Move logic around so that if a user has settings in the db but checks a different location, it applies (h/t Phibs)
2013-07-06 21:54:27 -04:00
spline
ff4f56e232
Completely redo the user setting system. Updated README with details.
2013-07-05 20:18:09 -04:00
spline
ae28e4eab8
Fix some spacing on output, alerts display, etc.
2013-06-16 20:29:40 -04:00
spline
194ae52481
Massive refactor. Moved internal db over to sqlite. MUST READ README IF USING OLDER VERSION.
2013-06-09 16:34:22 -04:00
spline
f435bcc004
Fix whitespace/lineendings. Add in moonphase for later.
2013-02-02 08:10:29 -05:00
spline
914cd20bc3
Minor changes. Doing symbol translation but not outputting, yet.
2013-01-15 15:05:02 -05:00
spline
43184dab58
Consolidate dbfilename
2013-01-15 14:23:59 -05:00
spline
bd0249965b
Have all disableANSI use the strip method.
2013-01-15 14:22:31 -05:00
spline
584127536a
Fix a bug in wind (mph vs kph), add option to show Updated
2013-01-15 14:19:08 -05:00
spline
8c321f0dd3
Update copyrights. Fix one thing in init. Add an option in config for symbols. Fix up some formatting in output. Add in symbols table. Change over strip to internal supybot method.
2013-01-15 13:51:13 -05:00
spline
6a3758df47
Fix setweather if someone has a city, st input where there is a space.
2013-01-14 15:03:34 -05:00
spline
a3dccd0cd7
Astronomy works now and remove url debugging.
2013-01-06 11:23:11 -05:00
spline
50dfa8d5b7
Fixed _temp finally to display color properly with C/F. Remove testing function since it works.
2013-01-03 13:53:14 -05:00
spline
019a2e2bdc
Remove forecast days. Straight option to display forecast. Fix up temp color conversion. Remove cruff.
2013-01-03 09:21:24 -05:00
spline
29d0cdb199
First version close to being released. There are bugs in here that I will work out.
2013-01-02 19:07:19 -05:00
spline
2698dd8345
Updating all files..
2013-01-02 14:30:01 -05:00
spline
c52748df36
Fix up wind a little bit more.
2013-01-01 06:36:58 -05:00
spline
55ec489f73
More progress..
2013-01-01 06:25:36 -05:00
spline
3fb47e4d12
Beginning work on forecast.
2012-12-31 10:05:12 -05:00
spline
6e4d6fa632
Many, many more updates. Works, partially, but not close to a release.
2012-12-30 16:42:56 -05:00
spline
9723afc6c8
Tons of updates.
2012-12-27 13:29:13 -05:00
spline
24b597ecb3
Initial push.
2012-12-12 23:47:45 -05:00