jin5354 / alfred3-workflow-currencyconvert Goto Github PK
View Code? Open in Web Editor NEWThis alfred3 workflow can convert currency conveniently.
This alfred3 workflow can convert currency conveniently.
It now returns this:
{
"0": "#################################################################################################################################",
"1": "# #",
"2": "# IMPORTANT - PLEASE UPDATE YOUR API ENDPOINT #",
"3": "# #",
"4": "# This API endpoint is deprecated and has now been shut down. To keep using the Fixer API, please update your integration #",
"5": "# to use the new Fixer API endpoint, designed as a simple drop-in replacement. #",
"6": "# You will be required to create an account at https://fixer.io and obtain an API access key. #",
"7": "# #",
"8": "# For more information on how to upgrade please visit our Github Tutorial at: https://github.com/fixerAPI/fixer#readme #",
"9": "# #",
"a": "#################################################################################################################################"
}
Readme contains this: Minor limitations include our new 1000 requests/month limit and EUR being the only available base currency for customers using a free account.
So, basically, it's now useless
Should we start looking for some other endpoint?
Hi!
Got nothing in result for any command, so checked the logs:
[ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:921:in `connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: sslv3 alert handshake failure (OpenSSL::SSL::SSLError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:921:in `block in connect'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:921:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:851:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:582:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:477:in `get_response'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:454:in `get'
from ./add.rb:11:in `<main>'
macOS 10.12.6, Alfred 3.7, default openssl / ruby installations.
Any clue?
Thanks!
I've just installed workflow. If I just type any keyword nothing happens. If I connect to my vpn server at Scaleway France it works just fine.
Looks like servers using by workflow are blocked from my country (Russia)
Hi,
When I type base-cy or add-cy nothing happens. When using add-cy, I get a flash of "Connecting to server" then cy option disappears and all I have is the option to search google
如题
具体表现是 敲cy 以后 先显示连接服务,然后就没有了。。
Please add MDL (Moldovan leu) to add-cy
Looks like perhaps a change at exchangeratesapi.io ?
http://exchangeratesapi.io/api/latest
needs to change to
http://api.exchangeratesapi.io/latest
Having added EUR to the list and trying to do cy 500EUR
results in an error from the API:
https://exchangeratesapi.io/api/latest?base=EUR&symbols=USD,GBP,CHF,PLN,EUR
{ "error": "Symbols 'USD,GBP,CHF,PLN,EUR' are invalid for date 2018-06-07." }
A solution would be to remove queried currency from the symbols array:
https://exchangeratesapi.io/api/latest?base=EUR&symbols=USD,GBP,CHF,PLN
Have tried base-cy and add-cy and I have no AUD.
Perhaps I'm doing something wrong?
Hi,
Just installed the Workflow, and I think it's great... the only issue is that remove-cy
is not working for me.
I've followed the instructions in this issue #16 (comment) to generate the log, and when running the command I get the following in the Alfred Window:
Starting debug for 'Currency Convert'
[2018-11-16 13:36:59][input.scriptfilter] Queuing argument ''
[2018-11-16 13:37:00][input.scriptfilter] Script with argument '(null)' finished
[2018-11-16 13:37:00][ERROR: input.scriptfilter] Code 1: ./remove.rb:12:in `<main>': undefined method `each' for nil:NilClass (NoMethodError)
The rest of the methods ('cy', 'add-cy', base-cy
) have worked fine. If it's relevant, I did run base-cy
before attempting to run the other methods that change data.json
... So in chronoligical order, I did cy
a few times, then base-cy
, then add-cy
, then remove-cy
failed.
Hope this helps.
Workflow is v1.5; OS is High Sierra (10.13.6).
Let me know if you need any more info
Thanks!
Please add UAH currency
RT
Should update regex to support float number.
The lack of this feature cost me a lot. 😢
[15:17:30.080] Logging Started...
[15:17:37.287] Currency Convert[Script Filter] Queuing argument ''
[15:17:37.948] Currency Convert[Script Filter] Script with argv '(null)' finished
[15:17:37.951] ERROR: Currency Convert[Script Filter] Code 1: ./add.rb:12:in <main>': undefined method
each' for nil:NilClass (NoMethodError)
[15:18:07.063] Currency Convert[Script Filter] Queuing argument ''
[15:18:07.742] Currency Convert[Script Filter] Script with argv '(null)' finished
[15:18:07.745] ERROR: Currency Convert[Script Filter] Code 1: ./convert.rb:87:in <main>': undefined method
each' for nil:NilClass (NoMethodError)
If i set the system http & https proxy to 127.0.0.1:6152, here is the error log.
ERROR: Currency Convert[Script Filter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): "127.0.0.1:6152127.0.0.1:6152" (URI::InvalidURIError)
Here is the log when i set proxy to http/https proxy to 127.0.0.1:6152
ERROR: Currency Convert[Script Filter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): "127.0.0.1:6152" (URI::InvalidURIError)
Hi,
Is it possible to add NOK as a currency when using the cy command?
Would it be possible to also support cy €100
apart from cy 100€
?
cy €100
looks more natural to me.
Thanks.
How can I add RUB currency using command add-cy?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.