Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exchangeratesapi.io now requires an access key #8

Open
mickecamino opened this issue Apr 4, 2021 · 6 comments
Open

exchangeratesapi.io now requires an access key #8

mickecamino opened this issue Apr 4, 2021 · 6 comments

Comments

@mickecamino
Copy link

Discovered today when accessing exchangeratesapi.io:
`

success false
error  
code 101
type "missing_access_key"
info "You have not supplied an API Access Key. [Required format: access_key=YOUR_ACCESS_KEY]"
`
@fritzhildebrand
Copy link

Yes, this is very recent. Even if you get an access key, the free version by default only allows EUR as the base, and updates I think are limited to 250 per month. I have made some changes which makes it work for me. Happy to share as long as you are aware I am not a javascript expert. It also cuts the number of decimal places shown down to 4.

@mickecamino
Copy link
Author

I signed up and found, just like you, that base is default at EUR and 250 requests per month, its like 8 requests per day.
Please share the changes you have made. I have some ideas to workaround the EUR base and get correct quotes for other currencies.

@fritzhildebrand
Copy link

Making the attached changes to the config.js and MMM-CurrencyExchange.js worked for me. It gets the exchange rates against EUR for the currencies and then recalculates the rate against your entered base currency (USD in the example). Also amended the apiBase from https to http, changed the updateInterval to once every 3 hours (max of 248 times per month), and changed the number of decimal place to 4.
exchange - changes.txt

@BrielC
Copy link

BrielC commented Apr 9, 2021

Thanks Fritz for sharing your findings and solution. My module is running again. Much appreciated

@hermannw
Copy link

hermannw commented Oct 14, 2021

Thank you Fritz for making this work again!
Any idea how I can change the font-size? I tried in custom.css:

 .MMM-CurrencyExchange {
    font-size: 150%; //went all the way up to 500%
}

This works on other modules but not here...

Hermann

@mickecamino
Copy link
Author

It's because it's hard coded in the .js file.

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

No branches or pull requests

4 participants