Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
biati-digital committed Jun 6, 2022
1 parent 1574002 commit 9c5cbf9
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 163 deletions.
39 changes: 29 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ Used to format the converted amount, you will see a list of formats to choose fr
- **Set Fixer API**
Set your fixer API Key for support more currencies, after you select this option just copy paste your Key and press Return to save it.

**The currencies are updated every 24 hours, if you need to update this more often you can set a custom interval.** To do this you need to [Set a Workflow Environment Variables](https://www.alfredapp.com/help/workflows/advanced/variables/). The name should be `currency_cache_interval` and the value should be the number of hours, for example, to update every 6 hours you need to set the value to `6`. Only do this if you know what you are doing and you understand that the API has limits.


### Currency Symbols

You can use currency symbols in your query. For example `100¥ to €` will be converted from 100 Japanese yen to the equivalent in Euros. Here is a list of available symbols:
Expand Down Expand Up @@ -157,7 +160,7 @@ TT$ | TTD | Trinidad and Tobago dollar

## Cryptocurrency

Calculate Anything can convert between 100 cryptocurrencies. Again, you can use natural language or simply pass the currency symbol.
Calculate Anything can convert between 5,000 cryptocurrencies and you can define your own. Again, you can use natural language or simply pass the currency symbol.

```
- 2 bitcoins to dollars
Expand Down Expand Up @@ -193,6 +196,14 @@ The following options are available for cryptocurrency conversions. Simply launc
- **Set Coinmarketcap API**
Select this option, paste your API key and press Return to save it.

- **Add custom cryptocurrency**
The workflow includes up to 5,000 cryptocurrencies. if you need a cryptocurrency that it's not included, you can select this option and enter the cryptocurrency symbol, for example `SATS` for Satoshi, if you do not know the symbol go to [https://coinmarketcap.com](https://coinmarketcap.com), search for the cryptocurrency and the symbol will be at the right side of the cryptocurrency name.

- **Remove custom cryptocurrency**
Select this option to remove a custom cryptocurrency if no longer needed.

**The cryptocurrencies are updated every 24 hours, if you need to update this more often you can set a custom interval.** To do this you need to [Set a Workflow Environment Variables](https://www.alfredapp.com/help/workflows/advanced/variables/). The name should be `cryptocurrency_cache_interval` and the value should be the number of hours, for example, to update every 6 hours you need to set the value to `6`. Only do this if you know what you are doing and you understand that the API has limits.


## Units

Expand Down Expand Up @@ -362,7 +373,7 @@ ms | Milisecond
μs | Microsecond
ns | Nanosecond

#### Available Energy Units
#### Available Energy/Power Units

Unit | Unit Name
------ | -----------
Expand All @@ -377,14 +388,6 @@ kwhr | Kilowatt Hour
mwhr | Megawatt Hour
mev | Mega Electron Volt

#### Available Power Units

Unit | Unit Name
---- | ---------
w | Watts
kw | Kilowatts
ps | Metric Horsepower
hp | Mechanical Horsepower

## Data Storage

Expand Down Expand Up @@ -686,6 +689,22 @@ This workflow would not be possible without:

## Changelog

### 3.4.0

- New: You can now provide a workflow variable to define the duration of the currencies cache
- New: Support for more cryptocurrencies, up to 5,000
- New: You can also difine custom cryptocurrencies
- Updated: Fixer.io API now uses API Layer, the workflow will check your API key to make sure the correct endpoint is used.
- Improved: Now the workflow shows a message when it's updating currency and cryptocurrencies rates
- Improved: Replaced file_get_contents with curl for some operations
- Fixed: datastorage_force_binary was not working as expected
- Fixed: No output in cryptocurrencies when "from" and "to" were the same
- Fixed: Error on updater not working correctly with some PHP versions

### 3.3.0

- Updated dependencies

### 3.2.0

- New: Added Power units w, kw, ps, and hp. @wwkeyboard
Expand Down
12 changes: 6 additions & 6 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ include_once "./process.php";</string>
<key>escaping</key>
<integer>0</integer>
<key>keyword</key>
<string>vat</string>
<string>iva</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand Down Expand Up @@ -1773,15 +1773,15 @@ Made with love by https://www.biati.digital</string>
<key>variables</key>
<dict>
<key>base_currency</key>
<string>[\"USD\",\"CNY\",\"EUR\",\"TWD\"]</string>
<string>[\"MXN\"]</string>
<key>coinmarket_apikey</key>
<string>c823b5ee-7ca5-4823-8f98-a200e5fd7041</string>
<key>fixer_apikey</key>
<string>65fa43c123a096c17dbd903c2b0adbe9</string>
<key>language</key>
<string>es_ES</string>
<key>last_update_check</key>
<string>1639970868</string>
<string>1641588520</string>
<key>settings_migrated</key>
<string>true</string>
<key>time_format</key>
Expand All @@ -1794,17 +1794,17 @@ Made with love by https://www.biati.digital</string>
<key>variablesdontexport</key>
<array>
<string>time_zone</string>
<string>vat_percentage</string>
<string>settings_migrated</string>
<string>base_currency</string>
<string>language</string>
<string>time_format</string>
<string>coinmarket_apikey</string>
<string>last_update_check</string>
<string>fixer_apikey</string>
<string>settings_migrated</string>
<string>vat_percentage</string>
</array>
<key>version</key>
<string>3.2.0</string>
<string>3.3.0</string>
<key>webaddress</key>
<string>https://github.com/biati-digital/alfred-calculate-anything</string>
</dict>
Expand Down
Loading

0 comments on commit 9c5cbf9

Please sign in to comment.