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.

    MMM-FRITZ-Box-Callmonitor

    Scheduled Pinned Locked Moved Troubleshooting
    99 Posts 27 Posters 106.2k Views 26 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.
    • G Offline
      Ghost2000 @Sandy2503
      last edited by Ghost2000

      @Sandy2503
      My screen is black after installing it.

      In the browser he shows me this error.

      
      Uncaught SyntaxError: Unexpected token / in JSON at position 79
      at JSON.parse ()
      at XMLHttpRequest.xhr.onreadystatechange (translator.js:22)
      (index):1 Unchecked runtime.lastError: The message port closed before a response was received.
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Ghost2000
        last edited by sdetweil

        @Ghost2000 looking at it again that is the translation error I sent you
        https://github.com/paviro/MMM-FRITZ-Box-Callmonitor/blob/master/translations/de.json

        edit out the comment line, not allowed in json file

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • G Offline
          Ghost2000
          last edited by Ghost2000

          you are the best , i have it
          changed don´t work :(

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

            @Ghost2000 need more info than “don’t work”

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • G Offline
              Ghost2000
              last edited by Ghost2000

              
              0 info it worked if it ends with ok
              1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
              2 info using npm@6.14.6
              3 info using node@v10.22.1
              4 verbose run-script [ 'prestart', 'start', 'poststart' ]
              5 info lifecycle magicmirror@2.13.0~prestart: magicmirror@2.13.0
              6 info lifecycle magicmirror@2.13.0~start: magicmirror@2.13.0
              7 verbose lifecycle magicmirror@2.13.0~start: unsafe-perm in lifecycle true
              8 verbose lifecycle magicmirror@2.13.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi$
              9 verbose lifecycle magicmirror@2.13.0~start: CWD: /home/pi/MagicMirror
              10 silly lifecycle magicmirror@2.13.0~start: Args: [ '-c',
              10 silly lifecycle   'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js' ]
              11 silly lifecycle magicmirror@2.13.0~start: Returned: code: 1  signal: null
              12 info lifecycle magicmirror@2.13.0~start: Failed to exec start script
              13 verbose stack Error: magicmirror@2.13.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              13 verbose stack Exit status 1
              13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
              13 verbose stack     at EventEmitter.emit (events.js:198:13)
              13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
              13 verbose stack     at ChildProcess.emit (events.js:198:13)
              13 verbose stack     at maybeClose (internal/child_process.js:982:16)
              13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
              14 verbose pkgid magicmirror@2.13.0
              15 verbose cwd /home/pi/MagicMirror
              16 verbose Linux 5.4.51-v7l+
              17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
              18 verbose node v10.22.1
              19 verbose npm  v6.14.6
              20 error code ELIFECYCLE
              21 error errno 1
              22 error magicmirror@2.13.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              22 error Exit status 1
              23 error Failed at the magicmirror@2.13.0 start script.
              23 error This is probably not a problem with npm. There is likely additional logging output above.
              24 verbose exit [ 1, true ]
              
              

              Browser Log:

              (index):5 Uncaught SyntaxError: Unexpected token / in JSON at position 79
                  at JSON.parse (<anonymous>)
                  at XMLHttpRequest.xhr.onreadystatechange (translator.js:22)
              

              Dev Log

               npm start dev
              
              > magicmirror@2.13.0 start /home/pi/MagicMirror
              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev"
              
              [2020-10-14 14:23:35.170] [LOG]    Starting MagicMirror: v2.13.0
              [2020-10-14 14:23:35.178] [LOG]    Loading config ...
              [2020-10-14 14:23:35.184] [LOG]    Loading module helpers ...
              [2020-10-14 14:23:35.187] [LOG]    No helper found for module: alert.
              [2020-10-14 14:23:35.231] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:35.232] [LOG]    Module helper loaded: updatenotification
              [2020-10-14 14:23:35.234] [LOG]    No helper found for module: MMM-Globe.
              [2020-10-14 14:23:35.235] [LOG]    No helper found for module: MMM-Carousel.
              [2020-10-14 14:23:35.236] [LOG]    No helper found for module: clock.
              [2020-10-14 14:23:35.422] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:35.422] [LOG]    Module helper loaded: MMM-FRITZ-Box-Callmonitor
              [2020-10-14 14:23:36.306] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:36.306] [LOG]    Module helper loaded: MMM-awesome-alexa
              [2020-10-14 14:23:36.307] [LOG]    No helper found for module: iFrame.
              [2020-10-14 14:23:36.664] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:36.665] [LOG]    Module helper loaded: MMM-NowPlayingOnSpotify
              [2020-10-14 14:23:37.016] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:37.017] [LOG]    Module helper loaded: calendar
              [2020-10-14 14:23:37.018] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:37.019] [LOG]    Module helper loaded: MMM-OnScreenMenu
              [2020-10-14 14:23:37.019] [LOG]    No helper found for module: compliments.
              [2020-10-14 14:23:37.158] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:37.159] [LOG]    Module helper loaded: internet-monitor
              [2020-10-14 14:23:37.440] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:37.441] [LOG]    Module helper loaded: MMM-DWD-WarnWeather
              [2020-10-14 14:23:37.442] [LOG]    No helper found for module: MMM-windy.
              [2020-10-14 14:23:37.442] [LOG]    No helper found for module: currentweather.
              [2020-10-14 14:23:37.571] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:37.571] [LOG]    Module helper loaded: MMM-Remote-Control
              [2020-10-14 14:23:37.572] [LOG]    No helper found for module: weatherforecast.
              [2020-10-14 14:23:37.573] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:37.574] [LOG]    Module helper loaded: MMM-SmartTouch
              [2020-10-14 14:23:37.594] [LOG]    Initializing new module helper ...
              [2020-10-14 14:23:37.594] [LOG]    Module helper loaded: newsfeed
              [2020-10-14 14:23:37.595] [LOG]    All module helpers loaded.
              [2020-10-14 14:23:37.692] [LOG]    Starting server on port 8080 ...
              [2020-10-14 14:23:37.694] [INFO]   You're using a full whitelist configuration to allow for all IPs
              [2020-10-14 14:23:37.700] [LOG]    Server started ...
              [2020-10-14 14:23:37.701] [LOG]    Connecting socket for: updatenotification
              [2020-10-14 14:23:37.702] [LOG]    Connecting socket for: MMM-FRITZ-Box-Callmonitor
              [2020-10-14 14:23:37.703] [LOG]    Starting module: MMM-FRITZ-Box-Callmonitor
              [2020-10-14 14:23:37.704] [LOG]    Connecting socket for: MMM-awesome-alexa
              [2020-10-14 14:23:37.705] [LOG]    Connecting socket for: MMM-NowPlayingOnSpotify
              [2020-10-14 14:23:37.706] [LOG]    Connecting socket for: calendar
              [2020-10-14 14:23:37.706] [LOG]    Starting node helper for: calendar
              [2020-10-14 14:23:37.707] [LOG]    Connecting socket for: MMM-OnScreenMenu
              [2020-10-14 14:23:37.708] [LOG]    Connecting socket for: internet-monitor
              [2020-10-14 14:23:37.709] [LOG]    internet-monitor helper started ...
              [2020-10-14 14:23:37.709] [LOG]    Connecting socket for: MMM-DWD-WarnWeather
              [2020-10-14 14:23:37.710] [LOG]    MMM-DWD-WarnWeather helper started...
              [2020-10-14 14:23:37.710] [LOG]    Connecting socket for: MMM-Remote-Control
              [2020-10-14 14:23:37.711] [LOG]    Starting node helper for: MMM-Remote-Control
              [2020-10-14 14:23:37.717] [LOG]    Connecting socket for: MMM-SmartTouch
              [2020-10-14 14:23:37.718] [LOG]    Connecting socket for: newsfeed
              [2020-10-14 14:23:37.718] [LOG]    Starting node helper for: newsfeed
              [2020-10-14 14:23:37.719] [LOG]    Sockets connected & modules started ...
              [2020-10-14 14:23:37.726] [ERROR]  Whoops! There was an uncaught exception...
              [2020-10-14 14:23:37.727] [ERROR]  Error: listen EADDRINUSE: address already in use 0.0.0.0:8080
                  at Server.setupListenHandle [as _listen2] (net.js:1226:14)
                  at listenInCluster (net.js:1274:12)
                  at doListen (net.js:1413:7)
                  at processTicksAndRejections (internal/process/task_queues.js:84:9) {
                code: 'EADDRINUSE',
                errno: 'EADDRINUSE',
                syscall: 'listen',
                address: '0.0.0.0',
                port: 8080
              }
              [2020-10-14 14:23:37.732] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              [2020-10-14 14:23:37.733] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              [2020-10-14 14:23:37.808] [LOG]    Launching application.
              
              
              S 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @Ghost2000
                last edited by

                @Ghost2000 there are two files that need to be fixed. de and en.json
                you must remove the comment line.

                put the json file contents in one of the online validators to test your edit

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @Ghost2000 if you use pm2 u have to stop that instance before using npm start

                  pm2 stop all

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Ghost2000
                    last edited by

                    Where can I find this file?

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

                      @Ghost2000 come on. in the module folder, there is a folder called translations

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        Ghost2000
                        last edited by Ghost2000

                        Great thanksworks. @sdetweil
                        De, json has to look like this for everyone

                        {
                          "title": "Eingehender Anruf",
                          "noCall": "Keine kürzlichen Anrufe.",  
                        
                          
                          "calllist_parse_error": "Anrufliste unlesbar.",
                          "phonebook_parse_error": "Telefonbuch unlesbar.",
                          "vcf_parse_error": "vCard unlesbar.",
                          "login_error": "Logindaten falsch?",
                          "network_error": "FRITZ!Box nicht erreichbar.",
                          "unknown_error": "Unbekannter Fehler."
                        }
                        
                        

                        en.json

                        {
                          "title": "Incoming Call",
                          "noCall": "No recent calls.",
                        
                          
                          "calllist_parse_error": "Can't parse calllist.",
                          "phonebook_parse_error": "Can't parse phonebook.",
                          "vcf_parse_error": "Can't parse vCard.",
                          "login_error": "Login data wrong?",
                          "network_error": "Could not reach FRITZ!Box.",
                          "unknown_error": "Unknown error."
                        }
                        
                        
                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 10
                        • 7 / 10
                        • 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