Skip to content

Commit

Permalink
Use ExchangeRate-API.com for currency conversion w/o key. Closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Feb 20, 2020
1 parent 09f6bee commit 22ad3df
Show file tree
Hide file tree
Showing 14 changed files with 463 additions and 440 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
Changelog
=========

### [3.7.0][v3.7.0] ###

Released 2020-02-20

- Add exchange rates from ExchangeRate-API.com (no API key required)


### [3.6.2][v3.6.2] ###

Released 2019-09-06

- Include `pkg_resources` (Pint dependency)


### [3.6.1][v3.6.1] ###

Released 2019-05-30

- Fix argument quoting


### [3.6.0][v3.6.0] ###

Released 2019-05-06
Expand Down Expand Up @@ -200,4 +221,7 @@ Released 2014-08-09.
[v3.5.2]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5.2
[v3.5.3]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5.3
[v3.6.0]: https://github.com/deanishe/alfred-convert/releases/tag/v3.6.0
[v3.6.1]: https://github.com/deanishe/alfred-convert/releases/tag/v3.6.1
[v3.6.2]: https://github.com/deanishe/alfred-convert/releases/tag/v3.6.2
[v3.7.0]: https://github.com/deanishe/alfred-convert/releases/tag/v3.7.0
[openx]: https://openexchangerates.org/
Binary file not shown.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Downloading

Download from [GitHub releases][ghreleases].

**Note**: Version 3.0 and above only supports Alfred 3+. If you're still using Alfred 2, please download [v2.5][v2.5].
**Note**: Version 3.7 and above only supports Alfred 4+. If you're still using Alfred 4, please download [v3.6.2][v3.6.2].


<a name="usage"></a>
Expand All @@ -58,7 +58,7 @@ Usage
<a name="conversions"></a>
### Conversions ###

**NOTE**: To perform conversions between fiat currencies, you must set a key for the [openexchangerates.org][openx] API in the workflow's [configuration sheet](#configuration). You can sign up for a free account [here][openx-free]. When you're signed up, copy the **App ID** from the email you receive or [this page][openx-appid] into the `APP_KEY` field in the [configuration sheet](#configuration).
**NOTE**: Only a limited number of fiat currencies are supported by default. Additional rates are only supported if you set a key for the [openexchangerates.org][openx] API in the workflow's [configuration sheet](#configuration). You can sign up for a free account [here][openx-free]. When you're signed up, copy the **App ID** from the email you receive or [this page][openx-appid] into the `APP_KEY` field in the [configuration sheet](#configuration).

- `conv [<context>] <quantity> <from unit> [<to unit>]` — Perform a conversion
- `` or `⌘C` — Copy the result to the pasteboard
Expand Down Expand Up @@ -161,6 +161,9 @@ See [CHANGELOG][changelog] for more information.

| Release | Date |
|-----------------|----------------|
| [3.7.0][v3.7.0] | 2020-02-20 |
| [3.6.2][v3.6.2] | 2019-09-06 |
| [3.6.1][v3.6.1] | 2019-05-30 |
| [3.6.0][v3.6.0] | 2019-05-06 |
| [3.5.3][v3.5.3] | 2019-01-26 |
| [3.5.2][v3.5.2] | 2019-01-26 |
Expand Down Expand Up @@ -232,6 +235,9 @@ All other code/media are released under the [MIT Licence][mit].
[v3.5.2]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5.2
[v3.5.3]: https://github.com/deanishe/alfred-convert/releases/tag/v3.5.3
[v3.6.0]: https://github.com/deanishe/alfred-convert/releases/tag/v3.6.0
[v3.6.1]: https://github.com/deanishe/alfred-convert/releases/tag/v3.6.1
[v3.6.2]: https://github.com/deanishe/alfred-convert/releases/tag/v3.6.2
[v3.7.0]: https://github.com/deanishe/alfred-convert/releases/tag/v3.7.0
[cryptocompare]: https://www.cryptocompare.com/
[openx]: https://openexchangerates.org/
[openx-free]: https://openexchangerates.org/signup/free
Expand Down
367 changes: 176 additions & 191 deletions docs/currencies.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Pint==0.9
Alfred-Workflow==1.36
Alfred-Workflow==1.37.2
docopt==0.6.2
26 changes: 6 additions & 20 deletions src/active_currencies.txt.default
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,22 @@ BIF
BMD
BND
BOB
BOV
BRL
BSD
BTC
BTN
BWP
BYN
BYR
BZD
CAD
CDF
CHE
CHF
CHW
CLF
CLP
CNH
CNT
CNY
COP
COU
CRC
CUC
CUP
Expand All @@ -54,6 +51,7 @@ DJF
DKK
DOP
DZD
EEK
EGP
ERN
ETB
Expand Down Expand Up @@ -88,7 +86,6 @@ JPY
KES
KGS
KHR
KID
KMF
KPW
KRW
Expand All @@ -109,20 +106,19 @@ MMK
MNT
MOP
MRO
MRU
MTL
MUR
MVR
MWK
MXN
MXV
MYR
MZN
NAD
NGN
NIO
NIS
NOK
NPR
NTD
NZD
OMR
PAB
Expand All @@ -145,11 +141,10 @@ SEK
SGD
SHP
SLL
SLS
SOS
SRD
SSP
STD
STN
SVC
SYP
SZL
Expand All @@ -160,14 +155,11 @@ TND
TOP
TRY
TTD
TVD
TWD
TZS
UAH
UGX
USD
USN
UYI
UYU
UZS
VEF
Expand All @@ -177,21 +169,15 @@ WST
XAF
XAG
XAU
XBA
XBB
XBD
XCD
XDR
XOF
XPD
XPF
XPT
XSU
XUA
YER
ZAR
ZMW
ZWL

# Crypto currencies
AUR
Expand Down
Loading

0 comments on commit 22ad3df

Please sign in to comment.