summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Helper/Traewelling.pm
AgeCommit message (Collapse)AuthorLines
2023-08-13synchronize non-train checkins from traewelling to travelynxBirte Kristina Friesel-0/+2
2023-08-07Traewelling: replace legacy password login with OAuth2Birte Kristina Friesel-78/+0
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-07-13perltidyBirte Kristina Friesel-7/+21
2023-07-13Checkin: Use correct visibility when pushing to TräwellingnetworkException-0/+16
2023-07-03update ALL the copyright notices!Derf Null-1/+1
2023-06-24time to flush the name cacheDerf Null-1/+1
2023-02-19update ze copyrightDaniel Friesel-1/+1
2023-01-07log traewelling sync HTTP status to influxdb1.29.6Daniel Friesel-8/+15
2023-01-07Traewelling: fix 'already checked in' error for API v11.29.5Daniel Friesel-2/+2
2023-01-07traewelling checkin: add missing ibnr field to API payloadDaniel Friesel-0/+1
2022-12-23always store traewelling errors in debug modeDaniel Friesel-11/+2
for the most part, they're not actionable. also, they're already available in user logs.
2022-11-10Traewelling: Use API v1 for checkin as wellDaniel Friesel-3/+4
2022-10-31Traewelling: Use API v1 for login/logout. v1 checkin does not work yet.Daniel Friesel-14/+14
2022-08-17traewelling: more detailed error messagesDaniel Friesel-16/+30
2022-07-09Traewelling Pull: Only fetch most recent statusDaniel Friesel-2/+2
This feature was recently added to Traewelling and should improve efficiency on all sides.
2022-07-03Traewelling: Custom log message für 409 Conflict; include raw error otherwise1.22.7Daniel Friesel-0/+13
2022-07-03Traewelling: Fix utf8 in log messagesDaniel Friesel-0/+1
2022-05-28Traewelling: Use newly added EVA IDs for station mapping1.22.5Daniel Friesel-2/+2
2022-03-06Traewelling: checkin: HTTP 401 is mostly harmless, tooDaniel Friesel-1/+4
401 typically indicates an expired login token
2022-02-17Traewelling: more consistent error messagesDaniel Friesel-2/+2
2022-02-16link traewelling profile from travelynx profile; show traewelling statusDaniel Friesel-3/+4
2022-01-08Traewelling: Use API v1 for pull sync1.21.4Daniel Friesel-21/+18
API v0 has occasional performance issues and is not a preferable maintenance target
2021-07-01Pass scheduled arrival and departure times to Traewelling API1.20.2Daniel Friesel-0/+26
This ensures unambiguous checkins for ring lines. See https://github.com/Traewelling/traewelling/commit/eaf975a3337a151c4759428747342ce49eadea47
2021-02-21Traewelling: Ignore HTTP 406 on checkin as well1.19.7Daniel Friesel-1/+1
HTTP 406 indicates that a user has not accepted the ToS / privacy policy
2021-02-06Traewelling: Do not warn on 409 ConflictDaniel Friesel-1/+6
2021-02-02Remove workaround for https://github.com/Traewelling/traewelling/issues/72Daniel Friesel-17/+7
Issue has been fixed
2021-01-29Switch to AGPL3+Daniel Friesel-1/+1
2020-11-27Add a bunch of licensing dataDaniel Friesel-0/+3
2020-10-17Traewelling: use the recently added login token expiry fieldDaniel Friesel-22/+28
2020-10-04Traewelling can't seem to decide on date formatsDaniel Friesel-4/+15
2020-10-04Traewelling: Add missing "Accept: application/json" header to API requestsDaniel Friesel-19/+12
2020-10-04Traewelling checkin: Handle invalid / revoked bearer tokensDaniel Friesel-0/+13
2020-10-04add toot and tweet settings to traewelling checkinDaniel Friesel-1/+3
2020-10-04Traewelling: Warn when bearer token is about to expireDaniel Friesel-3/+11
2020-10-04Traewelling: note that traewelling.de doesn't yet return statusId on checkinDaniel Friesel-0/+4
2020-10-03sync travelynx -> Träwelling: add commentDaniel Friesel-0/+4
2020-10-01log error when trip_id is missingDaniel Friesel-0/+1
2020-10-01allow checking into traewellingDaniel Friesel-55/+61
2020-09-30Allow linking a Träwelling account, auto-sync Träwelling→travelynxDaniel Friesel-0/+332
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.