MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. gonzonia
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 132
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-Pir

      @sdetweil This is helpful, thank you. I guarantee I made no changes though. I think it’s just that it needs to use npm run update

      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

      @bugsounet and that’s what I did wrong! thank you!

      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

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

      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

      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 ?

      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

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

      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

      @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

      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

      @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
      				}
      			}
      		},
      
      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

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

      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

      @Peter So it’ll go off but the PIR doesn’t work to turn it back on? Mine is working. Try re-installing. Here’s the config I’m using.

        module: 'MMM-Pir',
      		  position: 'top_left',
      		  classes: 'SceneFamily SceneSam',
      		  config: {
      			debug: false,
      			delay: 2 * 60 * 1000,
      			mode: 9	,
      			displayCounter: false,
      			displayBar: false,
      			displayStyle: "Line",
      			displayLastPresence: false,
      			lastPresenceTimeFormat: "LL H:mm",
      			mode6_gpio: 20,
      			mode6_clearGpioValue: true,
      			xrandrForceRotation: "left",
      			wrandrForceRotation: "normal",
      			wrandrForceMode: "1920x1080",
      			touchMode: 3,
      			pir_gpio: 4,
      			pir_mode: 0,
      	  }
      
      
      posted in Troubleshooting
      G
      gonzonia
    • RE: MMM-Pir

      @sdetweil said in MMM-Pir:

      nvm install v20.9.0

      That did it!

      As always, THANK YOU!

      posted in Troubleshooting
      G
      gonzonia
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 13
    • 14
    • 4 / 14