Status Recipe Question
Hello @bugsounet. I hope you are doing well. I would like to ask you a Question about status recipe. I have the python script which is activating with GA status. I use only “listen” (blue led), “hook” (green led) and “error” (red led)status. My problem is although in the script is set to deactivate the leds 2 seconds after activating only the “listen” status does it. Both “hook” and “error” are activating and deactivating immediately. I’m not sure if this is recipe’s problem that is why I opened the topic in general discussion category. Although when I run the script in the terminal like
python3 script_v3.py listen
python3 script_v3.py hook
the leds are activating and deactivating as they should in all 3 status. Have you any idea what could be the problem? I can send you the script if you want to inspect it. I have also message to the guy who whrote the script for me but he hasn’t reply yet. Thank you in advance.
@bugsounet hello again. I just wanted to inform you that he guy who whrote the script replied and he told me that since the script is working as it should from terminal something else is the problem. As an expert do you have any idea what could cause this?
Hi, and what logs says ? (
command not foundi think)
@bugsounet Hello. If you mean in pm2 logs I have no errors
0|mm | [DETECTOR] Starts listening. 1 Models 0|mm | [10.10.2022 21:36.01.952] [LOG] 0|mm | [DETECTOR] Stops listening. 0|mm | [10.10.2022 21:36.01.956] [LOG] 0|mm | [DETECTOR] Detected: jarvis from: Snowboy 0|mm | [10.10.2022 21:36.06.743] [LOG] 0|mm | [DETECTOR] Starts listening. 1 Models
so recipe is not launched, i think
(or maybe result is on debug only)
past it ?
@bugsounet But If recipe is not launced then how does the leds turn on and off?
ah, sorry, i not really understand.
I have to verify but i think when hook or error event is launched , it turn to standby +/- imediately
maybe it’s the cause
Note: logs events on the python code can help or enable debug mode in GA
@bugsounet YES. That is what exactly is happening. When GA is in listen status the blue leds turn on anfter 2 seconds they turn off. But when GA is in one of the others to statuses (hook and error) the leds turning on and off immidiately.
why I have do this rule ?
Simply to send Hand to
EXT-Detectoras soon as possible
Sample: When GA popup is on the screen and GA stop speaking, you can send request directly with
the rule is the same with hook and error
hook is done -->. ready to listen (trigged by standby)
error is displayed -> ready to listen (trigged by standby)
result is displayed and finish speak -> ready to listen (trigged by standby)
after I think to this:
param.status.actual=> it’s the actual state
param.status.old=> it’s the lasted status before actual state
maybe you can use it
standbyin actual and
hookin old then wait 2sec and apply
something like this
@bugsounet No problem. It does it job as it is. The only time I need this is when my screen is turned off. I expained why in my mirror’s topic. Since I have this everything else is not so important. Thank you again and in person now for all your help you have given me. Keep up the good work!
It’s there that you understand that why it’s difficult to code something !
Sometime simple things begin hard