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.
    • 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
            • boardnickB Offline
              boardnick
              last edited by

              @Jopyth Thank you for your respond!

              Yes, i executed step 3 of the installation. As far as a remember nothing did go wrong.
              Hoping that i did not damage anything i executed your listed command one by one once again:

              sudo apt-get install python-dev
              –> already latest version

              sudo apt-get install libxml2-dev
              –> already latest version

              sudo apt-get install libxslt1-dev
              –> already latest version

              sudo apt-get install zlib1g-dev
              –> already latest version

              sudo pip install fritzconnection
              –> Requirement already satisfied (use --upgrade to upgrade): fritzconnection in /usr/local/lib/python2.7/dist-packages
              Cleaning up…

              So for the last command i additionally executed
              sudo pip install fritzconnection --upgrade
              –> Requirement already up-to-date: fritzconnection in /usr/local/lib/python2.7/dist-packages
              Cleaning up…

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

                @boardnick That is strange. Can you try calling the python connection script directly? For example, replace your password, user and IP in this command python fritz_access.py -p passwd -u user -i 192.168.FRITZ.BOX? Needs to be called from the MMM-FRITZ-Box-Callmonitor directory.

                Helpful sticky: How to troubleshoot

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

                  @Jopyth i tried calling it directly and get the same result:

                  0_1485275096473_upload-ad5969e4-3d7d-42b8-80c5-6f033ec526f4

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

                    @boardnick Well the good news in that case is: You just need to fix this error, and it should work fine. Does this work? Or any of the things google spits out? If yes, please let me know, maybe the current way of installing lxml is not the best one.

                    Helpful sticky: How to troubleshoot

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

                      @Jopyth i’m trying to test the recommended links this weekend and give you a feedback afterwards.
                      Thank you so far!

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

                        Hi @Jopyth, Hi all,

                        good news: It works after installing python-lxml as follows:

                        sudo apt-get install python-lxml

                        Thank you very much for your support and have a nice weekend!

                        1 Reply Last reply Reply Quote 1
                        • P Offline
                          Photon2000
                          last edited by

                          Hi all,

                          I have installed MagicMirror and the MMM-FRITZ-Box-Callmonitor two times from scratch and get the same error from the MMM-FRITZ-Box-Callmonitor:

                          0_1489563961751_Screenshot - 15_03.jpg

                          I’ve followd the thread and tried finally:

                          “python fritz_access.py -p password -u user -i ip-of-fritzbox”

                          and get the following error message:

                          Traceback (most recent call last):
                          File “fritz_access.py”, line 77, in
                          main(args)
                          File “fritz_access.py”, line 63, in main
                          handle.download_phone_book()
                          File “fritz_access.py”, line 22, in download_phone_book
                          result = self.fc.call_action(“X_AVM-DE_OnTel”, “GetPhonebookList”)
                          File “/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py”, line 405, in call_action
                          action = self._get_action(service_name, action_name)
                          File “/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py”, line 378, in _get_action
                          raise ServiceError('Unknown Service: ’ + service_name)
                          fritzconnection.fritzconnection.ServiceError: Unknown Service: X_AVM-DE_OnTel:1

                          Do you have any ideas?

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

                            @Photon2000 Can you try to execute this: python -c "import fritzconnection as fc; fc.print_api(password='PWD')" and have a look at your model and OS version? Maybe they changed something in the API, or you have an older version?

                            Helpful sticky: How to troubleshoot

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              Photon2000
                              last edited by

                              Thx for fast reply!

                              sudo python -c “import fritzconnection as fc; fc.print_api(password=‘PWD’)”

                              gives:

                              FritzConnection:
                              version: 0.6
                              model: None
                              FritzBox API:

                              and

                              uname -a

                              Linux Aragorn 3.19.0-26-generic #28~14.04.1-Ubuntu SMP Wed Aug 12 14:09:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

                              1 Reply Last reply Reply Quote 0
                              • H Offline
                                Hellfire666
                                last edited by

                                I have the same problem:
                                no recent calls with “unknown error” in brackets like Photon2000, when I do
                                python fritz_access.py -p pwd -u user -i 192.168.2.1 (the IP of my fritz.box) I get:

                                Traceback (most recent call last):
                                File “fritz_access.py”, line 77, in
                                main(args)
                                File “fritz_access.py”, line 63, in main
                                handle.download_phone_book()
                                File “fritz_access.py”, line 22, in download_phone_book
                                result = self.fc.call_action(“X_AVM-DE_OnTel”, “GetPhonebookList”)
                                File “/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py”, line 406, in call_action
                                return action.execute(**kwargs)
                                File “/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py”, line 130, in execute
                                result = self.parse_response(response.content)
                                File “/usr/local/lib/python2.7/dist-packages/fritzconnection/fritzconnection.py”, line 142, in parse_response
                                root = etree.fromstring(response)
                                File “src/lxml/lxml.etree.pyx”, line 3213, in lxml.etree.fromstring (src/lxml/lxml.etree.c:79010)
                                File “src/lxml/parser.pxi”, line 1848, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:118341)
                                File “src/lxml/parser.pxi”, line 1736, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:117021)
                                File “src/lxml/parser.pxi”, line 1102, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:111265)
                                File “src/lxml/parser.pxi”, line 595, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:105109)
                                File “src/lxml/parser.pxi”, line 706, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:106817)
                                File “src/lxml/parser.pxi”, line 635, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:105671)
                                File “”, line 1
                                lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: HR line 1 and BODY, line 1, column 146

                                Any chance this can be fixed?
                                I allready tried all of the above…

                                1 Reply Last reply Reply Quote 0
                                • H Offline
                                  Hellfire666
                                  last edited by

                                  my problem has vanished. I have reinstalled the module and did

                                  npm install

                                  twice, now it is working.

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    domi256
                                    last edited by

                                    Hey i got a Problem with this module,
                                    I installed it from the instructions, and added this to config.js:

                                    {
                                    			module: "MMM-FRITZ-Box-Callmonitor",
                                    			position: "top_left",
                                    			header: "Recent calls",
                                    			config: {
                                    				username: "raspi",
                                    				password: "domi1234",
                                    				maximumCallDistance: 7200,
                                    				showContactsStatus: true
                                    			}
                                    		},
                                    

                                    If i want to start it via npm start, i get an error Message like this:

                                    pi@mirror:~/MagicMirror $ npm start
                                    
                                    > magicmirror@2.1.1 start /home/pi/MagicMirror
                                    > sh run-start.sh
                                    
                                    Starting MagicMirror: v2.1.1
                                    Loading config ...
                                    Loading module helpers ...
                                    No helper found for module: alert.
                                    Initializing new module helper ...
                                    Module helper loaded: updatenotification
                                    Initializing new module helper ...
                                    Module helper loaded: ping
                                    No helper found for module: clock.
                                    Initializing new module helper ...
                                    Module helper loaded: calendar
                                    WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node-fritzbox-callmonitor'
                                    Loading module helpers ...
                                    No helper found for module: alert.
                                    Initializing new module helper ...
                                    Module helper loaded: updatenotification
                                    Initializing new module helper ...
                                    Module helper loaded: ping
                                    No helper found for module: clock.
                                    Initializing new module helper ...
                                    Module helper loaded: calendar
                                    App threw an error during load
                                    Error: Cannot find module 'node-fritzbox-callmonitor'
                                        at Module._resolveFilename (module.js:470:15)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                        at Function.Module._load (module.js:418:25)
                                        at Module.require (module.js:498:17)
                                        at require (internal/module.js:20:19)
                                        at Object. (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/node_helper.js:4:21)
                                        at Object. (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/node_helper.js:259:3)
                                        at Module._compile (module.js:571:32)
                                        at Object.Module._extensions..js (module.js:580:10)
                                        at Module.load (module.js:488:32)
                                    Whoops! There was an uncaught exception...
                                    { Error: Cannot find module 'node-fritzbox-callmonitor'
                                        at Module._resolveFilename (module.js:470:15)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                        at Function.Module._load (module.js:418:25)
                                        at Module.require (module.js:498:17)
                                        at require (internal/module.js:20:19)
                                        at Object. (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/node_helper.js:4:21)
                                        at Object. (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/node_helper.js:259:3)
                                        at Module._compile (module.js:571:32)
                                        at Object.Module._extensions..js (module.js:580:10)
                                        at Module.load (module.js:488:32) code: 'MODULE_NOT_FOUND' }
                                    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                    Launching application.
                                    
                                    

                                    Can someone help me please? :(

                                    Thank you verry much

                                    strawberry 3.141S yawnsY 2 Replies Last reply Reply Quote 0
                                    • strawberry 3.141S Offline
                                      strawberry 3.141 Project Sponsor Module Developer @domi256
                                      last edited by

                                      @domi256 looks like you didnt install the dependencies with npm install in /home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor

                                      Please create a github issue if you need help, so I can keep track

                                      1 Reply Last reply Reply Quote 0
                                      • yawnsY Offline
                                        yawns Moderator @domi256
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • garblefluxG Offline
                                          garbleflux Project Sponsor @Jopyth
                                          last edited by garbleflux

                                          @Jopyth I also have trouble with this module: Once I get a call, a window pops up and shows me the number. So far all o.k. But the recent call list is still empty.
                                          Maybe it depends on my Fritz!box configuration: I use for security a password to
                                          have access to the Fritz!box. in the configuration options for the MMM-Callmonitor I do not see an command to handle this password. Is it necessary to remove it?
                                          Regards Mike

                                          Sandy2503S 1 Reply Last reply Reply Quote 0
                                          • Sandy2503S Offline
                                            Sandy2503 @garbleflux
                                            last edited by

                                            @garbleflux - try to create a useraccount on the fritzbox (with name and password). ths works very well with my 7490 …

                                            garblefluxG 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
                                            • 3 / 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