• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 18.3k 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 May 19, 2019, 2:51 AM

    I just looked at them but am not sure of the implications of them. I was able to get my magicmirror to work with MMM-googleassistant with one command via command line:

    /home/pi/env/bin/python3 -u /home/pi/MagicMirror/modules/MMM-GoogleAssistant/pi/assistant.py

    Does that help make it easier to autostart in another script? Definitely beyond my abilities at this point. I definitely appreciate your continued effort!

    S 1 Reply Last reply May 19, 2019, 3:52 AM Reply Quote 0
    • S Away
      sdetweil @poopyurinal
      last edited by May 19, 2019, 3:52 AM

      @poopyurinal said in MMM-GoogleAssistant autostart:

      /home/pi/env/bin/python3 -u /home/pi/MagicMirror/modules/MMM-GoogleAssistant/pi/assistant.py

      so, put that command as the 1st in the little script you wrote…
      and the second command starts 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 May 20, 2019, 1:56 AM

        @poopyurinal said in MMM-GoogleAssistant autostart:

        /home/pi/env/bin/python3 -u /home/pi/MagicMirror/modules/MMM-GoogleAssistant/pi/assistant.py

        I put that command in the script. What was the second part about starting MM? MM is already starting automatically via pm2. With just the quoted command in the script, after reboot, the GoogleAssistant is not functional. Do I need to restart MM after running this script? What is the command to do that?

        Thanks for your sustained help!

        1 Reply Last reply Reply Quote 0
        • P Offline
          poopyurinal
          last edited by May 20, 2019, 1:59 AM

          I should also ask, do I need a “&” after any of these commands? I’ve seen that in some tutorials, but don’t fully understand when it is needed and when it is not.

          S 1 Reply Last reply May 20, 2019, 3:42 AM Reply Quote 0
          • S Away
            sdetweil @poopyurinal
            last edited by sdetweil May 21, 2019, 11:37 AM May 20, 2019, 3:42 AM

            @poopyurinal ok, never mind on the mm…

            the & at the end of a command string means, spin that command off in the background and come back… to read another command

            if you do NOT have & at the end, then this command runs and all the rest wait til this command ends…

            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 May 21, 2019, 1:59 AM

              My script now has these contents:

              #!/bin/bash

              /home/pi/env/bin/python3 -u /home/pi/MagicMirror/modules/MMM-GoogleAssistant/pi/assistant.py

              But the Google Assistant does not work upon boot. If I run the command:

              /home/pi/env/bin/python3 -u /home/pi/MagicMirror/modules/MMM-GoogleAssistant/pi/assistant.py

              after boot, from the command line, it starts. What can I do to fix this? It seems so close to working…

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 3
              • 4
              • 5
              • 5 / 5
              5 / 5
              • First post
                43/46
                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