Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Status Recipe Question

    General Discussion
    2
    12
    56
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Anthony Donators last edited by Anthony

      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
      

      or

      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.

      1 Reply Last reply Reply Quote 0
      • A
        Anthony Donators last edited by

        @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?

        1 Reply Last reply Reply Quote 0
        • bugsounet
          bugsounet Main Coder last edited by

          Hi, and what logs says ? (command not found i think)

          A 1 Reply Last reply Reply Quote 0
          • A
            Anthony Donators @bugsounet last edited by

            @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
            
            
            1 Reply Last reply Reply Quote 0
            • bugsounet
              bugsounet Main Coder last edited by bugsounet

              so recipe is not launched, i think
              (or maybe result is on debug only)

              past it ?

              A 1 Reply Last reply Reply Quote 0
              • A
                Anthony Donators @bugsounet last edited by

                @bugsounet But If recipe is not launced then how does the leds turn on and off?

                1 Reply Last reply Reply Quote 0
                • bugsounet
                  bugsounet Main Coder last edited by bugsounet

                  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

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Anthony Donators @bugsounet last edited by Anthony

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

                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder last edited by bugsounet

                      why I have do this rule ?
                      Simply to send Hand to EXT-Detector as soon as possible

                      Sample: When GA popup is on the screen and GA stop speaking, you can send request directly with Jarvis...
                      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)

                      A 1 Reply Last reply Reply Quote 0
                      • bugsounet
                        bugsounet Main Coder last edited by bugsounet

                        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 😉

                        if standby in actual and hook in old then wait 2sec and apply standby

                        something like this

                        1 Reply Last reply Reply Quote 0
                        • A
                          Anthony Donators @bugsounet last edited by

                          @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!

                          1 Reply Last reply Reply Quote 0
                          • bugsounet
                            bugsounet Main Coder last edited by

                            Sure 🙂
                            It’s there that you understand that why it’s difficult to code something !
                            Sometime simple things begin hard 😉

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post
                            Powered by NodeBB | @bugsounet ©2022