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

Scheduled Pinned Locked Moved System
67 Posts 18 Posters 25.1k 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
    philmavedzenge @DJBOOB66
    last edited by Oct 6, 2021, 2:52 PM

    @djboob66 said in MMM-NewPIR v3:

    @philmavedzenge said in MMM-NewPIR v3:

    npm WARN notsup Unsupported engine for yargs@17.2.1: wanted: {“node”:“>=12”} (current: {“node”:“10.24.0”,“npm”:“6.13.6”})

    You need to update npm and node

    Thanks for the response. How do I do that? Which folder should I update it in?

    F 1 Reply Last reply Oct 6, 2021, 5:10 PM Reply Quote 0
    • F Offline
      Fozi Project Sponsor @philmavedzenge
      last edited by Fozi Oct 6, 2021, 5:14 PM Oct 6, 2021, 5:10 PM

      @philmavedzenge in your home directory execute following two commands:

      sudo npm  install -g n
      sudo n latest
      

      This installs the latest node version

      Edit: added sudo

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

      1 Reply Last reply Reply Quote 0
      • D Offline
        DJBOOB66
        last edited by Oct 6, 2021, 6:51 PM

        Ok you need to find a working node and npm for all module if you have Bugs Google Aisstant v3 then it is best to check the module first GA v3 needs,
        Node: v12.x.x upto v14.x.x
        npm: = v6.14.15 (some trouble with v7.x)
        I suggest trying.
        Do in this order.

        sudo npm cache clean -f
        sudo npm install -g n
        sudo n 14.0
        

        now check npm with npm -v
        If 6.14.15 do nothing more but over 7.x use below

        sudo npm install -g npm@6.14.15
        
        F P 2 Replies Last reply Oct 6, 2021, 7:54 PM Reply Quote 0
        • F Offline
          Fozi Project Sponsor @DJBOOB66
          last edited by Fozi Oct 6, 2021, 7:54 PM Oct 6, 2021, 7:54 PM

          @djboob66 you’re right…I forgot that there might be potential issues with the latest version. Thanks for the correction!

          @philmavedzenge : Generally I’d recommend to use @sdetweil update script when updating to a new MM version. (see here) As you already updated to 2.17.1, use this command with force at he end instead of apply

          
          bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
          
          

          Sam‘s script checks, if the correct node and npm versions are installed and updates them accorgingly if necessary.

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

          P 1 Reply Last reply Oct 6, 2021, 8:50 PM Reply Quote 0
          • P Offline
            philmavedzenge @DJBOOB66
            last edited by Oct 6, 2021, 8:48 PM

            @djboob66 said in MMM-NewPIR v3:

            sudo npm install -g npm@6.14.15

            thank you guys very much, this worked for me

            1 Reply Last reply Reply Quote 0
            • P Offline
              philmavedzenge @Fozi
              last edited by Oct 6, 2021, 8:50 PM

              @fozi i had used that script to update, i don’t know why it didn’t update the other components. Thanks a lot for your help

              S 1 Reply Last reply Oct 6, 2021, 9:06 PM Reply Quote 0
              • S Away
                sdetweil @philmavedzenge
                last edited by Oct 6, 2021, 9:06 PM

                @philmavedzenge it doesn’t upgrade mode/npm

                install checks, upgrade does not (usually didn’t need to)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                P 1 Reply Last reply Oct 10, 2021, 3:43 AM Reply Quote 0
                • P Offline
                  philmavedzenge @sdetweil
                  last edited by Oct 10, 2021, 3:43 AM

                  @sdetweil said in MMM-NewPIR v3:

                  @philmavedzenge it doesn’t upgrade mode/npm

                  install checks, upgrade does not (usually didn’t need to)

                  I see now. Thanks a lot for the help

                  1 Reply Last reply Reply Quote 0
                  • U Offline
                    uros76
                    last edited by uros76 Dec 15, 2021, 3:57 PM Dec 15, 2021, 3:48 PM

                    Hi. Does anyone know of a way to format “LastPresence” output? Default is a full date and time in one line however I would like to change the format of the output. Don’t see any config option to format it…

                    My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

                    C 1 Reply Last reply Dec 15, 2021, 11:06 PM Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @uros76
                      last edited by Dec 15, 2021, 11:06 PM

                      @uros76 said in MMM-NewPIR v3:

                      Hi. Does anyone know of a way to format “LastPresence” output? Default is a full date and time in one line however I would like to change the format of the output. Don’t see any config option to format it…

                      How would you like it formatted?

                      U 1 Reply Last reply Dec 16, 2021, 7:05 AM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 7 / 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