Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved Trying to install Pir and Screen

    EXT-Pir
    2
    9
    71
    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.
    • N
      N6NG last edited by

      I installed EXT-Pir and EXT-Screen
      When I try to run npm run config:check I get this error:

      npm run config:check

      magicmirror@2.19.0 config:check
      node js/check_config.js

      [10.06.2022 11:36.39.092] [INFO] Checking file… /home/pi/MagicMirror/config/config.js
      [10.06.2022 11:36.39.358] [ERROR] Your configuration file contains syntax errors 😞
      [10.06.2022 11:36.39.363] [ERROR] Line 325 column 11: Parsing error: Unexpected token ‘EXT-Screen’

      If I take out the EXT-Screen and run config:check I get the same thing for module: ‘EXT-Pir’

      Any ideas?
      Thanks
      Dennis

      Here is my config.
      {
      module: ‘EXT-Screen’,
      position: ‘top_left’,
      config: {
      delay: 2 * 60 * 1000
      }
      },
      {
      module: ‘EXT-Pir’,
      config: {
      position: ‘bottom_left’,
      debug: true,
      gpio: 22,
      reverseValue: false
      }
      },

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi, maybe this can help:

        {
          module: "EXT-Screen",
          position: "top_left",
          config: {
            delay: 2 * 60 * 1000
          }
        },
        {
          module: "EXT-Pir",
          config: {
            debug: true,
            gpio: 22,
            reverseValue: false
          }
        },
        
        1 Reply Last reply Reply Quote 0
        • N
          N6NG last edited by N6NG

          My config now:
          {
          module: “EXT-Screen”,
          286 position: ‘top_left’,
          config: {
          delay: 2 * 60 * 1000
          }
          },

          I added the 286 line number before postting

          npm run config:check results

          [11.06.2022 12:26.41.501] [INFO] Checking file… /home/pi/MagicMirror/config/config.js
          [11.06.2022 12:26.41.760] [ERROR] Your configuration file contains syntax errors 😞
          [11.06.2022 12:26.41.765] [ERROR] Line 286 column 12: Parsing error: Unexpected token :

          Dennis

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by bugsounet

            position: "top_left", is not equal to position: ‘top_left’,

            " or ' is an js symbol
            ‘ is NOT an js symbol

            so you have an error on each time you will use ‘ symbol

            Note:

            • in my last lost … I give you and correct the config
            • just copy and past it 🙂
            1 Reply Last reply Reply Quote 0
            • N
              N6NG last edited by

              My newest effort and the results

               {
                          module: "EXT-Screen",
              

              286 position: “top_left”,
              config: {
              delay: 2 * 60 * 1000
              }
              },

              [11.06.2022 12:54.24.865] [INFO] Checking file… /home/pi/MagicMirror/config/config.js
              [11.06.2022 12:54.25.150] [ERROR] Your configuration file contains syntax errors 😞
              [11.06.2022 12:54.25.154] [ERROR] Line 286 column 12: Parsing error: Unexpected token :

              Dennis

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by bugsounet

                same case … “ is not the same like "

                in your case : position: “top_left”, is not the same as position: "top_left",

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

                  The cut and paste version

                  {
                  module: “EXT-Screen”,
                  276 position: “top_left”,
                  config: {
                  delay: 2 * 60 * 1000
                  }
                  },
                  {
                  module: “EXT-Pir”,
                  config: {
                  debug: true,
                  gpio: 22,
                  reverseValue: false
                  }
                  };
                  npm results

                  [11.06.2022 13:13.13.266] [INFO] Checking file… /home/pi/MagicMirror/config/config.js
                  [11.06.2022 13:13.13.540] [ERROR] Your configuration file contains syntax errors 😞
                  [11.06.2022 13:13.13.545] [ERROR] Line 276 column 11: Parsing error: Unexpected token :

                  Dennis

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

                    I can’t do nothing for your encoding chars…

                    " or ' is an js char
                    “ or ‘ is NOT an js char [your case]

                    when you will understand this … you will solve your issue
                    try to edit it directly with the pi desktop with geany app

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

                      Ok… thank youi… I just paste what you had sent… but I will look into geany… I hadn’t heard about that… Thanks
                      Dennis

                      1 Reply Last reply Reply Quote 1
                      • Topic has been marked as solved  bugsounet bugsounet 
                      • Referenced by  bugsounet bugsounet 
                      • First post
                        Last post
                      Powered by NodeBB | @bugsounet ©2022