import os from pathlib import Path DATA_DIR = Path(os.environ.get("TRAINPULSE_DATA", "/var/lib/trainpulse")) FEEDS_DIR = DATA_DIR / "feeds" # fertig aufbereitete Fahrpläne, ein Ordner pro feed_version TZ = "Europe/Zurich" # Schweiz: offizieller GTFS-Fahrplan + GTFS-RT (Trip Updates) von opentransportdata.swiss GTFS_URL = os.environ.get("TRAINPULSE_GTFS_URL", "") # leer = automatisch das aktuelle Fahrplanjahr RT_URL = os.environ.get("TRAINPULSE_RT_URL", "https://api.opentransportdata.swiss/la/gtfs-rt") RT_KEY = os.environ.get("TRAINPULSE_RT_KEY", "") RT_INTERVAL = 35 # Sekunden; Limit sind 2 Abfragen/Minute (Sliding Window) OSM_URL = os.environ.get("TRAINPULSE_OSM_URL", "https://download.geofabrik.de/europe/switzerland-latest.osm.pbf") PFAEDLE = os.environ.get("TRAINPULSE_PFAEDLE", "pfaedle") USER_AGENT = "trainpulse/0.1 (+https://scarriffle.com)"