Skip to content

Commit

Permalink
⬆️ 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ryck committed Apr 2, 2024
1 parent fbae42c commit 2b42163
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion MMM-TFL-Arrivals.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Module.register("MMM-TFL-Arrivals", {
fade: true,
fadePoint: 0.25, // Start on 1/4th of the list.
limit: 5,
lateThreshold: 2,
initialLoadDelay: 0, // start delay in milliseconds.
color: true,
debug: false,
Expand Down Expand Up @@ -143,7 +144,7 @@ Module.register("MMM-TFL-Arrivals", {
if (this.config.color) {
timeTabledCell.className += " due";
}
} else if (minutes < 2) {
} else if (minutes < this.config.lateThreshold) {
timeToStation = minutes + " " + "min";
if (this.config.color) {
timeTabledCell.className += " late";
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The entry in `config.js` can include the following options:
| `fadePoint` | Where to start fade? <br><br>**Type:** `bool`<br>**Possible values:** `0` (top of the list) - `1` (bottom of list) <br> **Default value:** `0.25` |
| `initialLoadDelay` | The initial delay before loading. If you have multiple modules that use the same API key, you might want to delay one of the requests. (Milliseconds) <br><br>**Type:** `integer`<br>**Possible values:** `1000` - `5000` <br> **Default value:** `0` |
| `animationSpeed` | Speed of the update animation. (Milliseconds) <br><br>**Type:** `integer`<br>**Possible values:**`0` - `5000` <br> **Default value:** `2000` (2 seconds) |
| `lateThreshold` | How many minutes is late?<br><br>**Type:** `integer`<br>**Default value:** `2 min` |
| `limit` | Number of departures to return.<br><br>**Type:** `string`<br>**Default:** 5 |
| `color` | Use some accent colors for due and late status <br><br>**Type:** `bool`<br>**Possible values:** `true` or `false` <br> **Default value:** `true` |
| `debug` | Show debug information. <br><br> **Possible values:** `true` or `false` <br> **Default value:** `false` |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MMM-TFL-Arrivals",
"version": "1.4.0",
"version": "1.4.1",
"description": "MagicMirror 2 module to get arrivals predictions using TfL API.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 2b42163

Please sign in to comment.