• 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-PIR-Sensor: Everything works fine, just one thing not...

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 2.9k Views 2 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.
  • M Offline
    Medo @AxLed
    last edited by Feb 3, 2018, 8:11 AM

    @AxLed
    Thanks, did not know that this has to be done to “activate” a PIR sensor…Interesting…hmm…

    Does anyone know, if there is a method that this can be “simulated” in any way?

    1 Reply Last reply Reply Quote 0
    • C Offline
      cruunnerr
      last edited by Feb 3, 2018, 10:52 AM

      one idea is to just put the tvservice -o command in your rc.local.
      before that u should do a little sleep.

      like this:

      sudo nano /etc/rc.local

      #!/bin/sh -e
      #
      # rc.local
      #
      # This script is executed at the end of each multiuser runlevel.
      # Make sure that the script will "exit 0" on success or any other
      # value on error.
      #
      # In order to enable or disable this script just change the execution
      # bits.
      #
      # By default this script does nothing.
      
      # Print the IP address
      _IP=$(hostname -I) || true
      if [ "$_IP" ]; then
        printf "My IP address is %s\n" "$_IP"
      fi
      
      sleep 60 &
      
      tvservice -o
      
      exit 0
      

      So on every reboot it will wait 60 seconds (just to let everything start like MM) and then turn the monitor off.

      M 1 Reply Last reply Feb 7, 2018, 7:15 AM Reply Quote 3
      • M Offline
        Medo
        last edited by Feb 3, 2018, 11:47 AM

        Sounds like a great idea! I will try that soon and will geht you a reply if it works! Thanks for that possible solution…

        1 Reply Last reply Reply Quote 0
        • M Offline
          Medo @cruunnerr
          last edited by Feb 7, 2018, 7:15 AM

          @cruunnerr
          Your solution worked like a charm.
          Thanks!

          C 1 Reply Last reply Feb 7, 2018, 9:29 AM Reply Quote 1
          • C Offline
            cruunnerr @Medo
            last edited by Feb 7, 2018, 9:29 AM

            @Medo

            Glad to hear that :)

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              7/7
              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