Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glitch452 committed Mar 10, 2020
2 parents bcaff3d + e1ecc28 commit ffeb135
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2.1.0] - 2020-03-10

### Added
- Italian translation, thanks to [roccotocco](https://github.com/roccotocco)! (Issue #6)

## [2.0.1] - 2020-03-10

### Fixed
Expand Down
1 change: 1 addition & 0 deletions MMM-CoinMarketCap.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ Module.register("MMM-CoinMarketCap", {
getTranslations: function() {
return {
en: "translations/en.json",
it: "translations/it.json",
};
},

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module displays cryptocurrency information from the [Coin Market Cap](https

| Status | Version | Date | Maintained? | Minimum MagicMirror² Version |
|:------- |:------- |:---------- |:----------- |:---------------------------- |
| Working | `2.0.1` | 2020-03-10 | Yes |`2.2.1` |
| Working | `2.1.0` | 2020-03-10 | Yes |`2.2.1` |

### Example
![Example of MMM-CoinMarketCap](images/sample.png?raw=true "Example screenshot")
Expand All @@ -33,7 +33,7 @@ To install the module, use your terminal to:

CoinMarketCap has disabled their fully public API, so this module has been updated to use their [Pro API](https://coinmarketcap.com/api/). Unfortunately, this API requires an API key when accessing the data. Thankfully, there is a free tier called `basic` which should be sufficient for most users. To get your API Key, sign up on [CoinMarketCap](https://pro.coinmarketcap.com/signup/).

The new API does track and limit usage by a credit system. At this time, the daily limit for credit usage on the `basic` (Free) tier is a soft 333 per day and a hard 10,000 per month. This module uses 1 credit on startup to download the list of availabel currencies. Then, each udate request uses 1 credit per 100 currencies (rounded up to the nearest 100). Therefore, for a list of currencies that is less than 100, in a 31 day month, the update request rate should be less than or equal to 13 updates per hour (ie. an update approximately every 4.6 minutes).
The new API does track and limit usage by a credit system. At this time, the limit for credit usage on the `basic` (Free) tier is a soft 333 per day and a hard 10,000 per month. This module uses 1 credit on startup to download the list of available currencies. Then, each udate request uses 1 credit per 100 currencies (rounded up to the nearest 100). Therefore, for a list of currencies that is less than 100, in a 31 day month, the update request rate should be less than or equal to 13 updates per hour (ie. an update approximately every 4.6 minutes).

A quick note: The updates are managed by the module instance on the front-end, so each additional instance of the module will perform its own API calls and consume credits. If you require multiple instances of the module, they should each get their own API key, or the update rate can be adjusted accordingly.

Expand Down
32 changes: 32 additions & 0 deletions translations/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"CURRENCY_TITLE": "Valute",
"PRICE_TITLE": "Prezzo ({conversion_var})",
"PRICE_USD_TITLE": "Prezzo (USD)",
"HOUR_TITLE": "Ora",
"DAY_TITLE": "Giorno",
"WEEK_TITLE": "Settimana",
"TREND_TITLE": "Andamento ({range_var})",
"CHANGES_TITLE": "Cambio",
"ONE_DAY": "Un giorno",
"ONE_WEEK": "Una settimana",
"ONE_MONTH": "Un meseh",
"UPDATE_SCHEDULED": "Aggiornamento programmato per essere esguito automaticamente ogni {minutes} minuti.",
"LISTINGS_REQUESTED": "Richiesta valute inviara.",
"CURRENCY_UPDATE_REQUESTED": "Richiesta di aggiornamento inviata per \"{name}\" utilizzando ID: {id}.",
"UPDATE_STARTED": "Aggiornamento avviato.",
"REQUEST_LOGO_DOWNLOAD": "Logo richiesto in download: \"{filename}\".",
"LISTINGS_SUCCESS": "Dati valuta scaricati con successo dopo {numberOfAttempts} tentativi.",
"LISTINGS_FAILURE": "Non è stato possibile scaricare i dati! Nuovo tentativo tra {retryTimeInSeconds} secondi.",
"CURRENCY_UPDATE_SUCCESS": "Aggiornamento della valuta effettuato IDs: {id} dopo {numberOfAttempts} tentativi.",
"CURRENCY_UPDATE_FAILURE": "Aggiornamento valuta fallita IDs: {id}. Nuovo tentativo tra {retryTimeInSeconds} secondi.",
"LOGO_DOWNLOAD_SUCCESS": "Logo scaricato con successo: \"{filename}\".",
"LOGO_DOWNLOAD_FAILURE": "Download del logo fallito: \"{filename}\".",
"INVALID_CURRENCY": "Impossibile trovate la valuta con id: \"{id}\" o nome: \"{name}\".",
"LOADING": "Lettura in corso …",
"API_ERROR": "Impossibile scaricare i dati da {website}.",
"SUSPENDED": "Sospeso",
"RESUMED": "Riattivo",
"LOGO_SAVE_FAILURE": "Non è stato possibile salvare \"{sourceFilename}\" come: \"{destinationFilename}\".",
"LOGO_SAVE_SUCCESS": "Salvato con successo \"{sourceFilename}\" come: \"{destinationFilename}\".",
"API_KEY_REQUIRED": "Per favore specifica la tua chiave API."
}

0 comments on commit ffeb135

Please sign in to comment.