alexylem / jarvis

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

[Request] Start script while listening #878

Open sickboy2711 opened 6 years ago

sickboy2711 commented 6 years ago

Hello is it possible to start a script while JARVIS is listening and starting another script while JARVIS gives an answer? Then the script should run again, which is responsible for listening, until the timeout is reached. It's actually about the fact that I would like to exploit the function of my Matrix Voice and like to listen to the displayed RGB LEDs, I can address these LEDs via a script. As soon as an answer is given, another script should be called.

Thanks

Oliv4945 commented 6 years ago

I think the hooks are made for you ;)

sickboy2711 commented 6 years ago

Thanks Oliv4945

i can start my LED green with this at SSH: /home/pi/matrix-hal-project/green I have try to put my command in the hook „program_startup“ with && /home/pi/matrix-hal-project/green it looks like this: $verbose && jv_debug "DEBUG: program_startup hook" && /home/pi/matrix-hal-project/green

But it don’t Start. Can you give me an example how i must place it there?

Thank you