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-voice ugly hdmi banner

    Scheduled Pinned Locked Moved Feature Requests
    42 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.
    • D Offline
      dazza120 @sdetweil
      last edited by

      @sdetweil cheers but I had to leave MMM-SleepWake as I didn’t have a clue how to install the motion project, the more I looked at it the more my tiny brain 🧠 started to smoke 🤯

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @dazza120
        last edited by

        @dazza120 https://motion-project.github.io/motion_build.html
        To install via apt, open up a terminal window and type: sudo apt-get install motion

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          dazza120 @sdetweil
          last edited by

          @sdetweil said in MMM-voice ugly hdmi banner:

          sudo apt-get install motion

          Your joking! So is that the packaged installed with that command? As what I was looking at was totally different to this. Thanks for your help.

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @dazza120
            last edited by

            @dazza120 from github project page
            Motion, a software motion detector. Home page: https://motion-project.github.io/

            click documentation and then
            https://motion-project.github.io/motion_guide.html

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              dazza120 @sdetweil
              last edited by

              @sdetweil i have followed it as best as i could i have the package installed and have located the motion folder in my user directory but for the life of me i cant find this motion.conf file to insert your script.

              1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil
                last edited by sdetweil

                motion config is done in /etc/motion/motion.conf
                i just added a line in the readme about that

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 2 Replies Last reply Reply Quote 0
                • D Offline
                  dazza120 @sdetweil
                  last edited by

                  @sdetweil thank you, i have located it with your help, ill work on this when im not at work thanks, so its just a case of adding one of your scripts? think ill just use the start one

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @dazza120
                    last edited by sdetweil

                    @dazza120 its just one script… external_motion… you pass it a parm, started or ended
                    you need to configue both started and ended, else it can’t sleep thinking motion is still going on

                    note that because it is in the /etc folder tree, you must use sudo in front of your editor to get write permission

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dazza120 @sdetweil
                      last edited by

                      @sdetweil motion.conf won’t let me edit it, or rather the pi won’t any way around this?

                      1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil
                        last edited by

                        sudo nano /etc/motion/motion.conf

                        nano or whatever editor you choose…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 1
                        • S Do not disturb
                          sdetweil
                          last edited by

                          also just noticed that the execute bit is not set on the script… SO

                          cd modules/MMM-SleepWake
                          chmod +x external_motion

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          D 1 Reply Last reply Reply Quote 0
                          • D Offline
                            dazza120 @sdetweil
                            last edited by

                            @sdetweil so is it just this part i need to put on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @dazza120
                              last edited by

                              @dazza120 correct… and right below it the same with ended as the parm for the motion ended notice

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              D 1 Reply Last reply Reply Quote 0
                              • D Offline
                                dazza120 @sdetweil
                                last edited by

                                @sdetweil im leaving it with the ; in the command line?

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @dazza120
                                  last edited by

                                  @dazza120 the example doesn’t have ;

                                  on_event_start /home/{userid}/MagicMirror/modules/MMM-SleepWake/external_motion started

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    dazza120 @sdetweil
                                    last edited by

                                    @sdetweil no it this is what its like i hope this is correct?

                                    # Command to be executed when an event starts. (default: none)
                                    # An event starts at first motion detected after a period of no motion defined $
                                    ; on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion sta$
                                    
                                    # Command to be executed when an event ends after a period of no motion
                                    # (default: none). The period of no motion is defined by option event_gap.
                                    ; on_event_end value /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion$
                                    
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil
                                      last edited by sdetweil

                                      ok, that ; is a comment in the motion conf file, just like #… have to remove it

                                      note that the on event end has an extra token there that neds to be removed
                                      on_event_end value

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      D 1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        dazza120 @sdetweil
                                        last edited by

                                        @sdetweil yes it is do i have to remove the # aswell?

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @dazza120
                                          last edited by

                                          @dazza120 no, there is no # on those two lines

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          D 1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            dazza120 @sdetweil
                                            last edited by

                                            @sdetweil no on the two lines above it

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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