bigluck Posted January 16, 2013 Share Posted January 16, 2013 Hi everybody, I've created a simple but (i hope) useful currency converter; this workflow support simple and complex queries like: currency € -- Current EUR/USD exchange currency € £ -- Current EUR/GBP exchange currency 12 € -- Convert 12 EUR to USD currency 12€ £ -- Convert 12 EUR to GBP currency 12 € £ -- Convert 12 EUR to GBP currency 12 EUR £ -- Convert 12 EUR to GBP currency 12 EUR to £ -- Convert 12 EUR to GBP currency from 12 € to GBP -- Convert 12 EUR to GBP currency to GBP from 3€ -- Convert 3 EUR to GBP currency to GBP 3€ -- Convert 3 EUR to GBP Here the github repository: https://github.com/BigLuck/alfred2-currencyconverter And the .alfredworkflow direct download link: https://github.com/BigLuck/alfred2-currencyconverter/raw/master/Currency%20Converter.alfredworkflow Domenic, arsenty, bfolberth and 5 others 8 Link to comment
bigluck Posted January 19, 2013 Author Share Posted January 19, 2013 Basing on @twinpeaks request I added BITcoin support. Now the workflow suggests currency based on user typing Link to comment
jhuiting Posted January 25, 2013 Share Posted January 25, 2013 Hi, Just started using your workflow, awesome stuff! I just have one problem with it, when I try to type 'currency' (or my current shortcut curr) quickly I do get sometimes the 'currency-set-to' instead of the converter. Is there some way that you can mark 'currency' in the code as the 'main' action? Or maybe this is a good suggestion for the alfred V2 workflow code? Link to comment
bigluck Posted January 25, 2013 Author Share Posted January 25, 2013 Hi jhuting, I've already sent this request a couple of days ago, take a look here: http://www.alfredforum.com/index.php?/topic/303-preserve-workflow-configuration-order/ If you want support my request... you're wellcome Link to comment
Mailia Posted February 8, 2013 Share Posted February 8, 2013 Otherwise great, but the default currency feature doesn't really work. If I set my default to currency to EUR, it converts USD into EUR without any additional parameters, but when I try any other currency (GBP, JPY), it automatically converts it to USD instead of EUR. Link to comment
Luzzifus Posted March 15, 2013 Share Posted March 15, 2013 Otherwise great, but the default currency feature doesn't really work. If I set my default to currency to EUR, it converts USD into EUR without any additional parameters, but when I try any other currency (GBP, JPY), it automatically converts it to USD instead of EUR. That's also bothering me a bit, even though the workflow is really nice. I'm trying to dig through the code but it seems I'm not pro enough for this one.. Link to comment
samispade Posted March 24, 2013 Share Posted March 24, 2013 Like this workflow as well, but the default currency was bothering me as well. The problem appears to lie on line 129 of e4QueryParser.php in libs. Change this from:- $this->to = $this->from->isEqualOf($this->defaultFrom) ? $this->defaultTo : $this->defaultFrom; to:- $this->to = $this->from->isEqualOf($this->defaultTo) ? $this->defaultFrom : $this->defaultTo; Link to comment
lmartins Posted April 1, 2013 Share Posted April 1, 2013 This is really usefull, thanks! Link to comment
aleksanderrosekilde Posted May 16, 2013 Share Posted May 16, 2013 Like the others I only have one complain; It would be a perfect workflow if you could fix the default currency issue. Other than that I think it is a great and useful workflow, thank you. Link to comment
jberrebi Posted June 7, 2013 Share Posted June 7, 2013 Clearly awesome. Exactly what I was looking for! Thanks a lot! Link to comment
Smithy1783 Posted July 14, 2013 Share Posted July 14, 2013 Quite new to Alfred but thought it might be a useful hint anyway... apologies if it is beneath the 'level'.... I just created a short TextExpander snippet to speed up the process... Having set currencies to From USD to GBP I have a snippet that is just $£ that expands to Currency - I then just type the amount... I think it makes an already useful workflow even easier. Link to comment
Dr. Woo Posted January 31, 2014 Share Posted January 31, 2014 Nice one. What’s missing is an optional preference to round the output value to 2 decimal places if the input value is NOT EQUAL to 1. Explanation: If one enters no input value or 1, it means the user is interested in the exchange rate in full detail. Example: EUR 1 = USD 1.3533. If however the input value is an "actual" cost/price, so the input DOES NOT EQUAL 1(.00), it is clear that this input is an "actual" conversion of that price/cost. Example: EUR 0.23 or EUR 154.89 as input value looks like an actual price. An alternative (better ???) method to decide when to round to 2 decimal digits and when not to round, might be the size of the output (!) number itself (= number of digits in front of the comma/period). Example: When the input value of a large scale mass-produced item is lets say EUR 4.53, the third decimal place of the resulting USD value (so those 0.x Cents) might be important, thus the full number should be copied to the clipboard. If the output result however is USD 183.48(7) the out result should be rounded to 2 decimals -> 183.49 should be displayed and copied to the clipboard. Link to comment
Davduf Posted February 26, 2014 Share Posted February 26, 2014 Great app! Simple and efficient! Thx! Link to comment
manjaro Posted November 30, 2014 Share Posted November 30, 2014 Great app. It would be helpful if it can handle addition and subtraction within its context. Link to comment
lpwo Posted November 12, 2015 Share Posted November 12, 2015 Hi Thank you so much for this great workflow, really helpful. Is there any easy way to change from where the information is collected? So instead of google finance, to use another service? In some countries (eg. China) google is unavailable, and when not connected to a VPN the workflow doesn't work. Link to comment
Dr. Woo Posted January 20, 2016 Share Posted January 20, 2016 @bigluck: Please add the syntax "currency gbp in usd" (so "in", as an alternative "to"). I find myself sometimes typing "in". Link to comment
Alexander Posted January 30, 2017 Share Posted January 30, 2017 Doesn't work with bitcoin. "currency 1 btc to usd" doesn't work. Could you add support for cryptocurrencies from coinmarketcap.com? Link to comment
dave_the_rave Posted March 6, 2017 Share Posted March 6, 2017 Bitcoin BTC command doesn't work. Please fix Link to comment
deanishe Posted March 6, 2017 Share Posted March 6, 2017 I'm not sure if this workflow is still maintained. Last repo commit was over 4 years ago… This one supports BTC, but no natural language. Link to comment
jenz Posted October 4, 2017 Share Posted October 4, 2017 This workflow ceased working some weeks ago. It appears to be abandoned. It generates a query error. There is a way to fix it. View the workflow in Finder. Edit the file: `/libs/e4QuerySend.php` Change line 56. It is currently: $response = $this->app->sendHTTPRequest('http://www.google.com/finance/converter?'.http_build_query(array( Change it to: $response = $this->app->sendHTTPRequest('https://finance.google.com/finance/converter?'.http_build_query(array( You can view the required changes here, https://github.com/bigluck/alfred2-currencyconverter/pull/22/files - courtesy of Enochenti. It will now work as before. Link to comment
enrvuk Posted November 10, 2017 Share Posted November 10, 2017 Thanks for the update Jenz Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now