This is a module for the MagicMirror² smart mirror project.
This module displays cryptocurrency information from the Binance website. This module uses Websocket Market Streams. See more https://binance-docs.github.io/apidocs/spot/en/#websocket-market-streams
To install the module, use your terminal to:
- Navigate to your MagicMirror's modules folder. If you are using the default installation directory, use the command:
cd ~/MagicMirror/modules
- Copy the module to your computer by executing the following command:
git clone https://github.com/brssaricicek/MMM-Binance.git
- Enter the 'MMM-Binance' directory and Install the node modules:
cd MMM-Binance && npm install
To use this module, add the following configuration block to the modules array in the config/config.js
file:
var config = {
modules: [
...
{
module: 'MMM-Binance',
position: "top_rigt",
header: "Binance Cryptocurrencies",
config: {
currencies: ['btcusdt','ethusdt'],
decimalPlaces: 2,
}
},
...
]
}
Option | |
---|---|
currencies |
Default: ['btcusdt', 'ethusdt'] Type: Array |
decimalPlaces |
Optional - How many digits to display in the price after the decimal. Default: 2 Type: Integer |
fontSize |
Optional -Changes the font size. Type: String Property Values: xx-small, x-small, small, medium, large, x-large, xx-large, smaller : Decreases the font-size by one relative unit. larger: Increases the font-size by one relative unit. length: Defines the font-size in length units. % : Sets the font-size to a % of the parent element's font size |