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 117.6k 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
      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 Do not disturb
        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 Do not disturb
          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 Do not disturb
              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
                • S Do not disturb
                  sdetweil @Ghost2000
                  last edited by sdetweil

                  @Ghost2000 in 2.14 it will not fail like this, but the translation file will not be loaded. an error message in the dev window will indicate what file failed.

                  fix also available in the develop branch

                  this issue is pinned to the top of the troubleshooting section currently

                  https://forum.magicmirror.builders/category/10/troubleshooting

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    Foxy25
                    last edited by Foxy25

                    Hi,
                    First: everything works well, but i have some question about the devicefilter:

                    What do I have to register exactly there?

                    The Telephonnumber? The name of the “device”? The “intern number”?

                    I know that this works like:
                    the “devicefilter entry” filters, the incoming calls for this phonenumber, out.

                    In my case we have 3 DECT-Phones and i want display only one from this devices on the MM-Screen when the call come in.

                    Thank you all for your Support.

                    Greetngs from Germany
                    Foxy

                    L 1 Reply Last reply Reply Quote 0
                    • L Offline
                      Laurids @Foxy25
                      last edited by

                      @foxy25 Hi, after a new installation of MagicMirror I have problems with the callmonitor. The MM shows the number of incoming calls, but the list of missing calls is empty. When I set

                      showContactsStatus: true
                      

                      ,then I only get two rotating arrows behind “no calls”, instead of the number of entrys of my phonebook.
                      I tried all the advices in this thread, but nothing works. In another thread I found, that it would be helpful to uninstall Python and install version 0.5.0. Can someone explain, how to do this?
                      Thanks and best regards

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        ShadowMG Project Sponsor
                        last edited by ShadowMG

                        Hi, tried endlessly on a new installation to get calls showing again.
                        Current call works
                        I get the error of:

                        pi@WestMainServ100:~/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor $ python fritz_access.py -p xxxxxx -u xxx -i 192.168.62.1
                        Traceback (most recent call last):
                          File "fritz_access.py", line 1, in <module>
                            import argparse, os, fritzconnection, urllib2, sys, json
                        ImportError: No module named fritzconnection
                        

                        Changed the files node_helper.js, package.json and fritz_access.py.

                        This is my config.js part:

                                {
                                        //disabled: true,
                                        module: 'MMM-FRITZ-Box-Callmonitor',
                                        position: 'top_left',   // This can be any of the regions. Best results in left or right regions.
                                        header: "Letzte Anrufe", // This is optional
                                        config: {
                                                user: "",
                                                password: "xxxxxx",
                                                deviceFilter: ["TelefoneWestFritzbox"],
                                                vCard: "/home/pi/MagicMirror/contacts.vcf",
                                                maximumCallDistance: 3000,
                                                maximumCalls: 5,
                                                fritzIP: "192.168.62.1",
                                                // See 'Configuration options' for more information.
                                        }
                                },
                        

                        And the MMM-FRITZ-Box-Callmonitor.js:

                                // Default module config.
                                defaults: {
                                        numberFontSize: 30,
                                        vCard: true,
                                        fritzIP: "192.168.62.1",
                                        fritzPort: 1012,
                                        minimumCallLength: 0,
                                        maximumCallDistance: 60,
                                        maximumCalls: 5,
                                        fade: true,
                                        debug: false,
                                        fadePoint: 0.25,
                                        username: "",
                                        password: "xxxxx",
                                        reloadContactsInterval: 30, // 30 minutes, set to 0 to disable
                                        deviceFilter: ["TelefoneWestFritzbox"], // [] means no filtering
                                        showContactsStatus: true
                                },
                        

                        I installed different versions of fritzconnect. No clue what to do next…

                        Thank you, Matthias

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          requiemmg @ShadowMG
                          last edited by

                          @shadowmg
                          Just did a fresh install today. Installed MMM-FRRITZ-Box-Callmonitor, did npm install and installed fritzconnection.
                          Also installed fritzconnection.

                          pi@smartmirror:~/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor $ fritzconnection
                          
                          fritzconnection v1.8.0
                          FRITZ!Box 6591 Cable at http://169.254.1.1
                          FRITZ!OS: 7.29
                          

                          But when I use

                          python fritz_access.py -u user -p pass -i 192.168.0.1
                          

                          i get

                          Traceback (most recent call last):
                            File "fritz_access.py", line 1, in <module>
                              import argparse, os, fritzconnection, urllib2, sys, json
                          ImportError: No module named fritzconnection
                          

                          Any idea on how to fix this? @paviro @sdetweil?

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @requiemmg
                            last edited by

                            @requiemmg u need the python library for fritzconnection, whatever that is. separate install

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            R 1 Reply Last reply Reply Quote 0
                            • R Offline
                              requiemmg @sdetweil
                              last edited by

                              @sdetweil Thanks, yes, this has been installed with sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev && sudo pip install fritzconnection as stated on the plugins’ page (https://github.com/paviro/MMM-FRITZ-Box-Callmonitor) and https://pypi.org/project/fritzconnection/

                              And as stated above: When I call fritzconnection from shell, it works. But when I call the script used by the plugin, it fails on the import of the library and I have no idea why.

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @requiemmg
                                last edited by sdetweil

                                @requiemmg said in MMM-FRITZ-Box-Callmonitor:

                                But when I call the script used by the plugin

                                typically this fails cause the python ‘virtual environment’ is not setup correctly

                                https://www.tutorialspoint.com/python/python_environment.htm

                                usually that means the shell started from code (not UI) startup script (usually ~/.bashrc, for bash ) doesn’t set the PATH correctly

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  requiemmg @sdetweil
                                  last edited by

                                  @sdetweil Tried to fix this with
                                  export PATH=“$PATH:/usr/local/bin/fritzconnection”

                                  and
                                  export PATH=“$PATH:/usr/local/bin/python”

                                  to no avail…error stays the same

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @requiemmg
                                    last edited by

                                    @requiemmg where?

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      requiemmg
                                      last edited by

                                      from where I executed this command? from the modules’ directory.

                                      The module is working if I use the .vcf method. But not if I want to log in via the module to fetch the latest calls.

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @requiemmg
                                        last edited by

                                        @requiemmg said in MMM-FRITZ-Box-Callmonitor:

                                        But not if I want to log in via the module

                                        i don’t know what that means, but I assume that the module will exec or spawn the script somehow

                                        and THAT is where the path needs to be set , at the time of exec/spawn

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        R 1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          requiemmg @sdetweil
                                          last edited by

                                          @sdetweil When I put it in the script in the first line, it will thow an invalid syntax error. Sorry, I guess I have to stick with the current functionality, I have no programming skills.
                                          Thanks for your help.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @requiemmg
                                            last edited by sdetweil

                                            @requiemmg no… it would be in the module code that launches the script

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            R 1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 5 / 5
                                            • 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