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.

    problem with module MMM-Pollen-FR on github

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 220 Views 2 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.
    • B Offline
      benoit73
      last edited by sdetweil

      helo,
      i have a problem mith this module.
      I explain, i copy and paste the webcode just below in config.js file but magimirror indicate an error with this script.
      anyone have an idea ?

      modules: [
        {
          module: "MMM-Pollen-FR",
          position: "top_left",
          header: "Météo Pollen France",
          config: {
              updateInterval: 3 * 60 * 60 * 1000, // every 3 hours
              region_code: "59",
              minLevel: 0
          }
        },
      ]
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @benoit73
        last edited by sdetweil

        @benoit73 please alwya use the code block for config or log output
        this preserves formatting (indentation and quotes), and minimizes long outputs to scrollable sections, which allows us to see better your questions away from all the other data

        in the forum message editor,
        paste the text you want to share
        blank line above and below
        select the text you just pasted
        then hit the </> button above the editor
        (you can have multiple code blocks in a message)
        can you please run the config checker and output its error messages

        cd ~/MagicMirror
        npm run config:check 
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          benoit73 @sdetweil
          last edited by

          @sdetweil

          pi@raspberrypi:~/MagicMirror $ npm run config:check
          
          > magicmirror@2.27.0 config:check
          > node js/check_config.js
          
          [2024-06-19 15:54:24.553] [INFO]  Checking file...  /home/pi/MagicMirror/config/config.js
          [2024-06-19 15:54:24.602] [ERROR] Your configuration file contains syntax errors :(
          [2024-06-19 15:54:24.603] [ERROR] Line 143 column 8: Parsing error: Unexpected token :
          pi@raspberrypi:~/MagicMirror $ pi@raspberrypi:~/MagicMirror $ npm run config:check
          
          

          it’s the line of begining of module MMM-Pollen

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

            @benoit73 said in problem with module MMM-Pollen-FR on github:

            [2024-06-19 15:54:24.602] [ERROR] Your configuration file contains syntax errors :(
            [2024-06-19 15:54:24.603] [ERROR] Line 143 column 8: Parsing error: Unexpected token :

            can you show lines 130-150
            please xxx out any sensitive info

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              benoit73 @sdetweil
              last edited by

              @sdetweil said in problem with module MMM-Pollen-FR on github:

              can you show lines 130-150
              please xxx out any sensitive info

                  showLogos: true,
                  displayTime: 60 * 1000,
                  showStandings: true,
                  showTables: true,
                  showScorers: false,
                  scrollVertical: true,
                  language: 'en', // supported values are en, de, it
                }
              },
                              {
                                      module: "updatenotification",
                                      position: "top_bar"
                              },
              modules: [
                {
                  module: "MMM-Pollen-FR",
                  position: "top_left",
                  header: "Météo Pollen France",
                  config: {
                      updateInterval: 3 * 60 * 60 * 1000, // every 3 hours
                      region_code: "59",
                      minLevel: 0
                  }
                },
              ]
              

              it’s beginin line 130

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

                @benoit73 said in problem with module MMM-Pollen-FR on github:

                            },
                

                modules: [
                {

                yes, the author module example shows that it goes inside the modules:[ list

                modules: [
                  {
                    module: "MMM-Pollen-FR",
                    position: "top_left",
                    header: "Météo Pollen France",
                    config: {
                        updateInterval: 3 * 60 * 60 * 1000, // every 3 hours
                        region_code: "59",
                        minLevel: 0
                    }
                  },
                ]
                

                but you already have that…
                you only need the module part

                {
                   module: 
                   position:
                   config:{  
                     .
                     .
                     .
                   }
                }
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  benoit73 @sdetweil
                  last edited by

                  @sdetweil

                  thank you it’s ok

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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