Fabrizz / MMM-DolarArgentina

This Magic Mirror² module allows you to view the current exchange rate for different USD/ARS types.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fabrizz logo

MMM-DolarArgentina

This Magic Mirror² module allows you to view the current exchange rate for different USD/ARS types.

This was inspired by MMM-CurrencyArg from consus2903. As its not maintained anymore, (and the original api stopped working), this module was born.

Instalation

  • Clone this repository in your modules folder:
cd ~/MagicMirror/modules # Change acordingly to your folder structure
git clone https://github.com/Fabrizz/MMM-DolarArgentina.git
  • Add the module to your config/config.js file, you can see a detailed list of configuration entries below.
{
    module: "MMM-DolarArgentina",
    position: "bottom_left",
    config: {
        updateInterval: 43200, // Time (in seconds) between updates
        types: ["oficial", "blue"] // The types of currency to show
    }
},

Configuration options

Option Type Description
updateInterval: Number Time in seconds between module updates. Can be set to 0 to only get data on init.
types: Array Array of currency names. Depends on the used API
url: String The API endpoint. See below
animationSpeed: Number Time in miliseconds of the fade in/out of the module
useDynamicTheming: Boolean [Future update] Use colors broadcasted from other modules. See below

Data providers

Provider Endpoint
Bluelytics [DEFAULT] https://api.bluelytics.com.ar/v2/latest
Dolarsi [DEPRECATED] https://www.dolarsi.com/api/api.php?type=valoresprincipales

Dynamic Theming:

Uses the color data from other modules to dynamically style the module.

This featured is not yet enabled, as Im finishing with the color schemes.

With <3 by Fabrizz
fabriz.co Fabrizz logo

About

This Magic Mirror² module allows you to view the current exchange rate for different USD/ARS types.

License:MIT License


Languages

Language:JavaScript 84.3%Language:CSS 15.7%