krzysztofr Posted June 12, 2014 Posted June 12, 2014 (edited) Hi, I wanted to share with you my first custom workflow for Alfred. It allows you to check currency exchange rates using query similar to Google: 120 EUR in USD. I hope someone might find it useful Here's the code and workflow for download: https://github.com/krzysztofr/alfred-currencies Direct download link: https://github.com/krzysztofr/alfred-currencies/raw/master/Exchange%20Rates.alfredworkflow Cheers, Krzysztof Edited June 13, 2014 by krzysztofr
dfay Posted June 12, 2014 Posted June 12, 2014 (edited) Have you seen Units? http://www.alfredforum.com/topic/2471-workflow-units-convert-currency-length-temperature-weight-and-more/ Edited June 12, 2014 by dfay 40-02 1
krzysztofr Posted June 12, 2014 Author Posted June 12, 2014 (edited) Have you seen Units? http://www.alfredforum.com/topic/2471-workflow-units-convert-currency-length-temperature-weight-and-more/ i didn't - that's why I wrote my workflow - because I needed to convert currencies quickly and couldn't find any workflow that does this "Units" workflow looks very powerful and I will definitely use it. It has, however, one big disadvantage for me (or maybe I just couldn't figure it out): you cannot convert currencies quickly by typing only one phrase. It also supports only 90 currencies, while my workflow (which pulls rates from OpenExchangeRates.org) supports 165 Edited June 12, 2014 by krzysztofr
politicus Posted June 13, 2014 Posted June 13, 2014 I downloaded it. Extracted it. But couldn't install it. Opening it does just not work. Weird. Relaunched Alfred. Retried. Still not working. Mavericks user (10.9.3)
krzysztofr Posted June 13, 2014 Author Posted June 13, 2014 You're right, thanks for the report. I tried it now and it doesn't work. I will work it out and let you know.
krzysztofr Posted June 13, 2014 Author Posted June 13, 2014 I think I managed to fix the issue - it works on my computer now Direct download link: https://github.com/krzysztofr/alfred-currencies/raw/master/Exchange%20Rates.alfredworkflow Remember to follow the installation instructions in README.md file. (BTW, I am working on getting rid of openexchangerates.org for some API that doesn't need creating the api key).
politicus Posted June 14, 2014 Posted June 14, 2014 Still not working. Installed but after typing rate + space, I get the default fallback searches...
krzysztofr Posted June 14, 2014 Author Posted June 14, 2014 Hi, thanks for the effort. It's strange, because typing "rate" + space should show the workflow name and icon, doesn't matter if the workflow works properly or not. Was the workflow installed properly? (does it show up in the "Workflows" tab of the Alfred preferences?) What version of Alfred and python do you have? You may try enabling debug for this workflow (select the workflow, click small bug icon in the right corner) and see if there are any debug messages.
politicus Posted June 17, 2014 Posted June 17, 2014 The workflow shows in Alfred prefs. Python version 2.7.5 Here, is the error I get when enabling debug: [ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last): File "rates.py", line 6, in <module> import settings ImportError: No module named settings [ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last): File "rates.py", line 6, in <module> import settings ImportError: No module named settings [ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last): File "rates.py", line 6, in <module> import settings ImportError: No module named settings
krzysztofr Posted June 17, 2014 Author Posted June 17, 2014 Thanks for the info. It seems, that you didn't follow the installation instructions. You need to create your specific app_id from openexchangerates.org. It is needed to allow you to fetch exchange rates. Remember to follow the installation instructions in README.md file. (BTW, I am working on getting rid of openexchangerates.org for some API that doesn't need creating the api key).
politicus Posted June 18, 2014 Posted June 18, 2014 Shame on me! I didn't renamed the setting.py.template file. It is now working perfectly.
krzysztofr Posted June 23, 2014 Author Posted June 23, 2014 Great I am working on making the installation process easier
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