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-NewPIR v3

    Scheduled Pinned Locked Moved System
    67 Posts 18 Posters 26.7k 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.
    • ? Offline
      A Former User
      last edited by A Former User

      configuration seems good

      do you have any error on start ?

      If you use pm2 -> stop the process and start it manually with npm start command

      give me log or error ?

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        DeathForce @Guest
        last edited by

        @Bugsounet

        Screenshot 2020-08-26 18.46.47.png

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          some library missing … do you use npm install command for installing ?

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            DeathForce @Guest
            last edited by

            @Bugsounet

            Yes I have stopped MagicMirror and installed the module.

            pi@PiSmartMirror:~/MagicMirror/modules/MMM-NewPIR $ npm install
            
            > MMM-NewPIR@3.0.1 install /home/pi/MagicMirror/modules/MMM-NewPIR
            > scripts/installer.sh
            
            npm notice created a lockfile as package-lock.json. You should commit this file.
            audited 176 packages in 5.506s
            
            4 packages are looking for funding
              run `npm fund` for details
            
            found 0 vulnerabilities
            
            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by A Former User

              can you try this:

              bugs@debian:~/MagicMirror/modules/MMM-NewPIR$ rm -rf node_modules/
              bugs@debian:~/MagicMirror/modules/MMM-NewPIR$ rm package-lock.json 
              bugs@debian:~/MagicMirror/modules/MMM-NewPIR$ npm install
              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
              
               epoll@4.0.0 install /home/bugs/MagicMirror/modules/MMM-NewPIR/node_modules/epoll
               node-gyp rebuild
              
              make : on entre dans le répertoire « /home/bugs/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build »
                CXX(target) Release/obj.target/epoll/src/epoll.o
                SOLINK_MODULE(target) Release/obj.target/epoll.node
                COPY Release/epoll.node
              make : on quitte le répertoire « /home/bugs/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build »
              
               @bugsounet/pir@1.0.4 postinstall /home/bugs/MagicMirror/modules/MMM-NewPIR/node_modules/@bugsounet/pir
              > electron-rebuild
              
              ✔ Rebuild Complete
              
               MMM-NewPIR@3.0.1 install /home/bugs/MagicMirror/modules/MMM-NewPIR
               scripts/installer.sh
              
              npm notice created a lockfile as package-lock.json. You should commit this file.
              added 176 packages from 127 contributors and audited 176 packages in 26.073s
              
              4 packages are looking for funding
                run `npm fund` for details
              
              found 0 vulnerabilities
              
              bugs@debian:~/MagicMirror/modules/MMM-NewPIR$ cd ~/MagicMirror
              bugs@debian:~/MagicMirror$ npm start
              
              D 1 Reply Last reply Reply Quote 0
              • D Offline
                DeathForce @Guest
                last edited by

                @Bugsounet

                That’s it. Seems to work now… Thank You :)

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  perfect so :)

                  when it want to works, it's magical

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bdream
                    last edited by bdream

                    Hi @Bugsounet just going to install your module with deep hope in it’s functionality.
                    I’m going to use it on an Pi0 and get (now two times) an Network error: Software caused connection aborton Putty while npm install

                    Here all I get in console:

                    pi@RasPiZeroW:~/MagicMirror/modules/MMM-NewPIR $ npm install
                    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                    
                    > epoll@4.0.0 install /home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll
                    > node-gyp rebuild
                    
                    make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build“ wird betreten
                      CXX(target) Release/obj.target/epoll/src/epoll.o
                    
                    

                    Any idea, or is it caused on the hardware of RPi0?

                    I tried to start again and deleted all MMM-NewPIR stuff and rebootet RPi.
                    New attempt git clone and npm install

                    Getting this in coonsole:

                    pi@RasPiZeroW:~/MagicMirror/modules/MMM-NewPIR $ npm install
                    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                    
                    > epoll@4.0.0 install /home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll
                    > node-gyp rebuild
                    
                    make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build“ wird betreten
                      CXX(target) Release/obj.target/epoll/src/epoll.o
                      SOLINK_MODULE(target) Release/obj.target/epoll.node
                      COPY Release/epoll.node
                    make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build“ wird verlassen
                    
                    > @bugsounet/pir@1.0.4 postinstall /home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/@bugsounet/pir
                    > electron-rebuild
                    
                    ⠸ Building module: epoll, Completed: 0
                    
                    

                    and status ⠸ Building module: epoll, Completed: 0 is not changing colpetition even it run and run.

                    So I assume it’s really related to RPi0 installation and electron. But that is to deep for my small knowledge selfsolving if possible anyway.

                    –
                    cheers, bdream

                    ? 1 Reply Last reply Reply Quote 0
                    • FoziF Offline
                      Fozi Project Sponsor
                      last edited by

                      Thanks for this new PIR module! I replaced last night the MMM-PIR-sensor module with yours and it works perfectly, also with my microwave sensor.
                      Especially the behaviour after the first start is now as expected, as the display is switches off after the countdown, without initializing the sensor first. With MMM-PIR-sensor the display would have stayed on after the first start until the sensor catches once a motion and the start the coutdown. I tweaked the node_helper.js to correct that, but after each module update I had to reapply that tweek. That belongs now to the past. Great job!:clapping_hands_light_skin_tone:

                      I have a feature request:
                      I would like to have two configuration options available to adjust the colours of “displayStyle”, as currently it is hardcoded in green:

                      • One option to adjust the colour of the remaining time (wich is currently green).
                      • Another option to adjust the colour of the past time (currently dark grey or white).

                      something like this:

                      [...]
                      displayStyleRemaining: 'e2e2e2', //RGB value of the remaining time
                      displayStylePast: '454545', //RGB value of the past time
                      [...]
                      

                      I’m using the “Bar” style on “bottom_bar” position, which shows a decent thin line over the hole width of the mirror, which slowly creeps down to the left. But it is hard to distinguish the remaining time (green) and the past time (white) of that bar. I would prefer to adjust the remaining time to white, and the past time to black, as an example.

                      What do you think?

                      Oh BTW: I might help other users, if you enhance a little bit the README on GitHub on how to make the display styles visible. It took me some trials until I found out to configure an empty string for the “text” option to make the other styles show up.

                      HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                      1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User @bdream
                        last edited by

                        @bdream :

                        > @bugsounet/pir@1.0.4 postinstall /home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/@bugsounet/pir
                        > electron-rebuild
                        
                        ⠸ Building module: epoll, Completed: 0
                        

                        it’s a very very long processing for a pi0 but needed …
                        I never try with it, i don’t know how time it can take (and if it’s works !)

                        @Fozi : thanks for you feedback !
                        NP v3 is result of a lot of works ;)
                        First it’s part of code from another module (Assistant2Display).
                        NP v3 is make for user who don’t want (don’t use or don’t know) to use GoogleAssistant/Assistant2Display
                        I port it to NP v3 with my own npm library (less code and sync all code for all my modules)
                        I have to code the new feature from Assistant2Display (Last Presence display) to NV v3

                        If you want you can do a Pull request do add your wanted feature ;)
                        if you want to do it, you can make it in dev branch (for temp code and developping) and not in master (only for releasing)
                        So Pull request is welcome :)

                        FoziF 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 5 / 7
                        • 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