Currency conversion.

CDA

Member
Anyone know where I can get easy to use currency conversion data?

I was using an API which I thought was free but it stopped working after a month and now requires a key.

I tried getting the information by doing a GET request on X-rates but the resulting data was too much for me to remove the relevant bits compared to the simple data provided by the API.

Many thanks.
 

Dm114

Well-known member
 

sampleuserhere

Active member
Found this one on r/tasker

https://www.reddit.com/r/tasker/comments/16ihsr8
The redditor extracted the data from the following site with CSS pattern

Fortunately, the exchange rate seems to have a specific pattern, so extracting the data with CSS pattern isn't really necessary. The pattern looks like this 1 CurrencyCode1 = number CurrencyCode2. e.g 1 JPY = number USD.

You can extract the rate with Text Manipulation > Extract text with the following regexp. (?<=1 JPY = ).*?(?= USD). Then convert the amount later with the rate.
 
  • Like
Reactions: CDA

CDA

Member
Found this one on r/tasker

https://www.reddit.com/r/tasker/comments/16ihsr8
The redditor extracted the data from the following site with CSS pattern

Fortunately, the exchange rate seems to have a specific pattern, so extracting the data with CSS pattern isn't really necessary. The pattern looks like this 1 CurrencyCode1 = number CurrencyCode2. e.g 1 JPY = number USD.

You can extract the rate with Text Manipulation > Extract text with the following regexp. (?<=1 JPY = ).*?(?= USD). Then convert the amount later with the rate.
Thank you, I will have a go. I am not great with the commands for text manipulation etc but I'll try. Wish there was an idiots guide to these kinds of things.
 

sampleuserhere

Active member
Thank you, I will have a go. I am not great with the commands for text manipulation etc but I'll try. Wish there was an idiots guide to these kinds of things.

Lmao, I can't imagine someone willing to write such a guide. At least I won't bother to.

Anyway, good luck! You can always come back here to ask another question, I bet the member here would help at some point.
 
  • Like
Reactions: CDA

CDA

Member
Lmao, I can't imagine someone willing to write such a guide. At least I won't bother to.

Anyway, good luck! You can always come back here to ask another question, I bet the member here would help at some point.
Haha yeah I doubt it. The Macrdroid Wiki has some useful stuff but even though MD is probably the easiest automation app to use you still seem to need a fair bit of programming knowledge to get the most out of it which is a shame.
 

Endercraft

Moderator (& bug finder :D)
even though MD is probably the easiest automation app to use you still seem to need a fair bit of programming knowledge to get the most out of it which is a shame.
I like to think that MacroDroid's potential scales with your knowledge. When I first started using it I didn't have much but the more and more I use it the more I unlock it's true potential.
2 years ago I wouldn't have been able to use shell scripts, regex, intents... But after learning so much I can :)
 

CDA

Member
I like to think that MacroDroid's potential scales with your knowledge. When I first started using it I didn't have much but the more and more I use it the more I unlock it's true potential.
2 years ago I wouldn't have been able to use shell scripts, regex, intents... But after learning so much I can :)
I agree, my own knowledge has increased for certain. I suppose what I am getting at is that if certain things were easier or there were some guides available I could learn a lot more on my own without having to resort to a lot of trial and error and asking so many questions (this is not to denigrate the wealth of friendly users who help out others).
 

Dm114

Well-known member
Hi, @CDA

Sorry for the Japanese service...


For example, if you want to know the currency rate between Japan and the USA, you can request the following.


Best Regards,
Liner Seven
Very interesting but, unfortunately, it seems it only works for "major" currencies, not for more "exotic" ones... ☹️

Thanks anyway.
 
  • Like
Reactions: CDA

CDA

Member
Very interesting but, unfortunately, it seems it only works for "major" currencies, not for more "exotic" ones... ☹️

Thanks anyway.

Yes it is limited to major currencies unfortunately but it worked great for me as I only needed GBP, USD and EUR.
It has great benefits in that the response is just the number, no extra information to remove.
 

Dm114

Well-known member
Yes it is limited to major currencies unfortunately but it worked great for me as I only needed GBP, USD and EUR.
It has great benefits in that the response is just the number, no extra information to remove.
Yes. On this point it's interesting indeed!
 
Top