• 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.

PIR-Sensor - put your mirror to sleep if not used

Scheduled Pinned Locked Moved Troubleshooting
126 Posts 37 Posters 197.4k Views 20 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.
  • P Offline
    paviro Admin @IngmarSwart
    last edited by paviro May 15, 2016, 10:53 AM May 15, 2016, 10:51 AM

    @IngmarSwart could you explain what setting this changes? And may open a pull request? Is this only possible with sudo?

    Please also note: Use Markdown on code snippets so it is easier to read!

    We're all stories in the end. Just make it a good one, eh?

    – The Doctor

    1 Reply Last reply Reply Quote 0
    • I Offline
      IngmarSwart
      last edited by May 15, 2016, 11:27 AM

      @paviro, if I understoof the documentation correctly, the command chvt simply changes the foreground terminal. It appears that in my case the the output of the RasPi is send to another terminal than that is displayed on the monitor.

      My apologies for not using the markdown code. I only recently started using GitHub etc, so I have some learning to do when it comes to opening pull requests.

      I just tested to confirm if the use of sudo is required. Unfortunately, it is.

      P 1 Reply Last reply May 15, 2016, 11:29 AM Reply Quote 0
      • P Offline
        paviro Admin @IngmarSwart
        last edited by May 15, 2016, 11:29 AM

        @IngmarSwart Strange that you have this issue, since I do not. I only have the problem when the monitor is disabled via a relay while the Pi boots.
        Could you do some more research on why this is happening and maybe find a way to fix it without root rights?

        We're all stories in the end. Just make it a good one, eh?

        – The Doctor

        I 1 Reply Last reply May 19, 2016, 8:31 PM Reply Quote 0
        • I Offline
          IngmarSwart
          last edited by May 15, 2016, 11:41 AM

          @paviro, I also don’t understand where it comes from, especially since the MagicMirror appears as it should immediately after boot. At first glance, the monitor (Philips 273V5L) and Pi seem to play nice: EDID information is correct, tvservice -s gives the native resolution and refresh rate of the monitor. If I can find some time, I will look into it. However, I am also quite earger to start playing with your Facial-Recognition module… :relaxed:

          1 Reply Last reply Reply Quote 0
          • K Offline
            KirAsh4 Moderator
            last edited by May 17, 2016, 1:49 AM

            This is more of a PSA than anything else, but particularly since the tvservice is part of the rPi’s firmware. While running 'sudo apt-get update && sudo apt-get upgrade' will upgrade your rPi’s packages and firmware, it may not be the latest version. For most, this is okay. But if you’re like me, who likes to live on the bleeding edge of things, particularly when something isn’t working right, running 'sudo rpi-update' separately will update the firmware only, including binaries such as 'tvservice' since they’re part of the firmware, not just a standard package (in fact, you can’t find it as a stand alone package through 'apt-cache'.)

            Use at your own risk. :)

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 0
            • W Offline
              witschi87
              last edited by May 19, 2016, 11:30 AM

              I’m getting the following error:

              start-magic-0 (err): WARNING! Could not find config. Please create one.
              start-magic-0 (err): App threw an error when running [Error: Module version mismatch. Expected 47, got 48.]
              start-magic-0 (err): [Error: Module version mismatch. Expected 47, got 48.]
              

              I’ve just cloned the git repository and installed the dependencies.
              And that is my config:

              {
              	module: 'MMM-PIR-Sensor',
              	config: {
              		sensorPIN: 22,
              		powerSaving: true
              	}
              },
              
              1 Reply Last reply Reply Quote 0
              • P Offline
                paviro Admin
                last edited by May 19, 2016, 1:19 PM

                Please use Node v5 not v6 one of the dependencies is not yet ready for v6.

                We're all stories in the end. Just make it a good one, eh?

                – The Doctor

                K 1 Reply Last reply May 19, 2016, 4:00 PM Reply Quote 0
                • W Offline
                  witschi87
                  last edited by May 19, 2016, 1:24 PM

                  Can you tell me how to do that, please?!

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    paviro Admin
                    last edited by paviro May 19, 2016, 1:26 PM May 19, 2016, 1:26 PM

                    First Google result when searching for downgrade node to v5 :)
                    Also do not forget to execute npm installand if that does not work reinstall the module from GitHub after you downgraded.

                    We're all stories in the end. Just make it a good one, eh?

                    – The Doctor

                    J D 2 Replies Last reply May 21, 2016, 2:38 AM Reply Quote 0
                    • K Offline
                      KirAsh4 Moderator @paviro
                      last edited by May 19, 2016, 4:00 PM

                      @paviro, but but but … @MichMich said … he said … he said node 6.1.0 is now supported. Dependencies be damned, they need to catch up.

                      A Life? Cool! Where can I download one of those from?

                      M 1 Reply Last reply May 19, 2016, 5:03 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 12
                      • 13
                      • 5 / 13
                      5 / 13
                      • First post
                        48/126
                        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