• 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 17.8k 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 Away
    sdetweil @poopyurinal
    last edited by May 16, 2019, 2:41 AM

    @poopyurinal you are right. python3 should come first.

    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 16, 2019, 2:48 AM

      Thanks for clarifying. Any idea on the process id changing with

      ps -ef | grep assistant

      ??

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

        @poopyurinal sounds like assistant is ending on its own.

        When u do this manually, do you have to be in the module folder?

        If you run the python3 path…/assistant.py

        When u are NOT in the module folder, does it work, or give an error?

        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 17, 2019, 2:04 AM

          I can run the command:

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

          as long as I first run:

          source /env/bin/activate

          It works appropriately after running those two commands. Running the top command in this post without running the bottom command results in an error.

          S 1 Reply Last reply May 17, 2019, 2:08 AM Reply Quote 0
          • S Away
            sdetweil @poopyurinal
            last edited by May 17, 2019, 2:08 AM

            @poopyurinal ok, make a two line script to execute both commands, and use that script as the exec script in the service

            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 17, 2019, 2:12 AM

              Sorry, can you go into a little more detail on that? How would I create that script?

              S 1 Reply Last reply May 17, 2019, 2:31 AM Reply Quote 1
              • S Away
                sdetweil @poopyurinal
                last edited by May 17, 2019, 2:31 AM

                @poopyurinal edit a new file, add the two lines to it, and save.

                The do

                chmod +x ????
                

                Where ??? is the name of the file you just created

                Then make that file name the name of the exec script.

                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 17, 2019, 2:32 AM

                  Do you mean a shell script? Or a python script?

                  S 1 Reply Last reply May 17, 2019, 2:32 AM Reply Quote 0
                  • S Away
                    sdetweil @poopyurinal
                    last edited by May 17, 2019, 2:32 AM

                    @poopyurinal shell script

                    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 17, 2019, 2:35 AM

                      In the ExecStart field of the service, what is the command I need to run before the path? My shell script is in /home/pi/testerscript.sh. What command do I need to run that?

                      S 1 Reply Last reply May 17, 2019, 2:42 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 3 / 5
                      3 / 5
                      • First post
                        29/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