Skip to content

Instantly share code, notes, and snippets.

View derhuerst's full-sized avatar

Jannis derhuerst

View GitHub Profile
@derhuerst
derhuerst / 01-location.name.http
Created August 13, 2024 00:01
ZVV iOS v2.2.1 HTTP requests
POST https://fpbe.zvv.ch/restproxy/location.name HTTP/2.0
content-type: application/x-www-form-urlencoded; charset=utf-8
accept: application/json
baggage: sentry-environment=prod,sentry-public_key=ff852a2ea3aa4350b43626abc027b8f2,sentry-release=ch.zvv.app%402.2.1%2B2,sentry-trace_id=4283b63db8e74a65b25d054abc5902a9
authorization: Basic Og==
accept-language: en-GB,en;q=0.9
accept-encoding: gzip, deflate
sentry-trace: 4283b63db8e74a65b25d054abc5902a9-0de6a46a665a4982-0
content-length: 65
user-agent: ZVVOneApp/2 CFNetwork/1498.700.2 Darwin/23.6.0
@derhuerst
derhuerst / _notes.md
Last active July 1, 2024 12:53
additional material for a talk on GTFS Pathways & GTFS-RT PathwayUpdates

GTFS Pathways

  • als pathways.txt Teil der GTFS-Schedule/Static-Spezifikation -> statische Daten
  • bildet alle Umsteigebeziehungen in einer Station (Hub) als Graph ab
    • Knoten sind Eingänge/Bahnsteige/etc.
    • Kanten sind Wege/Fahrtreppen/Aufzüge/etc.
    • Achtung: der Graph muss vollständig sein –> wenn Wege fehlen, werden diese von konsumierender Software als nicht existierend angenommen
  • existierende Feeds
    • curl 'https://storage.googleapis.com/storage/v1/b/mdb-csv/o/sources.csv?alt=media' -fsSL | qsv search -s features '\bpathways\b' | qsv select location.country_code,location.subdivision_name,provider,name
    • DE (im DELFI-GTFS): VBB (~500), MVV (~200), SSB/NVBW (~200), HVV (~130), ansonsten vereinzelt
@derhuerst
derhuerst / download.sh
Created June 24, 2024 13:54
Fusion Festival 2024 timetable/lineup
#!/bin/bash
set -eu -o pipefail
curl 'https://timetable.fusion-festival.de/static/js/346.b4b1c224.chunk.js' \
--compressed -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB,en;q=0.5' \
-fsSL \
| node -e 'const bundle = fs.readFileSync(0, "utf8"); globalThis.self = {}; eval(bundle + ""); const chunk = self.webpackChunktimetable[0][1]; const mod = {}; chunk[Object.keys(chunk)[0]](mod); process.stdout.write(JSON.stringify(mod.exports))'
@derhuerst
derhuerst / 01-splashpage-request.json
Created May 25, 2024 14:43
ODEG WiFi portal network requests
{"operationName":"splashpage","variables":{"user_session_id":"7867e542-590c-4154-9a85-df33d5587aff","language":"en","initial":true},"query":"query splashpage($user_session_id: ID\u0021, $language: String\u0021, $initial: Boolean) {
splashpage(
user_session_id: $user_session_id
language: $language
initial: $initial
) {
error {
...Error
__typename
}
@derhuerst
derhuerst / _.md
Created February 16, 2024 10:46
ICE 645 from Essen Hbf to Berlin Spandau

For a long time, there were <6 minutes of delay. In Berlin-Spandau, a delay happened because of a medical emergency.

@derhuerst
derhuerst / ice-572-2023-11-02T19:41:02+01:00-hafas.json
Last active November 4, 2023 01:18
ICE 572 from Mannheim Hbf to Berlin Hbf
{"public":true,"mode":"train","line":{"type":"line","id":"ice-572","name":"ICE 572"},"traveledDistance":166334,"distanceToPreviousStop":4124,"totalDistance":597863,"next":{"type":"station","id":"8010101","name":"Erfurt Hbf","location":{"type":"location","latitude":50.972551,"longitude":11.038499}},"scheduledNext":{"type":"station","id":"8010101","name":"Erfurt Hbf","location":{"type":"location","latitude":50.972551,"longitude":11.038499}},"previous":{"type":"station","id":"8000105","name":"Frankfurt(Main)Hbf","location":{"type":"location","latitude":50.107145,"longitude":8.663789}},"last":{"type":"station","id":"8098160","name":"Berlin Hbf (tief)","location":{"type":"location","latitude":52.525592,"longitude":13.369545}},"passed":[{"station":{"type":"station","id":"8000096","name":"Stuttgart Hbf","location":{"type":"location","latitude":48.784084,"longitude":9.181635}},"arrival":null,"arrivalDelay":null,"arrivalPlatform":"9","departure":"2023-11-02T17:24:39+01:00","departureDelay":99,"departurePlatform":"9","
@derhuerst
derhuerst / _.md
Created November 2, 2023 17:19
ICE 104 from Karlsruhe Hbf to Mannheim Hbf

We left with a delay of 6 minutes, and arrived with a delay of 9 minutes.

@derhuerst
derhuerst / _.md
Created November 2, 2023 16:04
TGV 9575 from Paris Est to Karlsruhe Hbf

There was no delay until Strasbourg; From there till Karlsruhe, there was a delay of 5-10 minutes.

@derhuerst
derhuerst / _.md
Created November 2, 2023 16:00
TGV Ouigo (OGV) 7652 from Bordeaux to Paris Montparnasse

there was no delay

@derhuerst
derhuerst / _.md
Created September 19, 2023 10:08
EC 171 from Berlin Hbf to Praha hl.n.

The was no delay.