-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Run][New Plugin] Currency converter #3248
Comments
Up! |
good idea |
why not add everything that calculator can convert |
exactly! that's even better than integrating the wox plugin "currency converter" also consider other functions which exist as wox plugin already (websearch, google translate) -> #3226 as well as existing features in the UELI launcher -> #3228 |
yeah fully web integration would be great |
Can anyone tell me how is the progress in this task? I can't wait because the currency converter will be very useful for me. |
There's no spec and nobody writing code as far as I know. It might take a while. |
Do you think PowerToys Run is slowly dying? Do you know what awaits her now? |
Is there anyone working on this? |
@andreperegrina best of my knowledge no but ultimately where does the data come from for the query? |
I don't not yet. I haven't done the research or code. I just download this tool and I think it's amazing. I usually use spotlight to convert dollars to pesos in my Mac and I was wondering if I can do the same here. This is why I want it to contribute. |
Does MSN Money have some sort of API? Because it has a currency converter using its own data. https://www.msn.com/en-us/money/tools/currencyconverter Edit: Ok, they seem to use https://www.refinitiv.com as source. |
With only 250 to 1000 requests per month you won't be able to make use of a free service. Remember that's 1000 request per API key that every user of this feature would share. Caching the results seems counter productive as you then are using possible outdated trading values (in addition of having no way of knowing when they need to be updated). Data source is indeed the issue and without Microsoft or any currency API service supplying the community with a plan and API key I don't see a way of this feature being implemented. |
Could we make it where the user could sign up and insert their own API key? |
Even if its only updated once a day, that's better than nothing. I only use it on spotlight for rough conversion, so I have an estimate what a conversion would be. I don't think anyone's going to be using it for anything extreme. The cache would just be a mirror of what's possible with whatever service is used, hell multiple services could be used to create this cache server, maybe cache is the wrong word? I'm wondering if we could use something like vercel query these APIs to their max requests to host a public version that isn't rate limited. 1000 requests a month, that's 33 updates per day, that's plenty! edit: I looked up Vercels free server-less function tier, and it says "Serverless Function Execution | Up to 100 GB-Hrs" That seems like it could handle an API request 33 times a day and hosting an API. |
I don't like the idea of someone having to put in their own API key. I'm also willing to bet that model is against the services TOS. I don't think a Microsoft product should piggy back off someone's service / compute / bandwidth like that. If i was that company, i'd be irked. TLDR: We can't stop a community plugin from adopting such a model but that model is not one I want inside PowerToys. |
can't we query to bing's currency converter and parse the result? |
Is there any way that Microsoft could supply an API key or service for the community to use for this feature? |
@cyberrex5 / @ThiefZero I don't think the API is open for 3rd parties (which PT would be treated like that) |
Why cant this be used? This is a microsoft product with microsoft developers right? |
@TomLewis that api is for azure pricing sheets.
|
Oops! |
What about this one? This also came from that link, but no one seems to be talking about it.
https://github.com/fawazahmed0/currency-api Sample Request: Are there any pitfalls to using this data source? |
@RinMinase, where does that data come from. Can you confirm the data's legitimacy and validity? If PowerToys has a plugin that sources data, we need to validate and be sure it stays valid. They do not say where that data is sourced from. To me, that is a big red flag. |
@crutkas, it fetches from CoinMarketCap basing on this commit. The data-source URL seems to be placed in the ENV. This seems to be another issue I found: |
+1 for this, because is very useful resource. |
I don't see PowerToys itself creating this. While it is a popular request, it requires a service backend and honestly would be best suited against 3rd party plugin support which is #3200 |
For some crazy reason I remembered this exact issue from awhile ago. I stumbled across this website that is free exchange rate information. A user could be easily guided to utilize the API key. Free plan is 1k requests/month. |
Can people please stop adding to this thread with random 3rd party exchange rate APIs that can't scale or meet legal/security/accuracy/reliability requirements? Realistically, if this ever gets the green light as a 1st party plugin, it will be with one of Microsoft's own APIs or not at all. That said, Their readme explicitly says that API is not licenced for other use, but if Microsoft can licence Microsoft's data feed from Microsoft to Microsoft for use in Microsoft's open source calculator app which already ships with every copy of Microsoft's operating system, then it seems mad to me that Microsoft's PowerToys can't access a similar / the same licence too, or piggyback off of Calculator's existing functionality. So here's a new idea. There's an open feature request microsoft/calculator#1524 to add some kind of command line argument or protocol handler support. If that goes anywhere, perhaps this issue could be revisited to parse a currency conversion search query and then simply open Calculator with the right arguments (just like opening a search query in a web browser). That way, PowerToys wouldn't need to directly licence or consume any APIs at all. |
Does it work now? Why is this issue closed? |
Oof. Sorry, but I dont really get it. The issue is open, and most of the people are talking about some wox. Is it a full version of powertoys? Is there a way to mae your own plugins for powertoys? |
I created a custom plugin for this https://github.com/Advaith3600/powertoys-run-currency-converter |
this would be very useful feature for everyone I hope you guys can implement it
The text was updated successfully, but these errors were encountered: