Read the statement by Michael Teeuw here.
"Live" currency exchange rate module
-
Hi all,
I am building a MM for my office. I’m a distributor for a lot of imported products, so I would like to see a kind of live/as close to real-time updated currency exchange rate.
I have tried with @yawnsde’s module here: https://github.com/yawnsde/MMM-CurrencyExchange , but the updates are about a day behind from the source (fixer.io).
I have found https://currencylayer.com/ that has a free ?JSON feed API and registration of a free account permits a 1000 API calls per month, which should be more than enough to call at least an update every 3 hours every day.
I have absolutely no .js or .JSON experience, so is there anyone that thinks this module will be an amazing addition and willing to put it together?
Thanks
reandre68
-
@reandre68 said
which should be more than enough to call at least an update every 3 hours every day.
Every hour = 744 updates in a 31 day month
I have absolutely no .js or .JSON experience
Me neither
so is there anyone that thinks this module will be an amazing addition
I don’t know about that.
and willing to put it together?
I was. I did, based on the API that you provided.
-
That was quick. And exactly what I had in mind.
The name is legit too. MMM-LICE is the best. Lol
I’ll try install and run it tomorrow and give some feedback
Thanks Mykle
Regards
-
I just did a little math. If you set
updateInterval: 45 * 60 * 1000,
in your config entry for the module, you’ll get updates every 45 minutes and still come in at 992 calls per month. Might as well take advantage of those 1000 free calls per month and you get updates 25% quicker that way.Note
The date and time appearing in the module is the “Exact date and time (UNIX) the exchange rates were collected.”
-
Nice work, Mykle. You could’ve updated my module to add a second api source and the user selects api in config :-)
-
@yawns said in “Live” currency exchange rate module:
Nice work, Mykle. You could’ve updated my module to add a second api source and the user selects api in config :-)
Thanks yawns. I didn’t even consider that. I saw that making this module would not be too difficult for me so I just went ahead and put it together this morning based on @reandre68’s request. :-)
Hey, how’s the new house? All settled in? :-)
-
“Rate as of 4:54 pm today” added for clarity.
-
Hey yawns, where is your module? I can’t seem to find it. :-/
-
@Mykle1
It was linked in the initial post. -
@yawns said in “Live” currency exchange rate module:
It was linked in the initial post.
Doh! :-)
Thanks!