Skip to content

Commit cc6cda9

Browse files
Show "plattform" as default
Those who do not need it can deactivate it via `tableHeaderOrder`.
1 parent 718d228 commit cc6cda9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MMM-PublicTransportHafas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Module.register("MMM-PublicTransportHafas", {
4141
showTableHeaders: true, // Show table headers?
4242
showTableHeadersAsSymbols: true, // Table Headers as symbols or written?
4343
showWarningRemarks: true, // Show warning remarks?
44-
tableHeaderOrder: ["time", "line", "direction"], // In which order should the table headers appear? (add "platform" if you like)
44+
tableHeaderOrder: ["time", "line", "direction", "platform" ], // In which order should the table headers appear?
4545
maxUnreachableDepartures: 0, // How many unreachable departures should be shown?
4646
maxReachableDepartures: 7, // How many reachable departures should be shown?
4747
fadeUnreachableDepartures: true,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ These are the possible options:
131131
| `showTableHeaders` | <p>A boolean indicating whether a table header should be shown or not.</p><p>**Type:** `boolean`<br>**Example:** `false`<br>**Default value:** `true`</p><p>**Note:** If set to `false` no table headings like “time” or “direction” will be shown. Also no symbols are shown.</p>|
132132
| `showTableHeadersAsSymbols` | <p>A boolean value indicating whether table headers should be shown as symbols or text.</p><p>**Type:** `boolean`<br>**Example:** `false` <br>**Default value:** `true` </p><p>**Note:** If set to `true` table headers will use symbols, else text will be shown. This setting is only effective if `showTableHeaders` is set to `true`. The shown text is available in English and German. Feel free to add translations to this project.</p> |
133133
| `showWarningRemarks` | <p>A boolean value indicating whether warnings attached to a trip should be shown.</p><p>**Type:** `boolean`<br>**Example:** `false` <br>**Default value:** `true` </p><p>**Note:** If set to `true` and a warning is attached to a trip it will be shown in a additional row. This default width of this row is `80ch`, the whole table is then given this width. If you want to change that, set a different value in your `custom.css` such as: `.pthWarningRemarks { width: 70ch; }`.</p> |
134-
| `tableHeaderOrder` | <p>An array determining the order of the table headers.</p><p>**Type:** `array`<br>**Example:** `[ "line", "direction", "time" ]` <br>**Default value:** `[ "time", "line", "direction" ]` </p><p>**Note 1:** If the HAFAS API delivers information about the platforms, you can add here the header `"platform"`.</p><p>**Note 2:** Sort the table headings as you like it. Please keep in mind that you must use the values `"line"`, `"time"`, `"direction"` and `"platform"`. These will be the only ones the module recognizes.</p>|
134+
| `tableHeaderOrder` | <p>An array determining the order of the table headers.</p><p>**Type:** `array`<br>**Example:** `[ "line", "direction", "time", "platform" ]` <br>**Default value:** `[ "time", "line", "direction", "platform" ]` </p><p>**Note 1:** If the HAFAS API does not provide information about the platforms of your station, you can remove the column here by removing `"platform"`.</p><p>**Note 2:** Sort the table headings as you like it. Please keep in mind that you can only use the values `"line"`, `"time"`, `"direction"` and `"platform"`.</p>|
135135
| `maxUnreachableDepartures` | <p>An integer value denoting how many unreachable departures should be displayed.</p><p>**Type:** `integer`<br>**Example:** `3`<br>**Default value:** `0`</p><p>**Note:** A departure is unreachable if you can't reach the station in time for the departure with respect to your `timeToStation` setting.<br>Sometimes it is useful to set this option to a value greater than `0` if you are the type of person which walks really fast. Maybe other users of the mirror usually take 10 minutes to the station but you take only 5. So you’ll see also departures the other users couldn’t reach.</p>|
136136
| `maxReachableDepartures` | <p>An integer value denoting how many reachable departures should be displayed.</p><p>**Type:** `integer`<br>**Example:** `5` <br>**Default value:** `7` </p><p>**Note:** A departure is reachable if you can make it to the station in time for the departure with respect to your `timeToStation` setting.</p>|
137137
| `fadeUnreachableDepartures` | <p>A boolean value indicating whether unreachable departures should be dimmed.</p><p>**Type:** `boolean`<br>**Example:** `false` <br>**Default value:** `true` </p>|

0 commit comments

Comments
 (0)