Jump to content

Smart calculations with Numi


Recommended Posts

  • 2 weeks later...
  • 2 weeks later...
  • 1 year later...
Posted

Should it be necessary to hit enter after typing "n" or "="?

 

I am new to Alfred but it seems like most keywords do not require hitting enter before they start to work.

  • 10 months later...
Posted

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

 

 

 

  • 4 months later...
Posted
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 😛 

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

Posted

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

  • 1 month later...
Posted

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.

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

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

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

  • 3 months later...
  • 5 months later...
  • 1 year later...
Posted

@nikolaeu are you still keeping up the workflow?  I just installed it and it either won't make the calculations, or it gives incorrect responses.  See attached.

Screenshot 2024-10-22 at 11.30.46 AM.png

Screenshot 2024-10-22 at 11.32.29 AM.png

Screenshot 2024-10-22 at 11.31.13 AM.png

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