Jump to content

Numi workflow can't do math


Recommended Posts

Posted

Hi everyone!

 

I'm new to Alfred and figuring things out.  I installed the Numi workflow.  It's my first workflow.  I can call up Numi in the Alfred command bar. But it either doesn't provide an answer or the answers it produces is incorrect.

 

What am I doing wrong?

 

Thanks for the help!

Screenshot 2024-10-22 at 11.32.29 AM.png

Screenshot 2024-10-22 at 11.31.30 AM.png

Screenshot 2024-10-22 at 11.31.13 AM.png

Screenshot 2024-10-22 at 11.30.46 AM.png

Posted

Welcome @snachy,

 

Please see the How to Ask for Help with a Workflow post for a primer on the information to include when asking for assistance. Following those short points only takes a minute and makes everyone better equipped to help you.

 

For conversions, you may want to take a look at the official workflows: Unit Converter and Currency Converter.


There are other workflows for conversions in the Alfred Gallery, including Convert, Soulver, Calculate Anything, and Coinc.

  • 2 weeks later...
Posted

I'm also having issues with this plugin after uninstalling/reinstalling it a few times.  Basic addition works but none of the conversions.

This is the output:
 

#working query
[12:59:54.700] Numi[Script Filter] Queuing argument '2 + 5'
[12:59:54.837] Numi[Script Filter] Script with argv '2 + 5' finished
[12:59:54.842] Numi[Script Filter] {"items":[{"title":"7","arg":"7","text":{"copy":"2 + 5 = 7","largetype":"2 + 5 = 7"},"mods":{"cmd":{"subtitle":"2 + 5 = 7","arg":"2 + 5 = 7"},"alt":{"arg":"2 + 5"}}}]}
#not working
[12:59:57.930] Numi[Script Filter] Queuing argument '2euro to cad'
[12:59:58.079] Numi[Script Filter] Script with argv '2euro to cad' finished
[12:59:58.085] Numi[Script Filter] {"items":[{"title":"","arg":"","text":{"copy":"2euro to cad = ","largetype":"2euro to cad = "},"mods":{"cmd":{"subtitle":"2euro to cad = ","arg":"2euro to cad = "},"alt":{"arg":"2euro to cad"}}}]}

Based on the output it looks like an issue with Numi's API.

I'm using Alfred 5.5.1 the Numi plugin is 1.1.0
I wonder if @nikolaeu is still updating this plugin?

  • 2 weeks later...
Posted

I heard back from @nikolaeu on this, I don't think Numi supports the old `curl` request in the index.js file anymore. 
I installed the Numi CLI and then updated index.js lines 25 to query `numi-cli` instead of run the curl:
 

  const query = `numi-cli "${input}"`
  let result
  try { result = os.doShellScript(query) }


Works great.  Let me know if you have any questions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...