Commit graph

131 commits

Author SHA1 Message Date
Traines
2e094c2b78 initial db-vendo with /journeys (wip) 2024-12-07 16:17:16 +00:00
Kristjan ESPERANTO
66d9fb5194
apply linting rules
follow-up of 228c7253
2024-02-10 16:50:12 +01:00
Jannis R
a157d0b15f
put todos 2024-01-18 15:27:35 +01:00
Jannis R
f29ced5b2d
handle "PROBLEMS" HAFAS error code 2023-12-07 00:55:35 +01:00
Jannis R
793cc9eee5
request: with $HTTP(S)_PROXY, keep connections alive for 10s 2023-07-25 16:09:43 +02:00
Jannis R
f9c24a4a84
https-proxy-agent@7 2023-07-07 19:33:06 +02:00
Jannis R
c2a71b08e8
request: import Buffer 🐛
related: #281
2023-01-06 14:07:30 +01:00
Jannis R
547dd4b2a9
parseDateTime, format{Date,Time}: share Luxon IANAZones 2022-12-03 14:05:30 +01:00
Jannis R
339d64e901
convert to ESM 💥📝 2022-11-18 19:20:03 +01:00
Jannis R
cef6dcaf0f
request: pass whole req body into transformReqBody 🐛 2022-11-18 19:20:03 +01:00
Jannis R
1000e48dfd
handle METHOD_NA/NO_MATCH/PARAMETER errors 2022-11-17 15:17:02 +01:00
Jannis R
9b263bb379
rework error handling 💥📝 2022-11-17 15:17:02 +01:00
Jannis R
0275b65c7a
fetch-ponyfill & pinkie-promise -> cross-fetch 💥
cross-fetch requires `globalThis.Promise` to be present.
2022-11-17 15:17:02 +01:00
Jannis R
7765f9d7a1
lib/request: use async/await, simplify error handling 2022-11-17 15:17:02 +01:00
Jannis R
a81e550f2a
departures{GetPasslist,StbFltrEquiv}: default to false 💥 2022-11-17 15:17:01 +01:00
Jannis R
492fdeb2ef
add profile.randomizeUserAgent flag 📝 2022-11-17 15:17:01 +01:00
Jannis R
a60083f8d1
parse trip.scheduledDays 2022-11-16 15:23:25 +01:00
Jannis R
7ccffa5e51
profile.log{Request,Response}: pass in random request ID 📝 2022-10-07 01:31:12 +02:00
Jannis R
829c9ca461
add profile.log{Request,Response}() hooks 📝 2022-10-06 14:34:38 +02:00
Pieterjan Van Saet
7c68f962c1
parse{Stopover,JourneyLeg, Trip}: expose {arrival,departure}PrognosisType
see #266

Co-authored-by: Jannis R <mail@jannisr.de>
2022-07-22 01:06:35 +02:00
Jannis R
e3a022972c
request: tweak user-agent randomisation
see also https://github.com/deg0nz/MMM-PublicTransportBerlin/pull/67
2022-01-13 14:08:28 +01:00
Jannis R
9c10a1765f
fix request debug-logging 🐛 2021-12-09 18:58:35 +01:00
Jannis R
2fd06941b5
use HTTP keep-alive
1000 locations() requests against DB endpoint, before:
  min     max   sum   mean  stddev
215ms  4351ms  329s  329ms   341ms

after:
  min     max   sum   mean  stddev
160ms   579ms  194s  194ms    37ms
2021-12-09 18:54:46 +01:00
Jannis R
95d2c61fbd
add todos; readme: link to kpublictransport 📝 2021-12-08 14:12:23 +01:00
Marcel
4492b3a376
request.js: Use correct HttpsAgent option for localAddress 2021-11-01 17:40:09 +01:00
Jannis R
a7cb71c870
add todos & comments 2021-10-26 15:00:08 +02:00
Jannis R
ce82817631 DB: add journeysFromTrip() 2021-08-04 15:21:00 +02:00
Jannis R
16e0038fa9 lib/request: use profile.defaultLanguage 2021-05-01 10:58:45 +02:00
Jannis R
7cb6210847 lib/request: validate response content-type 🐛 2021-05-01 10:58:45 +02:00
Jannis R
ebe7c59524
lib/request: fix DEBUG env var switch 🐛 2021-02-17 18:33:18 +01:00
Jannis R
cb8d92befb
configure iface address used via LOCAL_ADDRESS env var 2021-02-07 22:17:02 +01:00
Jannis R
d69d2530ef
add remarksGetPolyline profile flag 2021-01-26 22:26:35 +01:00
Jannis R
51af991e38
lib/request: add profile.(auth|client|ext|ver) to request 2021-01-26 17:26:26 +01:00
Jannis R
4ee062a19d
lib/request: allow string profile.salt 2021-01-26 17:26:26 +01:00
Jannis R
d017e62740 mobil.nrw refreshJourneys(): use outReconL[] instead of ctxRecon 🐛 2021-01-19 12:38:43 +01:00
Jannis R
1a0d97dd28
HVV: disable lines() 🐛 2020-11-28 11:40:51 +01:00
Jannis R
9d8260bf5f add lines() 2020-11-28 11:25:43 +01:00
Jannis R
ed48971fb1 add remarks() 2020-11-28 11:25:43 +01:00
Jannis R
11ca3b171a add tripsByName() method, docs 📝
docs
2020-10-06 22:22:30 +02:00
Jannis R
de86391dcd
support HTTP proxies 2020-09-21 13:18:31 +02:00
Jannis R
4fc4c3b873
fix H9360 error message 🐛 2020-08-01 13:08:53 +02:00
Jannis R
51f4a66bd8
journeys: remove collection of results
Reverts 7fd574f.
See also https://github.com/public-transport/hafas-client/pull/23#issuecomment-370246163 .
2020-07-19 22:58:13 +02:00
Jannis R
dce42bfa31
move trip parsing into parse/trip 2020-06-11 15:34:20 +02:00
Jannis R
3c888a0ea0
refreshJourney: actually throw the error 🐛, add code 2020-04-18 17:14:40 +02:00
Jannis R
9c4189a874 add E2E tests for SVV 2020-04-09 14:33:58 +02:00
Lukas Siemon
1b0133190f
object-scan@13 (improved performance)
closes #173
2020-04-09 01:00:45 +02:00
Jannis R
36a8b388f2
add todos
also remove dead code
2020-03-18 21:45:30 +01:00
Lukas Siemon
8cb7d807f2
improve findInTree performance
by passing a list of paths to find in the tree up front

#154

closes #152
2020-02-22 19:13:56 +00:00
Jannis R
9522e9296d
object-scan@11 2020-02-15 19:24:30 +00:00
Simeon Keske
1c67350b48
move refreshJourneyReq-formatter to own function 2020-02-08 18:05:42 +01:00