Skip to content

Commit

Permalink
Show "plattform" as default
Browse files Browse the repository at this point in the history
Those who do not need it can deactivate it via `tableHeaderOrder`.
  • Loading branch information
KristjanESPERANTO committed Feb 2, 2022
1 parent 718d228 commit cc6cda9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MMM-PublicTransportHafas.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Module.register("MMM-PublicTransportHafas", {
showTableHeaders: true, // Show table headers?
showTableHeadersAsSymbols: true, // Table Headers as symbols or written?
showWarningRemarks: true, // Show warning remarks?
tableHeaderOrder: ["time", "line", "direction"], // In which order should the table headers appear? (add "platform" if you like)
tableHeaderOrder: ["time", "line", "direction", "platform" ], // In which order should the table headers appear?
maxUnreachableDepartures: 0, // How many unreachable departures should be shown?
maxReachableDepartures: 7, // How many reachable departures should be shown?
fadeUnreachableDepartures: true,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ These are the possible options:
| `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>|
| `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> |
| `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> |
| `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>|
| `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>|
| `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>|
| `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>|
| `fadeUnreachableDepartures` | <p>A boolean value indicating whether unreachable departures should be dimmed.</p><p>**Type:** `boolean`<br>**Example:** `false` <br>**Default value:** `true` </p>|
Expand Down

0 comments on commit cc6cda9

Please sign in to comment.