Daniel Friesel
47b957361e
Move most journey code to newly introduced Journey model
2020-08-16 21:20:23 +02:00
Daniel Friesel
d9624ee308
Remove now-useless include
2020-08-15 08:25:24 +02:00
Daniel Friesel
717cc18a40
Move get_departures to a separate IRIS helper
2020-08-06 16:04:12 +02:00
Daniel Friesel
adaf65dc63
HAFAS: Error handling, perltidy
2020-07-28 14:19:55 +02:00
Daniel Friesel
56c275875c
Move HAFAS helpers to a separate Helper module
2020-07-28 13:01:44 +02:00
Daniel Friesel
f08bdaca5c
Move user model to a separate module
2020-07-27 18:53:22 +02:00
Daniel Friesel
cdb7469f00
webhooks: Add a missing </div>
2020-07-11 23:41:35 +02:00
Daniel Friesel
60bb0b6df5
Start documenting the Travel API
2020-06-13 21:36:48 +02:00
Daniel Friesel
551954cdbc
Add Swagger API docs
...
Work in progress. Only status is documented at the moment.
2020-06-13 20:01:26 +02:00
Daniel Friesel
e27ac328e6
release 1.16
2020-04-19 18:38:07 +02:00
Daniel Friesel
1a79efda32
commute: Re-add year heading
2020-04-19 18:31:29 +02:00
Daniel Friesel
f5fd6d42e1
Add CSV Export
2020-04-19 18:26:20 +02:00
Daniel Friesel
020fe82660
add commuter stats to history page
2020-04-19 18:03:10 +02:00
Daniel Friesel
346f1474bb
commute stats: attempt to weed out non-work stations for auto-fill
2020-04-19 17:49:14 +02:00
Daniel Friesel
5ce4bc6995
improve commute station heuristic
...
Select top station on work days (Mo .. Fr) with arrival < 13:00 or
departure >= 13:00.
2020-04-19 17:40:39 +02:00
Daniel Friesel
a3cfa598a6
use german locale in epoch_to_dt helper
2020-04-19 17:09:02 +02:00
Daniel Friesel
ec83af2523
commute: show weekday name in journey list
2020-04-19 17:06:42 +02:00
Daniel Friesel
94ea5a089f
Commute stats: count days, not journeys
2020-04-19 17:03:02 +02:00
Daniel Friesel
0a87135e35
get_top_destinations: order by count desc
...
order is ascending by default, resulting in flop instead of top destinations.
2020-04-19 16:50:50 +02:00
Daniel Friesel
94932c4102
add commute stats. not linked from nav yet.
2020-04-19 16:49:31 +02:00
Daniel Friesel
50d8256f6f
connections: do not show platform if it is unknown
2020-04-19 11:55:49 +02:00
Daniel Friesel
a3ea4fde95
fix a typo
2020-04-16 16:52:19 +02:00
Daniel Friesel
da05a0e981
maintenance: backpropagate polylines to route entries using pre-1.9.4 format
2020-04-16 16:29:34 +02:00
Daniel Friesel
ac2a23c3fa
Fix occasionally incorrect TripIDs (and thus incorrect polylines)
...
Until now, tripIDs were cached based on station and departure timestamp.
These are identical for any two trains departing at the same time at the same
station, leading to one of those getting being assigned a wrong tripID.
From now on, only the JSON reported by transport.rest is cached -- tripIDs
are always recomputed based on it.
2020-04-16 09:47:31 +02:00
Daniel Friesel
d66cf00d9d
log train number when encountering a timestamp error
2020-04-16 04:55:04 +02:00
Daniel Friesel
e5f273ced3
ignore missing timestamps when performing a force checkout
2020-04-16 04:54:41 +02:00
Daniel Friesel
4cc510d710
use polyline when computing monthly/yearly distance travelled
...
Closes #40
2020-04-14 18:22:49 +02:00
Daniel Friesel
6826c03386
show select past departures in checkin suggestion list
...
Previously, for each destination, up to two departures between now and
now + 40 minutes were shown.
When performing a fresh checkin (i.e., the has not logged a journey in the
past few minutes and is not currently checked in), the departure list now
additionally contains all departures between now - 5 minutes and now.
When checking in from a train (i.e., the user has recently checked out at
the station or is still checked in), it additionally contains all departures
between arrival time and now.
Closes #33
2020-04-14 17:45:09 +02:00
Daniel Friesel
caf97d9cd0
Switch from Travis CI to GitHub Actions
...
Squashed commit of the following:
commit 3dd25e35bb8c9d238e64300494b8c4e05e494bba
Author: Daniel Friesel <derf@finalrewind.org>
Date: Mon Apr 6 10:02:57 2020 +0200
hm
commit 04159061ed7932e2ee4ceca7af9d43a3fca034c5
Author: Daniel Friesel <derf@finalrewind.org>
Date: Mon Apr 6 09:56:19 2020 +0200
no sudo
commit 1d16ec10faa807672433cbab11acd50eee9c8a6f
Author: Daniel Friesel <derf@finalrewind.org>
Date: Mon Apr 6 09:51:54 2020 +0200
Switch from Travis CI to GitHub Actions
2020-04-06 10:07:07 +02:00
Daniel Friesel
56f355741c
Well, that was stupid
2020-03-14 14:57:30 +01:00
Daniel Friesel
e7a6cfa931
Correctly encode non-ASCII e-mail content. Fixes spamfilter issues.
...
New dependency: MIME::Entity
2020-03-14 14:56:02 +01:00
Daniel Friesel
871a44f15e
Do not hardcode From mail address
2020-03-13 18:28:13 +01:00
Daniel Friesel
901cfc50d8
connection view: small QoS icons, order by priority
2020-03-03 19:34:14 +01:00
Daniel Friesel
e6b74ef087
show QoS pictograms in connection list
2020-03-03 18:29:37 +01:00
Daniel Friesel
adaf9f7c0c
landingpage: API also supports checkin
2020-02-26 20:38:01 +01:00
Daniel Friesel
d7f251e51f
public user status: show polyline if available
2020-02-26 18:43:34 +01:00
Daniel Friesel
3c897ad62a
polyline sanity check: Handle border stations and incomplete IRIS routes
2020-02-25 21:25:53 +01:00
Daniel Friesel
1d2b37f849
Ignore polylines which do not agree with IRIS route
2020-02-25 17:55:19 +01:00
Daniel Friesel
5c05ed609f
journey details: show route on map if available
2020-02-23 19:04:05 +01:00
Daniel Friesel
82f043e734
Move map data generation to a global helper function
2020-02-23 18:35:56 +01:00
Daniel Friesel
a15dc1791c
calculate journey distance using polyline, if available
2020-02-21 23:31:50 +01:00
Daniel Friesel
cb53a18898
Release v1.15
2020-02-20 21:02:52 +01:00
Daniel Friesel
32a68b46f1
add _cancelled_departure template
...
was missing from cc7439dd5e
2020-02-20 20:59:29 +01:00
Daniel Friesel
0011e4a18d
user_status: Improve TS lookup performance
2020-02-20 20:58:58 +01:00
Daniel Friesel
57f686b688
allow showing past journeys on shared status page
2020-02-19 20:58:38 +01:00
Daniel Friesel
2652ea6bab
auto-checkout for cancelled departure: guard against destination changes
2020-02-18 17:38:53 +01:00
Daniel Friesel
cc7439dd5e
handle departure cancellation after checkin
2020-02-17 21:13:07 +01:00
Daniel Friesel
a1865fa69e
add privacy setting for showing history and latest arrival timestamp
2020-02-14 16:29:44 +01:00
Daniel Friesel
6cbbc2b16f
avoid stale data when marking cancelled arrivals
2020-02-13 18:35:42 +01:00
Daniel Friesel
a830acc698
Handle cancelled arrival at checkout when departure at checkin is not cancelled
2020-02-12 20:38:24 +01:00