Read the statement by Michael Teeuw here.
MMM-SoccerLiveScore pleas help
-
I forgot! the detected error is as follows:
@Manu85 from the log
looks like MMM-SoccerLiveScore/ had a fatal error when no data was presented
[ERROR] [31m[1m2020-04-07T09:00:27 SyntaxError: Unexpected token u in JSON at position 0[22m[39m
0|MagicMir | [31m[1m at JSON.parse ()[22m[39m
0|MagicMir | [31m[1m at Request._callback (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js:192:29)
and that error killed MM
0|MagicMir | [2020-04-07 09:00:27.567] [LOG] 2020-04-07T09:00:27 Whoops! There was an uncaught exception… (/home/pi/MagicMirror/js/app.js:39 process.)
0|MagicMir | [2020-04-07 09:00:27.592] [LOG] 2020-04-07T09:00:27 MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? (/home/pi/MagicMirror/js/app.js:41 process.) -
@Manu85 i posted this in your other topic
the module author posted in 2018 that he no longer had time to maintain this module…
I looked at the code and all the data operations do not check for errors. so there is quite a bit of work to fix the module
-
@sdetweil ah sh*t, it was really really good this module
-
@Manu85 yes …That was a nice Module
-
https://github.com/lavolp3/MMM-soccer
I think this is also a good module.
-
@Stoffbeuteluwe thank you i will try it, thank you again
-
@Manu85 i think i have fixed the module so it doesn’t crash…
do this
cd ~/MagicMirror/modules git clone https://github.com/sdetweil/MMM-SoccerLiveScore NewSoccerLive cd MMM-SoccerLiveScore cp ../NewSoccerLive/*.js .then restart your mirror app…
pm2 restart 0
if using pm2this will replace the two files with my version… no other changes required…
if there is a request error, we wait 5 minutes and try again -
@sdetweil I just did the manipulations that you advised and the module restarted, I keep you informed of the stability, but well done for your responsiveness
-
@sdetweil after a few hours the module becomes unstable.
-
-
@sdetweil like this?
{
disabled:false,
module: ‘MMM-SoccerLiveScore’,
position: ‘top_right’,
header: ‘Scores en direct’,
config: {
leagues: [34, 1, 8],
showNames: true,
showLogos: true,
debug:true,
displayTime: 60 * 1000,
showTables: true
}
}, -
@Manu85 yes
-
@sdetweil hello, this morning my mirror is frozen and the soccer module is not present, I send you the somefile file by email, thank you
-
@Manu85 MMM-SoccerLive is still running, and is still running the old node_helper.js
0|MagicMir | [2020-04-08 07:23:29.709] [ERROR] [31m[1m2020-04-08T07:23:29 SyntaxError: Unexpected token u in JSON at position 0[22m[39m
0|MagicMir | [31m[1m at JSON.parse ()[22m[39m
0|MagicMir | [31m[1m at Request._callback (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js:146:29)[22m[39m -
@sdetweil What can I do?
-
@Manu85 the module is still active in the config.js
-
this is how it is in the config.js
{
disabled:false,
module: ‘MMM-SoccerLiveScore’,
position: ‘top_right’,
header: ‘Scores en direct’,
config: {
leagues: [34, 1, 8],
showNames: true,
showLogos: true,
debug:true,
displayTime: 60 * 1000,
showTables: true
}
}, -
-
ok I did “disabled: true,” and I restarted the MM, the module no longer appears
-
this is how it is in the config.js
{
disabled:true,
module: ‘MMM-SoccerLiveScore’,
position: ‘top_right’,
header: ‘Scores en direct’,
config: {
leagues: [34, 1, 8],
showNames: true,
showLogos: true,
debug:true,
displayTime: 60 * 1000,
showTables: true
}
},
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login