From 6bcc916c3d4a96e58b2a71b40a8b2735fbe50a86 Mon Sep 17 00:00:00 2001 From: glitch452 <894128+glitch452@users.noreply.github.com> Date: Tue, 10 Mar 2020 15:23:22 -0400 Subject: [PATCH 1/3] Readme typo fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d28179..805f0da 100644 --- a/README.md +++ b/README.md @@ -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. From dcfacdd1167780089c538ff28bea39056365c908 Mon Sep 17 00:00:00 2001 From: glitch452 <894128+glitch452@users.noreply.github.com> Date: Tue, 10 Mar 2020 19:49:26 -0400 Subject: [PATCH 2/3] Added italian translation --- MMM-CoinMarketCap.js | 1 + translations/it.json | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 translations/it.json diff --git a/MMM-CoinMarketCap.js b/MMM-CoinMarketCap.js index 85ae158..50df870 100755 --- a/MMM-CoinMarketCap.js +++ b/MMM-CoinMarketCap.js @@ -833,6 +833,7 @@ Module.register("MMM-CoinMarketCap", { getTranslations: function() { return { en: "translations/en.json", + it: "translations/it.json", }; }, diff --git a/translations/it.json b/translations/it.json new file mode 100644 index 0000000..89151bc --- /dev/null +++ b/translations/it.json @@ -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." +} \ No newline at end of file From e1ecc28d13e9272eaa8de57fff6e27aafcec1b48 Mon Sep 17 00:00:00 2001 From: glitch452 <894128+glitch452@users.noreply.github.com> Date: Tue, 10 Mar 2020 19:52:27 -0400 Subject: [PATCH 3/3] Updated readme and changelog for v2.1.0 --- CHANGELOG.md | 5 +++++ README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6844939..ec87988 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 805f0da..b1d1351 100644 --- a/README.md +++ b/README.md @@ -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")