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.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.
    • O Offline
      ostfilinchen @kwaeksler
      last edited by

      @kwaeksler if you start the mirror with pm2, what says the pm2 logs mm?

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        kwaeksler @ostfilinchen
        last edited by

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

        @kwaeksler if you start the mirror with pm2, what says the pm2 logs mm?

        in mm-error-0.log i searched for “callmonitor” and got this error:

        TypeError: path must be a string or Buffer
        at TypeError (native)
        at Object.fs.readFile (fs.js:303:11)
        at Object.fs.readFile (ELECTRON_ASAR.js:451:25)
        at Object.parseVcardFile (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/node_modules/vcard-json/lib/vcard-json.js:65:6)
        at Class.parseVcardFile (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/node_helper.js:107:9)
        at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/node_helper.js:56:10)
        at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:98:10)
        at emitTwo (events.js:106:13)
        at Socket.emit (events.js:191:7)
        at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:335:8)
        Missing error handler on socket.

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          ostfilinchen @kwaeksler
          last edited by

          @kwaeksler it looks, that u have activate the vCard option. Is that right? If no… Do u had installed the latest Version of this module?

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kwaeksler @ostfilinchen
            last edited by

            @ostfilinchen
            i tried the vCard option first, but actually it should be disabled…
            i think so. with git pull in “/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor” i get “Already up-to-date”.

            O 1 Reply Last reply Reply Quote 0
            • O Offline
              ostfilinchen @kwaeksler
              last edited by

              @kwaeksler can u Check this config:

              	{
                  module: 'MMM-FRITZ-Box-Callmonitor',
                  position: 'top_left',  // This can be any of the regions. Best results in left or right regions.
                  header: "kürzliche Anrufe", // This is optional
                  config: {
                      // See 'Configuration options' for more information.
              			maximumCallDistance: 7200,
              			username: "benutzer",
              			password: "passwort,
              			showContactsStatus: true,
              			//vCard: true
              			//maximumCalls: 10
              			}
              	},
              
              yawnsY K 2 Replies Last reply Reply Quote 0
              • yawnsY Offline
                yawns Moderator @ostfilinchen
                last edited by

                @ostfilinchen
                There is a " missing after passwort

                1 Reply Last reply Reply Quote 0
                • K Offline
                  kwaeksler @ostfilinchen
                  last edited by

                  @ostfilinchen my current config looks like this:

                  	{
                          module: 'MMM-FRITZ-Box-Callmonitor',
                          position: 'top_right', 
                          header: "Anrufliste", 
                          config: {
                          	maximumCallDistance: 7200,
                  			username: "***********",
                  			password: "********************",
                  			showContactsStatus: true,
                  			vCard: false
                          }
                  	},
                  

                  i think it looks good?

                  O 1 Reply Last reply Reply Quote 0
                  • O Offline
                    ostfilinchen @kwaeksler
                    last edited by

                    @kwaeksler yes. It looks good. Is the Module now working?

                    K 1 Reply Last reply Reply Quote 0
                    • K Offline
                      kwaeksler @ostfilinchen
                      last edited by

                      @ostfilinchen No :-(
                      i still get a small warning sign and an “unknown error”

                      the incoming call shows me a number, not a name.

                      O 1 Reply Last reply Reply Quote 0
                      • O Offline
                        ostfilinchen @kwaeksler
                        last edited by ostfilinchen

                        @kwaeksler puh… now I have no ideas. You have create an User and password in the fritz.box?

                        And… Do u have Updated your rpi?

                        sudo apt-get update
                        sudo apt-get dist-upgrade
                        sudo reboot

                        If After this the Module doesn’t work open an issue on github.

                        K 1 Reply Last reply Reply Quote 0
                        • boardnickB Offline
                          boardnick
                          last edited by boardnick

                          Hello everybody,

                          first of all @ostfilinchen: Thank you for your great support!

                          I just want to tell you, that kwaeksler is not the only one facing this problem.
                          Exactly this problem also appears on my MagicMirror installation.

                          Currently i have no possibility to check anything regarding my MagicMirror installation, but as soon as i have time (this weekend) i’m going to catch some more information that may be helpful for you (firmware version FritzBox, config MagicMirror, …).

                          I already tried
                          sudo apt-get update
                          sudo reboot
                          without succes.

                          Additionally i’m going to try
                          sudo apt-get update
                          sudo apt-get dist-upgrade
                          sudo reboot

                          Best regards
                          Aaron

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kwaeksler @ostfilinchen
                            last edited by

                            @ostfilinchen

                            Yes, i updated the pi yesterday with:

                            sudo apt-get update
                            sudo apt-get dist-upgrade
                            sudo reboot

                            after a long time of waiting the same warning sign :-(

                            O 1 Reply Last reply Reply Quote 0
                            • O Offline
                              ostfilinchen @kwaeksler
                              last edited by

                              @kwaeksler which nodejs Version Do u have? You can Check this with nodejs -v

                              My Version is 7.4.0

                              Maybe it’s a good idea to update this with
                              curl -sL https://deb.nodesource.com/setup_7x | sudo -E bash -
                              sudo apt-get install -y nodejs
                              sudo npm install -g npm
                              sudo npm install -g npm

                              K 1 Reply Last reply Reply Quote 0
                              • K Offline
                                kwaeksler @ostfilinchen
                                last edited by

                                @ostfilinchen i had the nodejs Version 6.9.4.

                                So i updated the version with:

                                curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
                                sudo apt-get install -y nodejs
                                sudo npm install -g npm
                                

                                Now i have Version v7.4.0 but still the same error like before :-(

                                O J 2 Replies Last reply Reply Quote 0
                                • O Offline
                                  ostfilinchen @kwaeksler
                                  last edited by

                                  @kwaeksler do you really have Version 7.4.0? in some cases you must execute the command sudo npm install -g npm two times.

                                  if you’re sure that u have v7.4.0 and the module doesn’t work, please delete the Folder of the module (MMM-FRITZ-Box-Callmonitor) and reinstall again.

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    Jopyth Moderator @kwaeksler
                                    last edited by

                                    @kwaeksler Also, is there any new output in the logs?

                                    Helpful sticky: How to troubleshoot

                                    1 Reply Last reply Reply Quote 0
                                    • boardnickB Offline
                                      boardnick
                                      last edited by

                                      Hi alltogether,

                                      as suggested by ostfilinchen i updated nodejs with the same commands as kwaekler: Also without success :-(
                                      In addition and also suggested by ostfilinchen i removed the module folder and reinstalled the module again: Also without success :-(

                                      @Jopyth (btw: Thank you for supporting us!):

                                      mm-error-0.log tells me the following

                                      MMM-FRITZ-Box-Callmonitor error while accessing FRITZ!Box: 
                                      Traceback (most recent call last):
                                        File "/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/fritz_access.py", line 1, in 
                                          import argparse, os, fritzconnection, urllib2, sys, json
                                        File "/usr/local/lib/python2.7/dist-packages/fritzconnection/__init__.py", line 3, in 
                                          from .fritzconnection import (
                                        File "/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py", line 39, in 
                                          from lxml import etree
                                      ImportError: No module named lxml
                                      

                                      As promissed before just some additional environmental informations from my side:

                                      • Fritz!Box Fon WLAN 7390 (UI) with Fritz!OS, Version 06.51
                                      • Raspberry Pi 2 Model B V1.1, OS: 2016-11-25-raspbian-jessie-lite
                                      • Nodejs version 7.4.0
                                      • extract from config-.js regarding the module:
                                      	{
                                      			module: 'MMM-FRITZ-Box-Callmonitor',
                                      			position: 'top_right',  // This can be any of the regions. Best results in left or right regions.
                                      			header: "Kürzliche Anrufe", // This is optional
                                      			config: {
                                      				fritzIP: '10.0.1.1',
                                      				username: 'magicmirror',
                                      				password: '**********',
                                      				reloadContactsInterval: 5,
                                      				debug: true,
                                      				showContactsStatus: true
                                      			}
                                      		},
                                      
                                      O J 2 Replies Last reply Reply Quote 0
                                      • O Offline
                                        ostfilinchen @boardnick
                                        last edited by

                                        @boardnick can u Login to the fritz.box with the User MagicMirror and the password?

                                        1 Reply Last reply Reply Quote 0
                                        • boardnickB Offline
                                          boardnick
                                          last edited by

                                          @ostfilinchen yes i’m able to login using this user / password.

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            Jopyth Moderator @boardnick
                                            last edited by Jopyth

                                            @boardnick From your logs I read, that lxml is not installed, did you execute step 3 of the installation?

                                            Edit: Did anything during execution of this command go wrong? sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev && sudo pip install fritzconnection

                                            Helpful sticky: How to troubleshoot

                                            1 Reply Last reply Reply Quote 1

                                            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
                                            • 2 / 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