Jump to content

Smart calculations with Numi


Recommended Posts

  • 2 weeks later...
  • 2 weeks later...
  • 1 year later...
  • 10 months later...

After update to macOS Monterey and alfred 4.6 i am not able to use numi workflow

before query "n 200 usd to eur" trigerred workflow and it showed me result.
after update it only suggests searching the web, but i've disabled web search at all in alfred. 

For now it looks like space and letter symbols are not passed to workflow.

Alfred version: 4.6 [1222]
macOS version: 12.0.1

https://github.com/nikolaeu/numi/wiki/Alfred-Integration

directly in numi parsing works.

 

1674165375_CleanShot2021-10-29at16_03.18@2x.thumb.png.c72e49b5cf1f989ecfb7ba4bd002e4b0.png.d9dc2967288e9105d107477dc0f154d9.png

566603002_CleanShot2021-10-29at16_03.33@2x.thumb.png.b41557dd1f6897a9d477bc81a68528a0.png.bef0709ff1416e691c83e46f98281c8a.png444597308_CleanShot2021-10-29at16_03.44@2x.thumb.png.8c9bb5cd0858ae087ae9a4f42ebcad5a.png.1b8082a5654c01790c8f915b58a39e0d.png1191533833_CleanShot2021-10-29at16_07_59.thumb.png.113f738b141801e9f3c9bfec21ed6149.png.e0413f87124d4f19171627fc6f87c1da.png53466485_CleanShot2021-10-29at16_09_35.png.10c466d50aa748d7ed4aef10572fab16.png.887b1cb8b88f1133cb16cb12bc718a22.png

 

 

 

Link to comment
  • 4 months later...
2 hours ago, vitor said:

@SMN That’s the wrong page. See Alfred Integration instead and click “Numi Workflow”.

sorry but I have no clue how to install the scripts, I installed the Numi Wokflow, I downloaded the Zip which contains install.sh and folder Numi Calculate.lbaction but I dont know where to past the files or the text inside the scripts... I searched on the web and forum and even contacted them by mail... please help me 😛 

Link to comment
12 minutes ago, SMN said:

I downloaded the Zip which contains install.sh and folder Numi Calculate.lbaction but I dont know where to past the files or the text inside the scripts

 

Again, those are the wrong instructions. They are not related to Alfred. Follow the links I posted, in particular the second one which links to the Workflow.

Link to comment

oh I feel so stupid, sorry I thought it was the integration to make into Alfred !!! 

I already have the workflow working but I thought you could get better integration into Alfred (like more than one line written when you use it) with this extension :D

 

I guess I have the workflow working just fine 😜 

 

sorry and have a good day

Link to comment
  • 1 month later...

I recently set up Alfred and Numi on a new MacBook Pro, running Monterey 12.4. As one of the posters mentioned earlier in the thread, the Alfred integration wasn't working correctly when there were spaces in the query. 

 

I looked into this, and discovered it is because the version of curl in this OS is encoding spaces as '+' rather than as '%20'. I modified the script in the Alfred integration to use Javascript's encodeURIComponent function instead of letting curl do this, and the problem is resolved. Specifically, in index.js replace this:

 

const curl = `curl -G --data-urlencode 'q=${input}' http://localhost:${port}`

 

with this:

 

const curl = `curl -G "http://localhost:${port}?q=${encodeURIComponent(input)}"`

 

If the author of Numi is monitoring this thread, I am happy to submit a pull request with the fix - just let me know.

Link to comment
2 hours ago, motocoder said:

If the author of Numi is monitoring this thread, I am happy to submit a pull request with the fix - just let me know.


Especially for simple fixes, it’s best to just submit the PR than ask about it. Either the author accepts it or doesn’t, but it’s more productive to submit first and resolve any problems then, instead of having back and forth about it beforehand.

Link to comment
5 hours ago, vitor said:


Especially for simple fixes, it’s best to just submit the PR than ask about it. Either the author accepts it or doesn’t, but it’s more productive to submit first and resolve any problems then, instead of having back and forth about it beforehand.

 

Ok, I will do that.

Link to comment
5 hours ago, vitor said:


Especially for simple fixes, it’s best to just submit the PR than ask about it. Either the author accepts it or doesn’t, but it’s more productive to submit first and resolve any problems then, instead of having back and forth about it beforehand.

 

Actually, it looks like the author has already made this change, but the Wiki that links to the Alfred workflow release is pointing at an older version that does not have the change.

Link to comment
  • 3 months later...
  • 5 months later...

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...