Skip to content

Commit

Permalink
feat: apiDelay configurable as minutes instead of seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileteo committed Jan 27, 2022
1 parent e6e5628 commit 4344df2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MMM-cryptocurrency.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Module.register("MMM-cryptocurrency", {
var delay = this.config.apiDelay;
setInterval(function () {
self.getTicker();
}, delay);
}, delay*60*1000);
},

getDom: function () {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A <a href="https://github.com/MichMich/MagicMirror">MagicMirror</a> module used
|Option|Description|
|---|---|
|`apikey`|MANDATORY: API key from [CoinMarketCap](https://pro.coinmarketcap.com/).<br>**Type:** `string`|
|`apiDelay`|Frequency, in milliseconds, to updata data values<br>**Type:** `number` <br> **Default** <i>300000</i> |
|`apiDelay`|Frequency, in minutes, to updata data values<br>**Type:** `number` <br> **Default** <i>5</i> |
|`currency`|One or more currencies you want to display.<br>**Type:** `array`<br>**Options:** `bitcoin, ethereum, xrp, dash, bitcoin-gold, litecoin, iota, ethereum-classic, nem, stratis, bitcoin-cash, cardano, solana, neo, poken`<br>**Default:** <i>['bitcoin']</i>|
|`conversion`|The currency used to convert crypto currency value.<br>**Type:** `string`<br>**Options:** `AUD, BRL, CAD, CHF, CNY, EUR, GBP, HKD, IDR, INR, JPY, KRW, MXN, RUB`<br>**Default:** <i>USD</i>|
|`displayLongNames`| Option that show full name of the currency or the shortest version. (eg. Bitcoin/BTC ). <br> **Type** `boolean` <br> **Default** <i>false</i> |
Expand Down

0 comments on commit 4344df2

Please sign in to comment.