Commit graph

89 commits

Author SHA1 Message Date
Evelyn
0c0e8c6b89 NR: list only called/total full count for service 2018-12-20 23:53:40 +00:00
Evelyn
aea215a647 NR: DEM is technically a permitted powertype 2018-12-18 20:30:10 +00:00
Evelyn
45fe512457 NR: fix regression introduced by HTTP util changes 2018-12-17 09:24:18 +00:00
jesopo
793d234a0b 'utils.http.get_url' -> 'utils.http.request', return a Response object from
utils.http.request
2018-12-11 22:26:38 +00:00
jesopo
dd0c5093a0 Remove telegram functionality - it's very broken/outdated and needs a
complete rewrite
2018-12-05 15:53:49 +00:00
jesopo
8b9062b942 Better constifying of color/font chars 2018-11-13 16:02:26 +00:00
jesopo
773d11f6cb Change all instances of stdout.write+return to raise utils.EventError in
modules
2018-10-16 15:09:58 +01:00
Evelyn
6a0dfdc663 NR: Slightly shorten service output 2018-10-04 14:13:13 +01:00
jesopo
69d58eede2 Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
2018-10-03 13:22:37 +01:00
Evelyn
92477e0fba NR: Fix message colouring 2018-10-03 07:19:59 +01:00
jesopo
10ef985a8a Switch to using docstring for usage, permission and require_mode 2018-09-30 17:29:09 +01:00
jesopo
8b0314b190 Use ModuleManager.BaseModule in more modules 2018-09-27 11:46:10 +01:00
jesopo
51a52e2b0e Switch to using @Utils.hook and docstrings for event hooks 2018-09-26 18:27:17 +01:00
jesopo
ecb9d7cb3f Move most code in root directory to src/ 2018-09-24 15:13:27 +01:00
jesopo
a87196c608 Change Utils.color to take a string to wrap in color 2018-09-21 11:39:09 +01:00
jesopo
fcbb7c960c Refactor everything to use delimited events 2018-09-19 13:25:12 +01:00
jesopo
8c6ab17e57 give an Exports object (actually, ExportsContex object) to each module, to
facilitate things like !set and !channelset without using the events system
2018-09-02 19:54:45 +01:00
jesopo
9874f79b49 Give modules event objects with "context"s, to facilitate purging all the event
hooks for a module
2018-08-31 12:55:52 +01:00
Evelyn
b85d7bd3b5 NR: Don't titlecase Eagle station names. This is already done. 2018-02-04 09:42:09 +00:00
Evelyn
922ba20117 NR: Eagle endpoints are now under /json/ going forward 2018-02-04 09:27:35 +00:00
Evelyn
62ac516d1f NR: Indicate interesting activity at locations 2017-12-10 15:20:48 +00:00
Evelyn
c6572bd6f4 NR: 0000 if headcode None 2017-12-04 18:28:13 +00:00
Evelyn
0f1b87a8c9 NR: Work with Eagle's new and improved format 2017-12-04 17:50:11 +00:00
Evelyn
6bdeccac03 NR: bool.get, what 2017-11-03 19:24:27 +00:00
Evelyn
93862e0347 NR: Don't die if Eagle's not here 2017-11-03 19:20:12 +00:00
Evelyn
9588b7520a NR: change eagle ~branding~ 2017-11-02 22:56:00 +00:00
Evelyn
c833d9dbb6 NR: Formatting improvements for external, don't reference non-existent summaries 2017-11-01 12:03:36 +00:00
Evelyn
57dfb56ba7 NR: slightly simplify association summaries 2017-10-31 23:13:16 +00:00
Evelyn
e669b7c2e6 NR: Indicate direction for associations 2017-10-31 11:57:22 +00:00
Evelyn
2055b6656d NR: Full association summaries for SCHEDULE, LDB 2017-10-31 10:58:05 +00:00
Evelyn
6008cbac2c NR: Add date filter 2017-10-29 12:00:08 +00:00
Evelyn
aa6529ab0c NR: Use the same association descriptions for LDB and SCHEDULE 2017-10-23 18:41:00 +01:00
Evelyn
b35a64ae48 NR: Don't assume associations present in eagle output 2017-10-23 16:18:10 +01:00
Evelyn
fa8f7da166 NR: Use SCHEDULE associations 2017-10-23 16:13:58 +01:00
Evelyn
b289909bcc NR: Multiline support for head, include ferry services in nrtrains 2017-10-14 23:11:42 +01:00
Evelyn
84bfe81182 Bitbot can do Telegram now, I guess 2017-09-05 20:50:20 +01:00
Evelyn
5dcbfe588d Increase default period 2017-09-03 06:20:41 +01:00
Evelyn
48fd351089 NR: Shorten times 2017-09-02 12:54:20 +01:00
Evelyn
267edd7c0b NR: Allow displaying CRS only for arrivals/departures 2017-09-02 12:37:08 +01:00
Evelyn
3a7937d0e2 NR: Support Eagle API keys, don't assume platforms are available 2017-09-02 10:11:26 +01:00
Evelyn
f00f1bda94 NR: Eagle now provides a best name via the combined TIPLOC set as 'name', use that 2017-09-01 10:07:21 +01:00
Evelyn
d3d2be44cb NR: Use the actual name field 2017-08-31 19:39:04 +01:00
Evelyn
0822d323bc NR: Take platforms from SCHEDULE if not available in LDB 2017-08-31 19:08:09 +01:00
Evelyn
a78b713268 NR: List delayed trains properly, strip prefix 2017-08-29 22:53:49 +01:00
Evelyn
e69a0c3937 NR: Expand period 2017-08-27 14:46:16 +01:00
Evelyn
f6766ae477 Implement 'time' parameter 2017-08-27 14:41:11 +01:00
Evelyn
9d62e6f301 Add power/inferred tops filtering to nrtrains 2017-08-11 10:03:05 +01:00
Evelyn
bc94c862c1 NR: Allow null scheduled times, add inferred power/class if available in both modes, titlecase scheduled only location names 2017-06-05 14:25:05 +01:00
Evelyn
9ef5af3894 NR: Prefer LDBSVWS for headcodes 2017-05-30 22:25:12 +01:00
Evelyn
7e19fbe047 NR: I really hate SOAP. Don't break if you don't have a LDBSVWS query 2017-05-30 22:17:30 +01:00