# transit configuration template. # # Copy this to the container host as (for example) # /opt/smart-home/transit/transit.env, fill in real values, and chmod 600 it. # --------------------------------------------------------------------------- # Auth — required. Fails closed while empty, same as every other published # service in this project. Also goes into HA's rest_command config — see # README.md's worked voice-intent example. # --------------------------------------------------------------------------- TRANSIT_TOKEN= # --------------------------------------------------------------------------- # GTFS source — Vorarlberg's own published static schedule (VVV/VMOBIL), via # Austria's national aggregator. Get the real feed URL from: # https://mobilitaetsdaten.gv.at/en/daten/soll-fahrplandaten-gtfs # https://mobilitaetsdaten.gv.at/en/node/308 (the VVV/VMOBIL provider page) # Not a fixed URL this repo can hardcode — the catalog links to per-provider # downloads that can change. Paste the real one here once you have it. # --------------------------------------------------------------------------- GTFS_FEED_URL= # Comma-separated, case-insensitive SUBSTRINGS matched against the feed's own # stop_name field — e.g. "Kennelbach" matches every stop with that in its name # (there may be more than one, different directions/platforms). sync_gtfs.py logs # exactly which stops matched on every run; check that log the first time. GTFS_STOP_NAMES=Kennelbach # --------------------------------------------------------------------------- # Route planning (optional, separate from the GTFS departures lookup above) — a # self-hosted OpenTripPlanner instance this service proxies /plan requests to. # Leave OTP_URL blank to skip trip planning entirely; /departures works either way. # See README.md's "Route planning scope" section before turning this on — a real # OTP graph (OSM + GTFS) is a meaningfully bigger data/hardware commitment than the # small filtered GTFS DB /departures uses, and "how much of the world" is a real # storage/RAM tradeoff, not a config toggle. # --------------------------------------------------------------------------- OTP_URL=http://otp:8080 # OTP2's documented default GraphQL path — VERIFY against whichever OTP version you # actually deploy; OTP1 uses a different REST API shape entirely. OTP_GRAPHQL_PATH=/otp/gtfs/v1 # Meters/second. OTP's own default is ~1.33 (a brisk ~4.8 km/h adult pace); # deliberately slower here (~3.2 km/h) by household preference — override with a # real per-person value if this still doesn't match reality. WALK_SPEED_MPS=0.9 # --------------------------------------------------------------------------- # Run behaviour # --------------------------------------------------------------------------- TRANSIT_PORT=8099 TRANSIT_DB_PATH=/data/transit.db # Used when a voice query doesn't name a stop at all ("when's the next bus" with no # stop specified) — leave blank to require the stop be named every time. TRANSIT_DEFAULT_STOP=Kennelbach LOG_LEVEL=INFO