• 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

Scheduled Pinned Locked Moved Solved Troubleshooting
34 Posts 5 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.
  • G Offline
    gonzonia @Peter
    last edited by Nov 7, 2024, 2:21 AM

    @Peter Yes. Because I was getting an error when I tried installing.

    1 Reply Last reply Reply Quote 0
    • G Offline
      gonzonia @bugsounet
      last edited by Nov 7, 2024, 2:51 AM

      @bugsounet
      I installed v 2 successfully. Everything seemed to be working with my old config (posted above). I tried updating based on the new readme, but now it won’t come back on.

      I did have the wrong GPIO originally, but now it should be correct.

      {
      		  module: 'MMM-Pir',
      		  position: 'top_left',
      		  classes: 'SceneFamily SceneSam',
      		  config: {
      			debug: false,
      			Display: {
      					timeout: 2 * 60 * 1000,
      					animate: true,
      					style: 0,
      					colorFrom: "#FF0000",
      					colorTo: "#00FF00",
      					mode: 2,
      					counter: true,
      					lastPresence: false,
      					lastPresenceTimeFormat: "LL H:mm",
      					availability: false,
      					autoDimmer: false,
      					xrandrForceRotation: "left"
      				},
      				Pir: {
      					mode: 0,
      					gpio: 20
      				},
      				Cron: {
      					ON: [],
      					OFF: []
      				},
      				Touch: {
      					mode: 0
      				},
      				Governor: {
      					sleeping: 4,
      					working: 2
      				},
      				Sounds: {
      					on: 0,
      					off: 0
      				}
      			}
      		},
      
      H 1 Reply Last reply Nov 7, 2024, 7:16 AM Reply Quote 0
      • H Offline
        htilburgs @gonzonia
        last edited by Nov 7, 2024, 7:16 AM

        @gonzonia Are you using X11 or Wayland?
        Because now you’re using mode 2 and that’s for X11

        (still trying to learn JS, but not afraid to ask) ☺

        G 1 Reply Last reply Nov 7, 2024, 12:12 PM Reply Quote 0
        • G Offline
          gonzonia @htilburgs
          last edited by Nov 7, 2024, 12:12 PM

          @htilburgs yes. I was using mode 9 in the old version. When I looked it up I thought that’s what corresponded. Im on Pi OS 11 and Wayland is for 12 according to the read me

          G 1 Reply Last reply Nov 7, 2024, 2:16 PM Reply Quote 0
          • G Offline
            gonzonia @gonzonia
            last edited by Nov 7, 2024, 2:16 PM

            I think I had the GPIO correct originally. Went back to that and it’s working.

            H 1 Reply Last reply Nov 7, 2024, 4:03 PM Reply Quote 0
            • H Offline
              htilburgs @gonzonia
              last edited by Nov 7, 2024, 4:03 PM

              @gonzonia
              Ok 👍 succes.

              (still trying to learn JS, but not afraid to ask) ☺

              1 Reply Last reply Reply Quote 0
              • G Offline
                gonzonia
                last edited by Dec 6, 2024, 4:04 PM

                Okay, sorry to revive this. I saw there was an update available so I went to update.

                I did a git pull and got this

                hint: Pulling without specifying how to reconcile divergent branches is
                hint: discouraged. You can squelch this message by running one of the following
                hint: commands sometime before your next pull:
                hint: 
                hint:   git config pull.rebase false  # merge (the default strategy)
                hint:   git config pull.rebase true   # rebase
                hint:   git config pull.ff only       # fast-forward only
                hint: 
                hint: You can replace "git config" with "git config --global" to set a default
                hint: preference for all repositories. You can also pass --rebase, --no-rebase,
                hint: or --ff-only on the command line to override the configured default per
                hint: invocation.
                From https://github.com/bugsounet/MMM-Pir
                   3a5bcdb..1fee537  master     -> origin/master
                   fc5b3f6..658a322  dev        -> origin/dev
                Updating 3a5bcdb..1fee537
                error: Your local changes to the following files would be overwritten by merge:
                	MMM-Pir.js
                	components/cronJob.js
                	components/governorLib.js
                	components/motion.js
                	components/motionLib.js
                	components/pirLib.js
                	components/screenDisplayer.js
                	components/screenLib.js
                	components/screenTouch.js
                	node_helper.js
                Please commit your changes or stash them before you merge.
                Aborting
                
                

                The thing is, I know I have made NO CHANGES to any of those files.
                Should I run a pull.rebase? Would that fix it ?

                G 1 Reply Last reply Dec 6, 2024, 4:16 PM Reply Quote 0
                • G Offline
                  gonzonia @gonzonia
                  last edited by Dec 6, 2024, 4:16 PM

                  I just did a reinstall for now, but I would like to know what I should do to fix this in the future

                  S 1 Reply Last reply Dec 6, 2024, 4:41 PM Reply Quote 0
                  • S Offline
                    sdetweil @gonzonia
                    last edited by Dec 6, 2024, 4:41 PM

                    @gonzonia the question is what did you do before

                    Sounds like you might have downloaded the zip over the files in the working directory, or copied files from somewhere else

                    In general, the force way to get back to the repo level
                    is

                    git reset --hard HEAD
                    

                    This will restore all the files to the last commit level.
                    IF you made changes for some reason , they will be wiped out, no warnings.

                    git status before git pull will tell you if there are any changed files,
                    and git diff will show you the changes

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B G 2 Replies Last reply Dec 6, 2024, 4:52 PM Reply Quote 0
                    • B Offline
                      bugsounet Banned @sdetweil
                      last edited by bugsounet Dec 6, 2024, 4:52 PM Dec 6, 2024, 4:52 PM

                      Readme says:

                      fd794daa-9f4a-4281-9272-f2a6b4c670da-image.png

                      see there

                      G S 2 Replies Last reply Dec 6, 2024, 4:55 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      • 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