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.

    PIR Sensor

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 4 Posters 1.7k Views 6 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.
    • A Offline
      anhanyoung
      last edited by

      I have attached my pir sensor and used this.

      https://github.com/deg0nz/MagicMirror-Display-Controller/blob/master/readme.md

      Though, it doesn’t seem to be working. How do I know if it’s working or not? It hasn’t gone to sleep after 14 seconds. Should I lower the time on the potentiometer on the pir sensor?

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        anhanyoung @anhanyoung
        last edited by

        Is there a command I can use to see if my gpio is getting any information?

        1 Reply Last reply Reply Quote 0
        • wishmaster270W Offline
          wishmaster270 Module Developer
          last edited by

          Hi, i do not now the script youbare using but i wrote two modules which do exactly what you like https://github.com/Tom-Hirschberger/MMM-Screen-Powersave-Notification and https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MacMirror @wishmaster270
            last edited by

            @wishmaster270 Hi Tom, I tried to use your module “MMM-GPIO-Notifications”. First of all the installation description is wrong. You have to use “git clone https://github.com:Tom-Hirschberger/MMM-GPIO-Notifications.git”.
            I copied your configuration example, but after starting MM I get the message that there is an error in the configuration. I tried to find any error, but with no success. Could you check the configuration you posted?
            Thanks

            S 1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @MacMirror
              last edited by

              @MacMirror u got to github, and push the clone or download button, it will give you the exact syntax of the url to git clone… and it will copy it to the clipboard for you

              i did and its

              https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications.git
              

              the example config has one too many }, try this…
              notepad++ on windows has a brace/bracket matching function so you can see where the end is
              (or start )

              {
                  module: 'MMM-GPIO-Notifications',
                  config: {
                      '17': {
                        gpio_state: 1,
                        gpio_debounce: 10,
                        notifications: [
                          {
                            notification: 'USER_PRESENCE',
                            payload: { true }
                          },
                          {
                            notification: 'SCREEN_ON',
                            payload: { 'forced': false }
                          }
                        ]
                      },
                      '4': {
                        gpio_state: 1,
                        gpio_debounce: 20,
                        notifications: [
                          {
                            'notification': 'SCREEN_TOGGLE',
                            'payload': { 'forced': true }
                          }
                        ]
                      }
                  }
              },
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • wishmaster270W Offline
                wishmaster270 Module Developer
                last edited by

                Hi,
                great that you are interested in my module. I did not test ist for a while and currently have no working installation of MM.
                Hopefully the answer of Sam helps you.
                I will try to get my mirror running this week and will test the module.

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