alexylem / jarvis

Jarvis.sh is a simple configurable multi-lang assistant.
http://openjarvis.com
MIT License
800 stars 198 forks source link

Spoken numbers converted to integer values #971

Open roccodicarlo opened 4 years ago

roccodicarlo commented 4 years ago

Description

I am try to trigger an HTTP request as part of the command to be executed, but the HTTP request includes a spoken response (*) from the command words which must ne interpreted as integer not text.

Logs

For instance, the command entry is

REMOVE|DELETE|ERASEENTRY|ITEM|MEMO () FROM PHONE* == say "ok remove item from phone list" && jv_curl "http://192.168.1.124:8080/RemoveMemo?memoTitle=Phone%20Numbers&item="+"(1)"

The result of my command (from debug) is

REMOVE ITEM TWO

The HTTP URL I want to trigger is

"http://192.168.1.124:8080/RemoveMemo?memoTitle=Phone%20Numbers&item=2"

How is this possible