Read the statement by Michael Teeuw here.
Currency Exchange Rates?
-
@Cato
Right, that’s my concern too. I don’t want to overload the mirrors spaceMaybe I can add some logic to choose the layout based on the number of currencies chosen
-
@yawns Agreed. Maybe a maximum of 3 currencies?
-
all right everyone, I did some progress on the module. Please take a look at it and let me know your thoughts.
Features:
- ticker mode - displays all selected currencies in a marquee ticker, main use in my opinion is in bottom_bar or top_bar
- table mode - display all selected currencies in a table. Up to 8 currencies are split into 2 columns, anything above is split into 3 columns
- you can hide/show the curreny flag and the currency code/abbreviation
- you can display a custom header above the output to show your selected base currency and the date of the data
Question: Does anyone know if and how I could manipulate the original header to avoid the custom header thing and still display base currency and date?
One notice: data is provided by fixer.io which is updating their data once a day. There are other apis for currency rates but you cannot select your own base currency if you are on a free plan. Means you would have to pay for it
[card:yawnsde/MMM-CurrencyExchange]
-
@yawns Super job. Thank you. Works well.
Is it possible to define which currency is displayed first?Just in case another newbie comes along. the last (,) comma is in the wrong place and should be moved to the end.
Best wishes.
-
I guess I could add some sorting mechanism, maybe based on the array order.
Which comma exactly? I’m just on my smartphone, so I might oversee it
-
@yawns The one on the penultimate line.
modules: [
{
module: ‘MMM-CurrencyExchange’,
position: ‘top_right’,
config: {
base: ‘EUR’,
symbols: [‘GBP’, ‘USD’]
},
} -
Thanks. Fixed!
-
Great module - works perfectly!
I’m not sure if this is just me, but for some currencies I like to switch the base currency because that makes more sence to me.
Suggestion: make an array of base/currencies, like this:
currencies: [ { base: 'NOK', symbol 'THB' }, { base: 'EUD', symbol 'NOK' }, { base: 'USD', symbol 'NOK' } ]
A little harder to configure, but much more flexible.
Again - not sure if this is for everyone… (?)
-
Nice idea!
I’m at home on Wednesday, I guess I’ll find some time to look at this. Would require more api requests or more conversion and math. -
@yawns Hi,
How often does this refresh? I’m getting no changes on my mirror even though I’m restarting it.