Read the statement by Michael Teeuw here.
problem with module MMM-Pollen-FR on github
-
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 } }, ]
-
@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 datain 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 messagescd ~/MagicMirror npm run config:check
-
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
-
@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 -
@sdetweil said in problem with module MMM-Pollen-FR on github:
can you show lines 130-150
please xxx out any sensitive infoshowLogos: 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
-
@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:{ . . . } }
-
thank you it’s ok