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

Scheduled Pinned Locked Moved Feature Requests
42 Posts 3 Posters 14.6k 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 Jan 3, 2019, 1:30 AM

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

    S 1 Reply Last reply Jan 3, 2019, 1:31 AM Reply Quote 0
    • S Offline
      sdetweil @dazza120
      last edited by Jan 3, 2019, 1:31 AM

      @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 Jan 3, 2019, 1:35 AM Reply Quote 0
      • D Offline
        dazza120 @sdetweil
        last edited by Jan 3, 2019, 1:35 AM

        @sdetweil no on the two lines above it

        S 1 Reply Last reply Jan 3, 2019, 1:36 AM Reply Quote 0
        • S Offline
          sdetweil @dazza120
          last edited by Jan 3, 2019, 1:36 AM

          @dazza120 no, those are comments to explain what these lines do

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Jan 3, 2019, 1:51 AM Reply Quote 1
          • D Offline
            dazza120 @sdetweil
            last edited by Jan 3, 2019, 1:51 AM

            @sdetweil ok cool so this is how i have it now

            # Command to be executed when an event starts. (default: none)
            # An event starts at first motion detected after a period of no motion defined by event_gap
             on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started
            
            # 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 /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion ended
            
            S 1 Reply Last reply Jan 3, 2019, 1:52 AM Reply Quote 0
            • S Offline
              sdetweil @dazza120
              last edited by Jan 3, 2019, 1:52 AM

              @dazza120 looks good

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Jan 3, 2019, 1:59 AM Reply Quote 0
              • D Offline
                dazza120 @sdetweil
                last edited by Jan 3, 2019, 1:59 AM

                @sdetweil thanks ive done this command chmod +x external_motion but i don’t see an outcome it just re turns to pi@raspberrypi:~/MagicMirror/modules/MMM-SleepWake

                whole commandline below

                pi@raspberrypi:~/MagicMirror/modules/MMM-SleepWake $ chmod +x external_motion

                S 1 Reply Last reply Jan 3, 2019, 2:02 AM Reply Quote 0
                • S Offline
                  sdetweil @dazza120
                  last edited by Jan 3, 2019, 2:02 AM

                  @dazza120 right. That makes my script executable, so motion can execute it

                  Now u will see files appear in the MMM-SleepWake/motion folder

                  When the motion module detects motion, and when it ends.

                  My module uses those files

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Jan 3, 2019, 2:04 AM Reply Quote 2
                  • S Offline
                    sdetweil @sdetweil
                    last edited by Jan 3, 2019, 2:04 AM

                    @sdetweil u start the motion tool with sudo motion &

                    And u can see it’s actions in /var/log/motion/motion.log

                    The tail command will show you the last few lines (default 20) of a file

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    D 2 Replies Last reply Jan 3, 2019, 2:08 AM Reply Quote 2
                    • D Offline
                      dazza120 @sdetweil
                      last edited by Jan 3, 2019, 2:08 AM

                      @sdetweil i’ll have a look tomorrow, thanks very much for your help much appreciated for your help

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