MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED PIR Sensor

    Troubleshooting
    4
    6
    1165
    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
      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
        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
        • wishmaster270
          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
            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
              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

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • wishmaster270
                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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy