summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
AgeCommit message (Collapse)AuthorLines
2022-02-20fix ajax refresh of public status card (trim .html suffix)1.22.1Daniel Friesel-1/+1
2022-02-20Move webhook database queries to Users modelDaniel Friesel-70/+19
2022-02-17Traewelling: more consistent error messagesDaniel Friesel-4/+4
2022-02-16handle missing 'base_url' in travelynx.confDaniel Friesel-1/+9
2022-02-16link traewelling profile from travelynx profile; show traewelling statusDaniel Friesel-0/+21
2022-02-14Use correct base URL when running a command job (work/maintenance)Daniel Friesel-4/+15
2022-01-08Traewelling: Use API v1 for pull sync1.21.4Daniel Friesel-0/+1
API v0 has occasional performance issues and is not a preferable maintenance target
2021-12-12checkout: throw an error when called with empty $stationDaniel Friesel-14/+19
2021-10-30Allow usage of custom hafas-rest-api instancesDaniel Friesel-0/+3
2021-09-12allow registration to be disabled via configDaniel Friesel-2/+5
2021-09-03Ensure that database timezone matches IRIS time zone1.21.1Daniel Friesel-0/+9
All travelynx and IRIS timestamps are Europe/Berlin. And the DateTime objects know that they are Europe/Berlin. However, when inserting into a timestamp with time zone column, Mojo::Pg or one of the backend DBI/DBD libraries does not respect the time zone. So, UTC+1 or UTC+2 timestamps are treated as UTC+0, resulting in major mayhem.
2021-06-12allow users to change their nameDaniel Friesel-0/+2
2021-06-12user_status: Use first available dep_infoDaniel Friesel-1/+1
2021-03-08also show wagon order when sections are unknownDaniel Friesel-1/+0
2021-02-08Do not warn on HAFAS "extra content at the end" (that's just an in-band 404)Daniel Friesel-1/+3
2021-02-06fall back to apps-bahn if ist-wr does not know about a train1.19.5Daniel Friesel-1/+2
2021-01-29Switch to AGPL3+Daniel Friesel-1/+1
2020-12-17remove superfluous ->app callDaniel Friesel-1/+1
2020-12-07warn if a connecting train may not be reachedDaniel Friesel-1/+29
2020-11-28move statistics cache to a separate model classDaniel Friesel-194/+16
2020-11-27Add a bunch of licensing dataDaniel Friesel-0/+4
2020-11-09another log level adjustmentDaniel Friesel-1/+7
2020-11-08add_route_timestamps: adjust log severity1.18.8Daniel Friesel-1/+6
we can't do anything about "trainlink not found", so it really shouldn't be a warning.
2020-10-11Move remaining journeys queries to journeys model classDaniel Friesel-107/+21
2020-10-11move in_transit queries to an InTransit model classDaniel Friesel-269/+148
2020-10-11calculate tripid from trainsearch.exe.Daniel Friesel-26/+34
Removes the need for an additional transport.rest request.
2020-10-08make unknown stations warning more helpfulDaniel Friesel-2/+9
2020-10-06Stats: Fix handling of negative cumulative arrival/departure delays1.18.1Daniel Friesel-1/+16
2020-10-04also allow regionalExpress, just to be safe1.18.0Daniel Friesel-2/+1
2020-10-04HAFAS "national" trips are also trainsDaniel Friesel-3/+5
2020-09-30Allow linking a Träwelling account, auto-sync Träwelling→travelynxDaniel Friesel-23/+228
travelynx→Träwelling is still work-in-progress Squashed commit of the following: commit 97faa6e2e6c8d20fba30f2d0f6e78187ceeb72e6 Author: Daniel Friesel <derf@finalrewind.org> Date: Wed Sep 30 18:50:05 2020 +0200 improve traewelling log and tx handling commit 487d7dd728b9d45b731bdc7098cf3358ea2e206e Author: Daniel Friesel <derf@finalrewind.org> Date: Wed Sep 30 18:02:41 2020 +0200 add missing traewelling template commit 0148da2f48d9a52dcddc0ab81f83d8f8ac3062ab Author: Daniel Friesel <derf@finalrewind.org> Date: Wed Sep 30 18:02:35 2020 +0200 improve traewelling pull sync commit 4861a9750f9f2d7621043361d0af6b0a8869a0df Author: Daniel Friesel <derf@finalrewind.org> Date: Tue Sep 29 22:14:24 2020 +0200 wip checkin from traewelling commit f6aeb6f06998a2a7a80f63a7b1b688b1a26b66bd Author: Daniel Friesel <derf@finalrewind.org> Date: Tue Sep 29 18:37:53 2020 +0200 refactor traewelling integration. login and logout are less of a hack now. checkin and checkout are not supported at the moment.
2020-09-20add explicit empty return statements to promise handlers1.17.3Daniel Friesel-0/+7
2020-09-10handle rejected promises; do not accidentally duplicate rejectionsDaniel Friesel-0/+27
2020-09-06add DBDB helper for wagonorder and stationinfoDaniel Friesel-119/+22
2020-09-03add public profile page and public journey detailsDaniel Friesel-0/+2
2020-08-16Move most journey code to newly introduced Journey modelDaniel Friesel-678/+25
2020-08-15Remove now-useless includeDaniel Friesel-1/+0
2020-08-06Move get_departures to a separate IRIS helperDaniel Friesel-60/+35
2020-07-28Move HAFAS helpers to a separate Helper moduleDaniel Friesel-297/+39
2020-07-27Move user model to a separate moduleDaniel Friesel-402/+11
2020-04-19Add CSV ExportDaniel Friesel-0/+2
2020-04-19improve commute station heuristicDaniel Friesel-34/+0
Select top station on work days (Mo .. Fr) with arrival < 13:00 or departure >= 13:00.
2020-04-19use german locale in epoch_to_dt helperDaniel Friesel-1/+2
2020-04-19get_top_destinations: order by count descDaniel Friesel-1/+1
order is ascending by default, resulting in flop instead of top destinations.
2020-04-19add commute stats. not linked from nav yet.Daniel Friesel-0/+35
2020-04-16Fix occasionally incorrect TripIDs (and thus incorrect polylines)1.15.12Daniel Friesel-14/+32
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-16log train number when encountering a timestamp error1.15.11Daniel Friesel-1/+2
2020-04-16ignore missing timestamps when performing a force checkoutDaniel Friesel-5/+4
2020-04-14use polyline when computing monthly/yearly distance travelled1.15.10Daniel Friesel-5/+6
Closes #40
2020-04-14show select past departures in checkin suggestion listDaniel Friesel-5/+14
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