diff --git a/MMM-cryptocurrency.js b/MMM-cryptocurrency.js index 063bd04..149343d 100644 --- a/MMM-cryptocurrency.js +++ b/MMM-cryptocurrency.js @@ -162,7 +162,7 @@ Module.register("MMM-cryptocurrency", { var delay = this.config.apiDelay; setInterval(function () { self.getTicker(); - }, delay); + }, delay*60*1000); }, getDom: function () { diff --git a/README.md b/README.md index 2367eaa..8114f90 100755 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A MagicMirror module used |Option|Description| |---|---| |`apikey`|MANDATORY: API key from [CoinMarketCap](https://pro.coinmarketcap.com/).
**Type:** `string`| -|`apiDelay`|Frequency, in milliseconds, to updata data values
**Type:** `number`
**Default** 300000 | +|`apiDelay`|Frequency, in minutes, to updata data values
**Type:** `number`
**Default** 5 | |`currency`|One or more currencies you want to display.
**Type:** `array`
**Options:** `bitcoin, ethereum, xrp, dash, bitcoin-gold, litecoin, iota, ethereum-classic, nem, stratis, bitcoin-cash, cardano, solana, neo, poken`
**Default:** ['bitcoin']| |`conversion`|The currency used to convert crypto currency value.
**Type:** `string`
**Options:** `AUD, BRL, CAD, CHF, CNY, EUR, GBP, HKD, IDR, INR, JPY, KRW, MXN, RUB`
**Default:** USD| |`displayLongNames`| Option that show full name of the currency or the shortest version. (eg. Bitcoin/BTC ).
**Type** `boolean`
**Default** false |