Solved Trying to install Pir and Screen
-
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
DennisHere 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
}
}, -
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 } },
-
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
-
position: "top_left",
is not equal toposition: ‘top_left’,
"
or'
is an js symbol
‘
is NOT an js symbolso you have an error on each time you will use
‘
symbolNote:
- in my last lost … I give you and correct the config
- just copy and past it
-
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
-
same case …
“
is not the same like"
in your case :
position: “top_left”,
is not the same asposition: "top_left",
-
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
-
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 withgeany
app -
Ok… thank youi… I just paste what you had sent… but I will look into geany… I hadn’t heard about that… Thanks
Dennis -
bugsounet
-
bugsounet