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.
    • 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
      • S Offline
        sdetweil @poopyurinal
        last edited by

        @poopyurinal pm2 list

        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 list
          ┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
          │ 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

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

            @poopyurinal pm2 stop mm

            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 mm
              [PM2] Applying action stopProcessId on app [mm](ids: 0)
              [PM2] mm ✓
              ┌──────┬────┬──────┬─────────┬───┬─────┬────────┐
              │ Name │ id │ mode │ status │ ↺ │ cpu │ memory │
              ├──────┼────┼──────┼─────────┼───┼─────┼────────┤
              │ mm │ 0 │ fork │ stopped │ 1 │ 0% │ 0 B │
              └──────┴────┴──────┴─────────┴───┴─────┴────────┘
              Use pm2 show <id|name> to get more details about an app

              Sorry, limited by new user restriction of one post every 120 seconds

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

                @poopyurinal cool now follow the link i gave about creating a service that will autostart and make it start the assitant.py

                I don’t understand why the MMM-GoogleAssistant module doesn’t do this… it would be so easy…

                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

                  in the link it asks for ‘your service name’ make that GoogleAssistant
                  the command is ‘/home/pi/MagicMirror/modulesMMM-GoogleAssistant/python3 assistant.py’

                  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

                    once u create the service… make sure assistant.py is not running already

                    ps -ef | grep assistant 
                    

                    the 1st number on the output is the process id
                    pi xxxx yyyy etc…
                    then

                    sudo kill -9 xxxx
                    

                    then do

                    sudo systemctl start GoogleAssistant
                    

                    then

                    ps -ef | grep assistant 
                    

                    to insure assistant is running
                    then start mirror manually with npm start

                    if all is good, reboot

                    service will start the assistant.py script
                    and pm2 will 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

                      Many thanks Sam! I’ll need to take a look at your suggestions tomorrow. I appreciate the quick (immediate!) help.

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

                        @poopyurinal no problem… let us know either way

                        i use the assistantmk2 module… don’t need that py file

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        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