MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    PIR and config.js

    Utilities
    3
    16
    523
    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.
    • N6NG
      N6NG @sdetweil last edited by

      @sdetweil Ok Sam… thanks I’ll give it a try and see how it does… will let you know…

      Dennis

      N6NG 1 Reply Last reply Reply Quote 0
      • N6NG
        N6NG @N6NG last edited by

        @N6NG When I put the
        exec (“/usr/bin/vcgencmd display_power 0”, null);
        in the config.js I get an error. When I run npm run config:check it says that line has an Unexpected token
        “/usr/bin/vcgencmd display_power 0”

        Dennis

        S 2 Replies Last reply Reply Quote 0
        • S
          sdetweil @N6NG last edited by

          @N6NG be careful copy/paste, the forum without code marker uses the slanted. single and double quotes. used by word processing apps

          JavaScript expects the upright versions

          Sam

          Create a working config
          How to add modules

          N6NG 1 Reply Last reply Reply Quote 0
          • N6NG
            N6NG @sdetweil last edited by

            @sdetweil I typed it in straight from the keyboard… No copy and paste at all… Still the still the same error…
            Dennis

            1 Reply Last reply Reply Quote 0
            • S
              sdetweil @N6NG last edited by

              @N6NG that doesn’t go on config.js, it goes in the node_helper.js to replace what it already does, if it’s different.

              Sam

              Create a working config
              How to add modules

              N6NG 1 Reply Last reply Reply Quote 0
              • N6NG
                N6NG @sdetweil last edited by

                @sdetweil Oh… ok… thanks… I’ll do that.
                Dennis

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy