Commit graph

311 commits

Author SHA1 Message Date
Edward Betts d4dda44768 Add more country flags on the trip list. 2024-05-18 20:29:29 +02:00
Edward Betts 34d7655ace Remove duplicate emoji 2024-05-18 18:02:14 +02:00
Edward Betts 455528125c Improvements to trip list pages 2024-05-18 16:44:18 +02:00
Edward Betts 85ebaf7c84 Show indivudal train legs 2024-05-18 14:23:00 +02:00
Edward Betts 5b2d248955 Use proper arrow in ferry title 2024-05-18 14:22:35 +02:00
Edward Betts f1a472a944 Better airport labels 2024-05-18 14:22:08 +02:00
Edward Betts cd16b857a0 Split trip list into future and past pages
Redo page layout and trip display. Map is now shown on the right.
2024-05-18 12:02:21 +02:00
Edward Betts 3ec7f5c18a Improve duration display 2024-05-16 16:58:07 +02:00
Edward Betts dd59c809e1 Split out busy events code 2024-05-16 16:23:46 +02:00
Edward Betts 7bb6110f45 Split out code for reading events from YAML 2024-05-16 15:21:57 +01:00
Edward Betts 18d8fa6b7c Split out rio_carnival_events function 2024-05-16 15:18:56 +01:00
Edward Betts 78c90b0164 Bug fix ESA detection 2024-05-10 10:16:39 +01:00
Edward Betts c65e60a1f1 Include ferry distances 2024-05-05 14:57:13 +03:00
Edward Betts afa2a2e934 Show ferry routes and terminals on the map 2024-05-01 11:59:21 +03:00
Edward Betts b9b849802d Show ferry bookings in trip list 2024-05-01 08:32:15 +02:00
Edward Betts a5d1290491 Use cached FX rate if fresh rate not available 2024-05-01 08:31:14 +02:00
Edward Betts 6d6e416df3 Adjust travel page to show flights grouped by booking with booking reference and price
Closes: #152
2024-04-20 14:17:32 +01:00
Edward Betts 19732a3ef1 Update to read flights grouped by booking
Closes: #151
2024-04-20 10:23:56 +01:00
Edward Betts 5ab9d93484 Convert prices to GBP and show
Closes: #120
2024-04-20 07:54:29 +01:00
Edward Betts 66ca6c0744 Get more exchange rates 2024-04-18 22:26:04 +01:00
Edward Betts 0fcaf76104 Simplify code 2024-04-17 14:48:18 +01:00
Edward Betts e2afe0ffa4 Show prices for logged in users
Trip prices are visible on trip list, accommodation list,
conference list and travel list.

Prices are hidden if not logged in, except conference prices.

Still need to show prices on individual trip page.
2024-04-17 11:40:13 +01:00
Edward Betts 875f50e684 Fix LUX country code in ESA list 2024-04-16 21:52:30 +01:00
Edward Betts e1688629a3 Trip distance by means of transport: air and rail
Closes: #148
2024-04-16 12:41:00 +01:00
Edward Betts ab60721e15 Move code around a bit 2024-04-16 12:08:14 +01:00
Edward Betts 87aaba64b2 Calculate flight distances 2024-04-06 09:25:32 +02:00
Edward Betts a7296c943b Show trip total distance on trip list page
Closes: #142
2024-04-06 09:24:10 +02:00
Edward Betts fe4bde32ba Include route distances on trips page 2024-04-05 20:17:19 +02:00
Edward Betts 8ef67e0cee Add train route distance info 2024-04-05 15:58:44 +02:00
Edward Betts a607f29259 Validate YAML to catch bad train rotues
Closes: #143
2024-04-05 11:21:51 +02:00
Edward Betts e5325a0392 Hide booking URLs on calendar if not logged in 2024-04-02 10:42:06 +01:00
Edward Betts 748ec3a1bc pass gandi domain end date as date 2024-03-30 19:31:48 +00:00
Edward Betts d813bff812 dockbot is optional 2024-03-30 19:31:29 +00:00
Edward Betts 422cd8aa9d Use gandi API to get domain renewal dates
Closes: #134
2024-03-27 17:47:48 +00:00
Edward Betts cff981eb8b Adjust default event duration to be 30 minutes 2024-03-27 16:37:26 +00:00
Edward Betts 826eafbc86 Add UnknownStation Exception 2024-03-27 16:37:26 +00:00
Edward Betts d690442f0f Add option for unpublished trips 2024-03-26 14:54:02 +00:00
Edward Betts 9d691bee40 Fix trip page that crashes when showing Unicode Kosovo flag
Closes: #139
2024-03-12 15:09:53 +00:00
Edward Betts 4ebb08f68e Add command line utility to validate YAML 2024-03-11 15:58:56 +00:00
Edward Betts f1338e5970 Handle rail journeys without specific time 2024-03-11 10:53:55 +01:00
Edward Betts ff15f380fa Consider current trips for free weekends list
Closes: #138
2024-03-05 12:28:34 +01:00
Edward Betts 4ade643de6 Move UPRN and postcode values to config
Closes: #136
2024-03-05 10:07:28 +01:00
Edward Betts 5fdfd9d533 Generate trip titles from railway station names 2024-02-28 15:49:48 +00:00
Edward Betts 8f749c8e35 Allow unprivileged view
Closes: #101
2024-02-25 09:08:19 +00:00
Edward Betts 5ffb389c53 Add weekend availability view
Closes: #130
2024-02-21 13:06:40 +00:00
Edward Betts 7a9fbcec7b Catch errors from external service and display in alert box
Closes: #129
2024-02-18 22:36:15 +00:00
Edward Betts b66f852256 Avoid space launches with vague dates in agenda
Closes: #127
2024-02-11 07:42:45 +00:00
Edward Betts f54c9cfbb7 Switch to using cards for trip pay layout
Closes: #125
2024-01-30 11:07:28 +00:00
Edward Betts f3304d0ffe We don't need to show GBPUSD 2024-01-30 10:36:42 +00:00
Edward Betts 8b777e64fc Add page to generate a list of trips as text 2024-01-30 10:35:57 +00:00
Edward Betts 6c8e1bf48d Add new conference field 2024-01-25 16:48:31 +00:00
Edward Betts 89ff92c533 Show linked events on trip page
Closes: #124
2024-01-24 12:03:56 +00:00
Edward Betts 6c1c638104 Gap page to show trips
Closes: #90
Closes: #97
2024-01-23 15:59:09 +00:00
Edward Betts d6ebd86232 Add more emojis 2024-01-23 15:57:36 +00:00
Edward Betts f76f9e03da Add trip country_flags method 2024-01-23 15:57:12 +00:00
Edward Betts 6475692db1 Consider accommodation for trip end date 2024-01-23 15:56:23 +00:00
Edward Betts 72e7945fbe Change layout of trip page 2024-01-23 15:55:49 +00:00
Edward Betts fc36647d49 Switch to UniAuth.auth 2024-01-23 10:49:58 +00:00
Edward Betts 5f0d2e884f Add Rio Carnival to agenda 2024-01-22 14:13:02 +00:00
Edward Betts b7d655a21e Conference CFP end dates as events
Closes: #122
2024-01-22 13:04:08 +00:00
Edward Betts cc3dc81bdb Merge branch 'main' of https://git.4angle.com/edward/agenda 2024-01-22 12:46:13 +00:00
Edward Betts bdaad42eba Rename UNIAUTH_URL setting 2024-01-22 12:43:32 +00:00
Edward Betts 389092cbb4 Option to disable auth for testing 2024-01-22 12:43:09 +00:00
Edward Betts d41d53367f Redirect back to agenda after login
Closes: #91
2024-01-21 16:23:46 +00:00
Edward Betts 2b89ff7ff9 Add authentication via UniAuth 2024-01-21 15:55:31 +00:00
Edward Betts 6d65f5045e Ensure space launch JSON can be parsed before saving 2024-01-21 08:07:11 +00:00
Edward Betts 566b09f888 Don't bother with httpx for the space launch API 2024-01-19 21:08:50 +00:00
Edward Betts e16e04ab51 Show more detail on space launch page 2024-01-19 20:35:52 +00:00
Edward Betts e475f98dd6 Use cache for space launch data 2024-01-19 19:53:21 +00:00
Edward Betts ec99289cfa Show conference CFP deadlines
Closes: #105
2024-01-16 20:17:05 +00:00
Edward Betts 6748f8338c Not flying to Belgium 2024-01-16 18:12:48 +00:00
Edward Betts 4b6f4231b7 Bug fix holiday start and end dates 2024-01-16 18:08:11 +00:00
Edward Betts 3a7784bb25 Show unbooked flights in orange
Closes: #114
2024-01-16 17:11:55 +00:00
Edward Betts b33da8485c Include local names on holiday list
Closes: #106
2024-01-16 16:22:04 +00:00
Edward Betts 75d18aed2b Add more emojis 2024-01-16 16:00:41 +00:00
Edward Betts 4638069e51 Move emojis into one place
Closes: #113
2024-01-16 15:32:39 +00:00
Edward Betts 8047cb67fe Bug fix for data from space launch API 2024-01-16 15:05:59 +00:00
Edward Betts 1e9ae2091e Show a geodesic line from LHR to the conference venue if no travel booked
Closes: #111
2024-01-16 12:26:27 +00:00
Edward Betts 69e10db8ef Refactor 2024-01-16 11:35:38 +00:00
Edward Betts 8df94aaafb Code to run from cron to update bank holiday list 2024-01-16 11:12:43 +00:00
Edward Betts 3cb03a787c Add docstring 2024-01-16 11:12:13 +00:00
Edward Betts b061262120 Split code for holidays into separate file 2024-01-16 07:42:44 +00:00
Edward Betts a6a78d18e5 Bug fix conferences can have lat/lon 2024-01-14 21:57:54 +00:00
Edward Betts e6cffdd3d5 Show venue pins on the map
Closes: #108
2024-01-14 21:43:10 +00:00
Edward Betts 1f8d465c6d Show accommodation pins on the map 2024-01-14 21:28:12 +00:00
Edward Betts 36b5d38274 Show map of past trips 2024-01-14 12:17:22 +00:00
Edward Betts fd34190368 Map of all upcoming travel on trips page
Closes: #107
2024-01-14 10:31:51 +00:00
Edward Betts 4a990a9fe5 Move trip code into separate file 2024-01-14 10:14:05 +00:00
Edward Betts e0735b4185 Refresh space launches from cron because API is slow
Closes: #98
2024-01-14 08:04:05 +00:00
Edward Betts ad47f291f8 Add events to trips 2024-01-10 13:27:25 +00:00
Edward Betts 82de51109f import datetime 2024-01-10 13:06:29 +00:00
Edward Betts 199eb82bce Add refresh option for Bristol waste schedule 2024-01-08 15:45:08 +00:00
Edward Betts 1453c4015c Show timings for index page data gathering 2024-01-08 15:22:16 +00:00
Edward Betts cd0ffb3390 Hide LHG run club when on a trip
Closes: #95
2024-01-08 15:20:48 +00:00
Edward Betts 3d16e30aa8 Try and make mypy happy about types 2024-01-08 15:19:20 +00:00
Edward Betts acbad39df7 Download bank-holidays.json if the local copy is unreadable 2024-01-08 15:18:28 +00:00
Edward Betts 50127417f0 Show trip country list in order visited 2024-01-06 09:21:54 +00:00
Edward Betts 21b67bdc64 Show end date for trips 2024-01-05 09:35:56 +00:00
Edward Betts ce9faa654f Add trips page
Creating a new entity called a trip. This will group together any travel
accommodation and conferences that happen together on one trip.

A trip is assumed to start when leaving home and finish when returning
home.

The start date of a trip in is the trip ID. The date is written in ISO
format.

This assumes there cannot be multiple trips one one day. This assumption
might be wrong, for example a morning day trip by rail, then another
trip starts in the afternoon. I can change my choice of using dates as
trip IDs if that happens.

Sometimes during the planning of a trip the start date is unknown. For
now we make up a start date, we can always change it later. If we use
the start date in URLs then the URLs will change. Might need to keep a
file of redirects, or could think of a different style of identifier.

Trip ID have been added to accommodation, conferences, trains and
flights.

Later there will be a trips.yaml with notes about each trip.
2024-01-04 22:56:07 +00:00
Edward Betts 5786e3d575 Make conferences a top-level list 2024-01-04 15:08:12 +00:00