MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

MMM-SoccerLiveScore pleas help

  • hello, I installed this module and it makes my MM crash, after having been
    First of all I want to apologize because I use a translator, I live in France and it’s easier for me
    helped on the forum (thanks to @detweiler) it would seem that there is an error in the module, is it possible that the author fixes this error , thank you in advance for the work done by the authors who provide these little wonders
    the author of the module, a great respect to him:

  • 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] 2020-04-07T09:00:27 SyntaxError: Unexpected token u in JSON at position 0
    0|MagicMir |  at JSON.parse ()
    0|MagicMir |  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

  • Project Sponsor

    @Manu85 yes …That was a nice Module

  • Project Sponsor

    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 NewSoccerLive
    cd MMM-SoccerLiveScore
    cp ../NewSoccerLive/*.js .

    then restart your mirror app…
    pm2 restart 0
    if using pm2

    this 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.

Log in to reply