Jump to content

Currency converter that works offline, with favorite currencies


Recommended Posts

Convert currency

Alfred workflow and python script that converts currencies using

http://www.google.com/ig/calculator it's way faster than https://www.google.com/finance/converter

Converter works offline, when there is no internet connection currency exchange rate from the last time when script/workflow were used to convert given pair of currencies.

Usage

Just type keyword and argument:

  • 10 usd in jpy - displays yen and favorite currencies

convertcurrency1.png

  • 10$€ - displays euro and favorite currencies
  • 10 usd - displays favorite currencies

convertcurrency2.png

  • 10 - uses default currency - can be specified in convertcurrency.py
  • no argument - uses default currency and 1 as amount

 

convertcurrency3.png

 

  • Tapping return ↩ in workflow pastes result of conversion to active application.
  • Tapping command+return ⌘+↩ marks currency as favorite - it will be automatically displayed always when converter 

 

Download:

https://github.com/bevesce/Convert-Currency/raw/master/Convert%20Currency.alfredworkflow

 

Source:

https://github.com/bevesce/Convert-Currency

Edited by bevesce
Link to comment
  • 6 months later...

I know it's been a while, but I just grabbed this workflow with the same issue as you, Buja. Not sure why the author hasnt replied to you, but it's simple enough to fix, if you don't mind digging into the Python script.

 

Go to the Convert Currency workflow.

Double click the Script Filter, then click on 'Open Workflow Folder' in the dialog that comes up. A Finder window will pop up.

In there, you need to edit the 'filelist.py' script.

A few lines down, in that script, you'll see:

dir_path = '~/Desktop/test/'

Change this line to:

dir_path = 'test/'

And save the file.

 

This will now just create the 'test' folder in the currency converter folder. So, no more unsightly temp folders on the desktop.

 

There is probably a better way, but I can't really be bothered looking, so this will have to do for now.

 

Hope this helps anyone who comes across this workflow.

 

Cheers,

Tarique.

Edited by tnaseem
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...