From cc6cda9d9037fc5f3daa92ecb2fe49c0cbf39737 Mon Sep 17 00:00:00 2001 From: Kristjan SCHMIDT <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Wed, 2 Feb 2022 12:35:46 +0100 Subject: [PATCH] Show "plattform" as default Those who do not need it can deactivate it via `tableHeaderOrder`. --- MMM-PublicTransportHafas.js | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MMM-PublicTransportHafas.js b/MMM-PublicTransportHafas.js index 078241b..3bc55e9 100755 --- a/MMM-PublicTransportHafas.js +++ b/MMM-PublicTransportHafas.js @@ -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, diff --git a/README.md b/README.md index b814add..a109313 100755 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ These are the possible options: | `showTableHeaders` |

A boolean indicating whether a table header should be shown or not.

**Type:** `boolean`
**Example:** `false`
**Default value:** `true`

**Note:** If set to `false` no table headings like “time” or “direction” will be shown. Also no symbols are shown.

| | `showTableHeadersAsSymbols` |

A boolean value indicating whether table headers should be shown as symbols or text.

**Type:** `boolean`
**Example:** `false`
**Default value:** `true`

**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.

| | `showWarningRemarks` |

A boolean value indicating whether warnings attached to a trip should be shown.

**Type:** `boolean`
**Example:** `false`
**Default value:** `true`

**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; }`.

| -| `tableHeaderOrder` |

An array determining the order of the table headers.

**Type:** `array`
**Example:** `[ "line", "direction", "time" ]`
**Default value:** `[ "time", "line", "direction" ]`

**Note 1:** If the HAFAS API delivers information about the platforms, you can add here the header `"platform"`.

**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.

| +| `tableHeaderOrder` |

An array determining the order of the table headers.

**Type:** `array`
**Example:** `[ "line", "direction", "time", "platform" ]`
**Default value:** `[ "time", "line", "direction", "platform" ]`

**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"`.

**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"`.

| | `maxUnreachableDepartures` |

An integer value denoting how many unreachable departures should be displayed.

**Type:** `integer`
**Example:** `3`
**Default value:** `0`

**Note:** A departure is unreachable if you can't reach the station in time for the departure with respect to your `timeToStation` setting.
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.

| | `maxReachableDepartures` |

An integer value denoting how many reachable departures should be displayed.

**Type:** `integer`
**Example:** `5`
**Default value:** `7`

**Note:** A departure is reachable if you can make it to the station in time for the departure with respect to your `timeToStation` setting.

| | `fadeUnreachableDepartures` |

A boolean value indicating whether unreachable departures should be dimmed.

**Type:** `boolean`
**Example:** `false`
**Default value:** `true`

|