Comments (12)
Hi, that seems doable, I'll take a look at this as soon as I have some free time
from alfred-calculate-anything.
Version 2.0.0 is out, in this new version you can define multiple base currencies, please check the README.
Please note this new version is a complete rewrite so some things will look different.
from alfred-calculate-anything.
I've updated to latest version, but unfortunately is crashing when trying to add a new base currency beside the existing one.
from alfred-calculate-anything.
Sorry about that, did a few tests and everything was working fine, I've no idea what happened to the missing "r" in merge. Anyway I've released and update and improved action modifiers, more in the docs.
from alfred-calculate-anything.
Thanks for the update. I've managed to add a secondary base currency, but now when trying to convert, no reply is given:
For example, I have RON and EUR as base currencies set. If I enter "100 usd", no results are returned. I was expecting to see 100 usd converted both in RON and in EUR.
If I explicitly enter "100 usd eur", the conversion works.
A second issue: when adding a base currency, the app is case sensitive meaning that I can add both "eur" and "EUR"
from alfred-calculate-anything.
Hi @robertmircea thank's for trying the update, I'm not able to replicate the errors you mention
The second issue you mention also should not be happening, if you check the code it does not matter if you enter ron or RON, the code will convert the entered text to uppercase create an array with all the elements, remove duplicates and finally save the configuration.
¿Are you using the latest version?
¿Could you please try to remove all the currencies and add them again?
You can also try to remove the cache, in /youruser/Library/Application Support/Alfred/Workflow Data/com.alfred.calculateanything/ and delete the folder cache. This should not be necessary but you can try it.
from alfred-calculate-anything.
I've cleared the cache and it seems to work (partially) meaning:
- I have EUR and RON as base currencies
- if I enter "100 EUR" or "100 RON", it does NOT display the conversion result in base currencies
- if I enter "100 usd" (or any other non-base currency), the conversion result is displayed correctly in both EUR and RON base currencies.
- If I enter "100 EUR to RON", it works as expected and displays the result.
The expected result would be that 2) displays the conversion result in all base currencies. Ex. "100 EUR" would display both "100 EUR" and "484 RON".
from alfred-calculate-anything.
Still, I'm not able to replicate the error.
Can you please enable debug (see image) and then type 100 eur and share with me the output of the debug window?
Also can you tell me which version of Mac OS are you using? Catalina, Mojave, etc.
from alfred-calculate-anything.
When I type 100 EUR this is the debug info logged. I've also tried "100 EUR RON" after which works.
[14:25:44.456] Calculate Anything[Script Filter] Queuing argument ''
[14:25:44.568] Calculate Anything[Script Filter] Queuing argument '0'
[14:25:44.594] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:44.596] Calculate Anything[Script Filter] {"items": []}
[14:25:44.728] Calculate Anything[Script Filter] Queuing argument '00'
[14:25:44.738] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:44.740] Calculate Anything[Script Filter] {"items": []}
[14:25:44.860] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:44.862] Calculate Anything[Script Filter] {"items": []}
[14:25:45.086] Calculate Anything[Script Filter] Queuing argument '00 '
[14:25:45.220] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:45.222] Calculate Anything[Script Filter] {"items": []}
[14:25:45.333] Calculate Anything[Script Filter] Queuing argument '00 E'
[14:25:45.483] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:45.485] Calculate Anything[Script Filter] {"items": []}
[14:25:45.513] Calculate Anything[Script Filter] Queuing argument '00 EU'
[14:25:45.625] Calculate Anything[Script Filter] Queuing argument '00 EUR'
[14:25:45.649] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:45.652] Calculate Anything[Script Filter] {"items": []}
[14:25:46.000] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:46.006] Calculate Anything[Script Filter] {"items": "\"error\":\"Symbols 'EUR' are invalid for date 2020-05-24.\"" }
[14:25:46.007] ERROR: Calculate Anything[Script Filter] JSON is missing expected keys; items, variables or rerunafter:
{"items": "\"error\":\"Symbols 'EUR' are invalid for date 2020-05-24.\"" }
[14:25:51.297] Calculate Anything[Script Filter] Queuing argument '00 EUR '
[14:25:51.671] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:51.677] Calculate Anything[Script Filter] {"items": "\"error\":\"Symbols 'EUR' are invalid for date 2020-05-24.\"" }
[14:25:52.039] Calculate Anything[Script Filter] Queuing argument '00 EUR R'
[14:25:52.128] Calculate Anything[Script Filter] Queuing argument '00 EUR RO'
[14:25:52.176] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:52.183] Calculate Anything[Script Filter] {"items": []}
[14:25:52.310] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:52.316] Calculate Anything[Script Filter] {"items": []}
[14:25:52.331] Calculate Anything[Script Filter] Queuing argument '00 EUR RON'
[14:25:52.463] Calculate Anything[Script Filter] Script with argv '(null)' finished
[14:25:52.473] Calculate Anything[Script Filter] {"items": [{"title":"484.35RON","subtitle":"1EUR = 4.84RON","arg":"484.35","icon":{"path":"flags\/RON.png"},"mods":{"cmd":{"valid":true,"arg":484.35,"subtitle":"Action this item to copy the amount with no format"},"alt":{"valid":true,"arg":4.84,"subtitle":"Action this item to copy the value of 1 to the clipboard"}}}] }
from alfred-calculate-anything.
there's a new update that fixes some bugs, please try it and let me know if it's working for you.
from alfred-calculate-anything.
For me it still doesn't work after reinstall from scratch and cache folder erase. I give up if it works for other users.
from alfred-calculate-anything.
Ok, I understand, if you don't want to keep trying I'll close this issue for now. Feel free to open a new issue if you need some help.
from alfred-calculate-anything.
Related Issues (20)
- Currency conversion doesn't work at all HOT 2
- Fixer API key seems to be needed even for common currencies HOT 1
- Forum link on Alfred Gallery page leads to wrong topic HOT 2
- Missing API KEY warning is no longer shown in Alfred window (4.0.5) HOT 4
- Not Really - Found and solved currency conversion BUG HOT 3
- The addition of the translation has failed. HOT 1
- Certain percentage calculations dropped off after update HOT 7
- backcompat.php removed but still sourced in process.php HOT 1
- Please add support for the CNY alias RMB, for example "1 usd to rmb" HOT 2
- I can't use my crypto
- Allow aliasing php binary path HOT 1
- Love this workflow, but get error stating cannot convert ml (milliliters) to ounces (oz), but you can. One ml = 0.033814 fluid ounces. It is implied that ml is volume so generally do not need to specify that you are converting to fluid ounces so plain language would be milliliters to ounces or abbreviated as ml to oz.
- Installed PHP folder problem HOT 1
- XX% OF XX does not seem to work HOT 4
- Extraneous zipped info.plist in Workflow HOT 1
- [[inches >= 84 AND inches mod 12 == 0]] conversion to ft shows incorrect answer
- Currency conversion not working
- Change ExchangeRate converstion from fixer.io to OpenExchangeRates HOT 1
- FEATURE REQ: Add timezone conversions
- Bug on calculating % HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-calculate-anything.