MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-GoogleAssistant autostart

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    46 Posts 3 Posters 22.0k Views 3 Watching
    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.
    • S Offline
      sdetweil
      last edited by

      what is the reported problem? and where?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • P Offline
        poopyurinal
        last edited by

        I don’t get a reported problem (or don’t know where to look). I just don’t have an active module upon boot. Where can I look for a reported problem?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil
          last edited by

          starting a pgm at boot

          https://timleland.com/how-to-run-a-linux-program-on-startup/

          you might need two? on the py and one the mirror app?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @poopyurinal
            last edited by

            @poopyurinal so, does mirror app start? but assistant doesn’t work ? are you using pm2? to control Mirror autostart?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil
              last edited by sdetweil

              auto install script sets up a pm2 module to start mirror app

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • P Offline
                poopyurinal
                last edited by

                yes, the mirror app starts flawlessly with all installed modules. The assistant icon appears on the mirror, but is not activated by “Ok google” unless I type the commands in my OP. I believe pm2 is controlling the Mirror autostart.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @poopyurinal
                  last edited by

                  @poopyurinal ok, but if yoiu start it manually does it work?

                  pm2 stop MagicMirror
                  open a terminal window (ctrl-alt-t)
                  cd MagicMirror
                  npm start

                  does it all work?
                  I don’t know assistant.py I assume it runs in the background… and somehow talks to the module…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil
                    last edited by

                    and with mirror running on boot, press ctrl-shit-i to open the developers window, and select the console tab, and scroll up to find any module errors

                    there is also a pm2 command to show its log… (I don’t use pm2 myself).

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @poopyurinal
                      last edited by

                      @poopyurinal said in MMM-GoogleAssistant autostart:

                      I know that to start the module successfully, I can enter the following 3 commands:
                      source env/bin/activate
                      cd ~/MagicMirror/modules/MMM-GoogleAssistant/pi
                      python3 assistant.py

                      you are not starting the module… you are starting a background application
                      that is included in the module folder

                      the ‘module’ only runs inside the MagicMirror environment

                      so, you need to create a command that does the startup…
                      start the py and then start MM

                      and then automate that

                      if u stop MM manually and restart it (without doing the assistant.py step) do the GA work thru mirror as u expect?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        poopyurinal
                        last edited by

                        pm2 stop MagicMirror gives me:

                        [PM2][ERROR] Process MagicMirror not found
                        ┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
                        │ Name │ id │ mode │ status │ ↺ │ cpu │ memory │
                        ├──────┼────┼──────┼────────┼───┼─────┼──────────┤
                        │ mm │ 0 │ fork │ online │ 1 │ 0% │ 2.5 MB │
                        └──────┴────┴──────┴────────┴───┴─────┴──────────┘
                        Use pm2 show <id|name> to get more details about an app

                        Any thoughts? The MagicMirror is running. If I stop it by hitting Alt and closing it via the menu bar, it automatically restarts.

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 2 / 5
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy