db-iris - Interface to the DeutscheBahn online departure monitor
db-iris [-r] [-c classlist] [-d date] [-o output-flags] [-p platforms] [-t time] [-T typelist] [-v|-V via] station
db-iris is an interface to the DeutscheBahn departure monitor available at https://iris.noncd.db.de/wbt/js/index.html.
It requests all departures at station and lists them on stdout, similar to the big departure screens installed at most main stations. station can be either a DS100 station code (such as "EE") or a normal station name (such as "Essen Hbf" or "DO Universität"). If no exact match is found, db-iris will try to find station names containing station as a substring.
An exclamation mark (
!) next to a platform indicates that it is not the scheduled one.
Comma-separated list of train classes to filter by. Using this option causes all trains whose class is not in classlist to be discarded.
Valid classes are:
D Non-DB train. Usually local transport F "Fernverkehr", long-distance transport N "Nahverkehr", local and regional transport S S-Bahn, rather slow local/regional transport
Request results for date in dd.mm. oder dd.mm.YYYY format. Note that only slight (a few hours max) deviations from the current time are supported by the IRIS backend, larger ones will not return data.
Return only those results which are less than int minutes in the future. Defaults to 240 (4 hours).
Note that this is only an upper limit, not a guarantee to get every train with a departure in less than int minutes. This guarantee holds only for int below 120. However, any non-negative number is accepted for this option.
For each result, output outputtypes in addition to the normal time, delay, line and destination information. outputtypes is a comma-separated list, this option may be repeated. Each output type has both a short and long form, so both
--output=times,delay is valid.
Valid output types are:
If a train is delayed, show the most recent reason for this delay.
List all delay reasons entered into the IRIS for each train, even if the particular train is on time by now.
Show the entire route of all trains (both before and after station).
List all messages (delay and qos) entered into the IRIS with timestamps.
List all quality of service messages entered into the IRIS. These contain information like "Missing carriage" or "Broken air conditioning".
Note that some qos messages may supersede older ones. supersed messages are omitted, use the m / messages type to see those as well.
Show up to three stops between station and the train's destination.
Show both scheduled and expected arrival and departure times.
Only show arrivals/departures at platforms (comma-separated list, option may be repeated). This applies to actual departures, not schedules.
Show estimated instead of scheduled time where available. Cannot be combiled with
Request results for time in HH:MM oder HH:MM:SS format. Note that only slight deviations (a few hours max) from the current time are supported by the IRIS backend, larger ones will not return data.
Comma-separated list of train types to filter by. Using this option causes all arrivals/departures whose type is not in typelist to be discarded.
The following valid values are known:
local transport: IR Inter-Regio (rare in Germany, mostly used in Switzerland) IRE Inter-Regio Express (rare) RB Regionalbahn (slower than RE) RE Regional-Express S S-Bahn regional/interregional transport: D "Schnellzug" (generic fast train, rare) EC Eurocity IC Intercity ICE Intercity-Express THA Thalys
Depending on the city and country, other types may be used as well. Examples include "ABR" / "NWB" (private trains included in the local transport tariff system), "HKX" (private train not included in any DB tariffs) and "SBB" (unknown swiss train class)
Only show trains serving viastation after station. In this case, viastation must match the station as contained in the train's route (see -of), DS100 codes are not supported.
Only show trains serving viastation after station. Show result timestamps as "HH:MM -> HH:MM +x", where the first time is the scheduled departure (without delay) at station and the second the scheduled arrival (also withoyt delay) at viastation. If a delay is known, it will be indicated by +x.
Note that here, viastation must be a regular station name or DS100 code.
Caveat: Some trains change their identity along the route. For instance, the line RE11 line in NRW has two identifiers, one for Mönchengladbach <-> Duisburg and one for Duisburg <-> Hamm. track-via is not able to handle those and will miss trains changing their identifier between station and viastation
Show version information.
Zero unless things went wrong.
Copyright (C) 2013-2014 by Daniel Friesel <firstname.lastname@example.org>
This program is licensed under the same terms as Perl itself.