Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Show value instead of curency amount #17

Open
nymeia opened this issue Feb 3, 2021 · 4 comments
Open

Show value instead of curency amount #17

nymeia opened this issue Feb 3, 2021 · 4 comments

Comments

@nymeia
Copy link

nymeia commented Feb 3, 2021

Would it be possible to set i.e. XLM 35,52 EU, instead of 124,2530943 XLM?
I want to see how much my currency is worth, not the amount of coins I got.
Or both would be great.

@WeeskyBDW
Copy link
Contributor

WeeskyBDW commented Feb 3, 2021

Show less numbers after comma ?

@nymeia
Copy link
Author

nymeia commented Feb 3, 2021

Show less number after comma ?

No, i want to see how much money my coins are worth, not the amount of coins that i have.

So instead of: BTC 1.0000000
I want to see: BTC 20.000,00EUR

or

XLM €34,87 or 34,87EUR
instead of XLM 124,2530943

@WeeskyBDW
Copy link
Contributor

WeeskyBDW commented Feb 3, 2021

Oh ok show converted value. Idk if it's possible directly with the lib used by MMC-coinbase but still possible with externals requests

@Lambenttelos
Copy link

I found a way to do this. I may see about adding an option to the config and and submitting a pull request.

edit ./modules/MMM-Coinbase/MMM-Coinbase.js

and replace:
columnAmountElement.innerHTML = "<span>" + accts.balance.amount + "</span>";

with:
columnAmountElement.innerHTML = "<span>" + accts.native_balance.amount + " " + accts.native_balance.currency + "</span>";

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants