Skip to content

Latest commit

 

History

History
executable file
·
54 lines (45 loc) · 1.57 KB

README.md

File metadata and controls

executable file
·
54 lines (45 loc) · 1.57 KB

MMM-cryptocoin

A cryptocoin ticker MagicMirror module.

Using the 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 €',
        },
      ],
    }
  },
]

Configuration options

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

Coins options:

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.

Screenshot

Credits

Using request API by CryptoCompare.

Copyright

Copyright (C) 2017 by Christian Handorf under MIT License