From fc2553be17fdfc02b5509e88fba3d16030531e57 Mon Sep 17 00:00:00 2001 From: Steven Zemelka Date: Mon, 13 Feb 2023 01:47:05 +0100 Subject: [PATCH] #23 - linter auto fixes --- MMM-Vrr.js | 2 +- README.md | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/MMM-Vrr.js b/MMM-Vrr.js index dc1a03c..f1d81d0 100755 --- a/MMM-Vrr.js +++ b/MMM-Vrr.js @@ -48,7 +48,7 @@ Module.register("MMM-Vrr", { } else { url = this.vrrJsonUrl(); } - url += `&no_lines=${this.config.numberOfResults}&line=${this.config.line}&platform=${this.config.platform}`; + url += `&no_lines=${this.config.numberOfResults}&line=${this.config.line}&platform=${this.config.platform}`; return url; }, diff --git a/README.md b/README.md index 9c4e4be..0974aa7 100755 --- a/README.md +++ b/README.md @@ -38,18 +38,18 @@ To use this module, add the following configuration block to the modules array i
| Option | Description | Options | LCD type support | -| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |------------------| -| `city` | _Required_ German City Name

**Type:** `String` (**default**: Düsseldorf) | Any City Name in North Rhine-Westphalia | ✅ | -| `station` | _Required_ German Station Name

**Type:** `String` (**default**: Hauptbahnhof) | Any Station Name in North Rhine-Westphalia | ✅ | -| `numberOfResults` | _Optional_ Number of results to be displayed

**Type:** `Int` (**default**: 10) | \* | ✅ | -| `displayType` | _Optional_ Changes the display type

**Type:** `String` (**default**: 'detail') | `'detail'`, `'lcd'` | ✅ | -| `displayIcons` | _Optional_ Display fontawsome icons

**Type:** `boolean` (**default**: true) | `false` | ❌ | -| `updateInterval` | _Optional_ Sets the Update Interval int

**Type:** `int`(milliseconds)
**Default** 60000 milliseconds (1 minute) | \* (API result is always cached for 1 Min) | ✅ | -| `displayTimeOption` | _Optional_ Changes the type of time

**Type:** `String` (**default**: 'countdown') | `'time'`, `'time+countdown'`, `'countdown'` | ❌ | -| `setWidth` | _Optional_ Sets the width of the module in pixel

**Type:** `int` (**default**: false) | Any posible size like: `450` | ❌ | +| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | ---------------- | +| `city` | _Required_ German City Name

**Type:** `String` (**default**: Düsseldorf) | Any City Name in North Rhine-Westphalia | ✅ | +| `station` | _Required_ German Station Name

**Type:** `String` (**default**: Hauptbahnhof) | Any Station Name in North Rhine-Westphalia | ✅ | +| `numberOfResults` | _Optional_ Number of results to be displayed

**Type:** `Int` (**default**: 10) | \* | ✅ | +| `displayType` | _Optional_ Changes the display type

**Type:** `String` (**default**: 'detail') | `'detail'`, `'lcd'` | ✅ | +| `displayIcons` | _Optional_ Display fontawsome icons

**Type:** `boolean` (**default**: true) | `false` | ❌ | +| `updateInterval` | _Optional_ Sets the Update Interval int

**Type:** `int`(milliseconds)
**Default** 60000 milliseconds (1 minute) | \* (API result is always cached for 1 Min) | ✅ | +| `displayTimeOption` | _Optional_ Changes the type of time

**Type:** `String` (**default**: 'countdown') | `'time'`, `'time+countdown'`, `'countdown'` | ❌ | +| `setWidth` | _Optional_ Sets the width of the module in pixel

**Type:** `int` (**default**: false) | Any posible size like: `450` | ❌ | | `lcdWidth` | _Optional_ Sets the width of the lcd display type

**Type:** `int` (**default**: 450) | any possible size | ✅ | -| `scrollAfter` | _Optional_ Scrolls the destination text after the specified characters

**Type:** `int` (**default**: false) | any possible size or `false` | ❌ | -| `withoutDestination` | _Optional_ Only show results without destination. Supports a list of strings, separated by comma (",").

**Type:** `list of strings` (**default**: empty list (show all destinations)) | any possible list (e.g., ["Aachen, Hbf,Aachen","Duisburg Hbf"]) | ❌ | +| `scrollAfter` | _Optional_ Scrolls the destination text after the specified characters

**Type:** `int` (**default**: false) | any possible size or `false` | ❌ | +| `withoutDestination` | _Optional_ Only show results without destination. Supports a list of strings, separated by comma (",").

**Type:** `list of strings` (**default**: empty list (show all destinations)) | any possible list (e.g., ["Aachen, Hbf,Aachen","Duisburg Hbf"]) | ❌ | | `platform` | _Optional_ Only show platform. Supports multiple strings, separated by comma (",").

**Type:** `string` (**default**: empty (show all platforms)) | any possible string (e.g., "2,3") | ✅ | | `line` | _Optional_ Only show lines that start with the given string. Supports multiple strings, separated by comma (",").

**Type:** `string` (**default**: empty (i.e., show all lines)) | any possible string (e.g., "RB33,U") | ✅ | @@ -69,13 +69,13 @@ If you like my module and want to thank, you could consider: Currently only `de` and `en` is supported. Gets the Value from the Global Magic Mirror language config. ## "LCD" Display + This view can be set if `displayType: 'lcd'` has been set. **Not all config parameters are supported in this mode. Check the parameters within the "Configuration options" table.** ![lcd](mmm-vrr.png)
- ## Visualization of the scrollAfter option If you set `scrollAfter:15`, the text will be scrolled horizontally if it has 15 or more characters.