A cryptocoin ticker
MagicMirror module.
Add MMM-cryptocoin
module to the modules
array in the config/config.js
file:
modules: [
{
module: 'MMM-cryptocoin',
position: 'top_right',
config: {
transCurrency: 'EUR',
updateInterval: 60000,
coins: [
{
label: 'Ether',
coin: 'ETH',
output: '%x €',
},
{
label: 'Bitcoin',
coin: 'BTC',
output: '%x €',
},
],
}
},
]
Option | Description |
---|---|
transCurrency |
Symbol of real world currency like EUR, USD, GBP, RUB, ... Must be a string |
coins |
Array of one or more crypto coin entries |
Option | Description |
---|---|
label |
String for labelling the coin, e.g. 'Ether'. |
coin |
String of coin symbol matched to CryptoCompare API, e.g. 'ETH', 'ETC', 'BTC', 'LTC', ... . |
output |
Format string for output where %x is for the retrieved currency value, e.g. '$%x', '%x €', ... . %x will be string replaced with the coin value, do not change it. |
Using request API by CryptoCompare.
Copyright (C) 2017 by Christian Handorf under MIT License