Birte Kristina Friesel
4d044fb98a
Fix connection display for Travel::Status::DE::HAFAS 5.x
2023-12-27 11:16:38 +01:00
Birte Kristina Friesel
6364751eb1
HAFAS: Use locationSearch rather than similar_stops_p
...
locationSearch uses mgate.exe, just like the regular departure board.
similar_stops_p relies on ajax-getstop.exe which may become unavailable sooner
rather than later.
2023-11-01 18:44:00 +01:00
Birte Kristina Friesel
fd43d818f9
increase level of caution
2023-10-01 10:51:58 +02:00
Birte Kristina Friesel
cbc433f76c
suggested connections: avoid fetching IRIS trains via HAFAS
2023-10-01 10:49:36 +02:00
Birte Kristina Friesel
aaeb81a5d2
store related stations; respect them when looking up connections
2023-10-01 07:11:58 +02:00
Birte Kristina Friesel
2638dd36fb
connections: do not show cancelled trains twice
2023-09-26 20:26:12 +02:00
Birte Kristina Friesel
de074342de
add support for HAFAS connection suggestions; drop manual destination list
...
Still TODO: handle stations that have several EVAs
2023-09-24 18:19:17 +02:00
Birte Kristina Friesel
8810acf742
/s: support filter by trip_id; only allow train filter in IRIS mode
2023-09-17 15:50:11 +02:00
Birte Kristina Friesel
f4d71b4d9f
obtain autocompletion from database
2023-08-26 09:17:28 +02:00
Birte Kristina Friesel
559a1cedd7
manual station entry: fix HAFAS redirect
2023-08-26 09:15:33 +02:00
Birte Kristina Friesel
d313ca7fc1
resolve unknown/ambiguous stop into list of stops
2023-08-24 21:26:00 +02:00
Birte Kristina Friesel
9b66e2779d
geolocation: Fix 'hafas=undefined' links for iris stops
2023-08-24 21:11:45 +02:00
Birte Kristina Friesel
8f747fff91
sort HAFAS/IRIS stations by distance
2023-08-20 16:52:09 +02:00
Birte Kristina Friesel
b85e8a1e04
API: Support HAFAS checkin (via journeyID)
2023-08-19 12:43:43 +02:00
Birte Kristina Friesel
85022709d7
API: fix checkin with toStation and checkout endpoints
...
Broken by 38ad42b42c
2023-08-19 10:06:15 +02:00
Birte Kristina Friesel
54547eb3af
manual station entry: HAFAS support
2023-08-18 20:42:37 +02:00
Birte Kristina Friesel
654bde9278
geosearch: always query iris and hafas stops
2023-08-16 18:54:32 +02:00
Birte Kristina Friesel
dfe820952f
station board: add iris / hafas links
2023-08-15 08:37:14 +02:00
Birte Kristina Friesel
8f377d4ee5
traveling: redirect hafas journeys to hafas=1
2023-08-14 12:35:22 +02:00
Birte Kristina Friesel
0604dd80f8
WIP: HAFAS support
2023-08-13 12:51:15 +02:00
Birte Kristina Friesel
8ec002f041
Store traewelling refresh token in database
2023-08-09 19:28:36 +02:00
Birte Kristina Friesel
3ec9970f01
traewelling oauth: pass HTTP redirect_uri in development mode
2023-08-09 19:26:25 +02:00
Birte Kristina Friesel
a08a4be89e
Fix Traewelling OAuth2 behind reverse proxies
...
a reverse proxy makes mojolicious believe that it is using HTTP, even though
it is HTTPS.
2023-08-08 18:15:31 +02:00
Birte Kristina Friesel
52c0da3f46
Traewelling: replace legacy password login with OAuth2
...
This is a breaking change insofar as that traewelling support is no longer
provided automatically, but must be enabled by providing a traewelling.de
application ID and secret in travelynx.conf. However, as traewelling.de
password login is deprecated and wil soon be disabled, travelynx would break
either way. So we might or might not see travelynx 2.0.0 in the next days.
Automatic token refresh is still todo, but that was the case for password
login as well.
Closes #64
2023-08-07 21:17:10 +02:00
Birte Kristina Friesel
38ad42b42c
convert checkout to promises (checkout_p)
2023-07-23 20:18:10 +02:00
Birte Kristina Friesel
13277ad770
checkout: remove with_related special case
...
travelynx now always calls checkout with the database-provided arr_eva,
so the edge case in which it provided a station that is not actually on the
route of a train can no longer appear.
2023-07-23 12:21:37 +02:00
Birte Kristina Friesel
19cd9f7a8d
account: add a list of sent follow requests
2023-07-16 23:01:23 +02:00
Birte Kristina Friesel
f9d1c266ce
action#checkin: re-add auto checkout
...
was removed from $self->checkin in 1074f248cc
2023-07-16 17:20:36 +02:00
Birte Kristina Friesel
b0bb69d87e
show followee checkins in departure board
2023-07-16 10:30:47 +02:00
Birte Kristina Friesel
40bec7774b
cleanup; perltidy
2023-07-16 10:30:23 +02:00
Birte Kristina Friesel
1cca278baa
add timeline / current checkins
2023-07-15 19:20:37 +02:00
Birte Kristina Friesel
cdce746afd
increase maximum comment length
2023-07-15 16:11:21 +02:00
Birte Kristina Friesel
8a422d16f7
Api: use get_departures_p
2023-07-09 19:23:11 +02:00
Birte Kristina Friesel
5b88a4bb3d
station board: fix HTTP status and IRIS error handling
2023-07-09 17:42:12 +02:00
Birte Kristina Friesel
1074f248cc
use promises for checkin and traewelling_to_travelynx
2023-07-09 14:46:28 +02:00
Birte Kristina Friesel
b5723264a7
HAFAS station board: fix station name display
2023-07-09 07:07:31 +02:00
Derf Null
c9bae6fcee
journeys: simplify visibily check
2023-07-03 18:12:34 +02:00
Derf Null
a608ca6781
update ALL the copyright notices!
2023-07-03 17:59:25 +02:00
Derf Null
66e8dcb925
Profile: remove unused compute_effective_visibility function
2023-06-30 19:58:37 +02:00
Derf Null
0e4bafafd8
Profile: refactor visibility checks
2023-06-30 19:58:12 +02:00
Derf Null
a73e2edc86
profile: use effective visibility from journey object
2023-06-29 21:54:25 +02:00
Derf Null
f794d3c0a4
profile: treat self as follower
2023-06-29 21:52:18 +02:00
Derf Null
0702a0edca
Move hash_password to Model/Users
2023-06-26 19:50:49 +02:00
Derf Null
05924f2c67
Login: return HTTP 400 on invalid password or unconfirmed account
2023-06-25 23:28:38 +02:00
Derf Null
b44b770ec3
fine-graned visibility selection of history / past checkins
...
most notably, adds a 'history for followers only' mode
2023-06-24 21:25:14 +02:00
Derf Null
085d77a1fa
time to flush the name cache
2023-06-24 18:36:59 +02:00
Derf Null
ee6470e0d8
status card / profile: fix users being unable to see own travelynx-only status
2023-06-23 22:46:15 +02:00
Derf Null
c5957fbdfd
User: remove legacy public_level / is_public field
2023-06-23 22:43:41 +02:00
Derf Null
a249be1d8b
run webhook when updating checkin comment or visibility
2023-06-18 08:38:55 +02:00
Molly Miller
beb59221e7
Add app version to default stashed values.
...
This means that the version no longer needs to be passed to every version
manually, and is automatically populated in templates where the parameter is
not explicitly provided.
2023-06-12 20:48:01 +02:00