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.
    • R Offline
      randpop
      last edited by

      Re: MMM-FRITZ-Box-Callmonitor

      Hi all,

      i cannot get the module up and running.

      I’ve tried all the above solutions and nothing really worked.

      We got 2 FritzBoxes at work. One is our router (7590) and the other one (6490) is used as a cable modem and for the telephone connections.

      Callerid and TR-064 access are activated on the 6490 and it is running with OS 6.50. The user i created has access to the FritzBox and has all the necessary rights.
      I’ve tried a CallerMonitor App on macOS and it worked fine.

      This is my config:

      
         {
                              module: 'MMM-FRITZ-Box-Callmonitor',
                              position: 'bottom_left',      
                              header: "Anrufe", 
                              config: {
                              password: "PASSWORD",
                              username: "USERNAME",
                              fritzIP: "130.180.xx.xx",
                              reloadContactsInterval: 1,
                              vCard: false 
                             }
      
      

      When i test the connection with:

      python fritz_access.py -p PASSWORD -u USER -i 130.180.xx.xx
      

      i get this:

      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/etree.pyx", line 3222, in lxml.etree.fromstring
        File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
        File "src/lxml/parser.pxi", line 1765, in lxml.etree._parseDoc
        File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc
        File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
        File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
        File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
        File "", line 1
      lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: HR line 1 and BODY, line 1, column 180
      

      All phonebook entries are in the formats 004902211234567 or 02211234567.

      The callermonitor seems to work as it shows incoming numbers but the recent calls and phonebook function are broken.

      Anyone has any thoughts about that? Any kind of solution

      Best,

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        rabbit83ka @randpop
        last edited by

        Hi @randpop,

        I’m running this plugin together with the fix by wunderbear and a Unitymedia-Fritzbox 6490 with FritzOS 7.02

        fritz_access.py does also work an gives a reasonable output.

        Regards

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

          Hi all,
          this is my first post, so please be patient with me ;)
          I´m trying to use MMM-FRITZ-Box-Callmonitor, but I have some problems, although I followed nearly every hint in this discussion.

          • When someone is calling, I can see his number but not his name on the screen.
          • The latest calls only were shown when I don´t config password and username. Why is that?
          • when I test the connection with:
          python fritz_access.py -p PASSWORD -u USER -i xxx.xxxx.xx.xx
          

          I retrieve all the data from my Fritzbox, so the connection should not be the problem.

          At least I tried the recommended fix of wunderbear, but after a reboot I only get a black screen (with the cursor top-left) after starting the MagicMirror. What is the reason and how can I solve these problems? I don´t want to start all other again :weary_face:

          I hope, that someone can help me to fix my problems.

          Thanks and regards
          Laurids

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            Baschti @Laurids
            last edited by

            @Laurids Did you solve the Problem? Same here!

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

              Hi,

              I cannot get the module to work with my FB6590 Cable on FritzOS 7.19.
              CallMonitor is switched on.

              When I try to access it with python fritz_access-py -p PASS -u USER -i IP I get the following:

              My “real” phonebook is a Google phonebook which is automatically imported by the FB, I do not use (and do not want to use) the internal phonebook.
              Also, no recent calls are being shown.

              {"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <phonebooks> <!-- id:0 , name: Telefonbuch --> <phonebook owner=\"0\" name=\"Telefonbuch\"> <timestamp>948668907</timestamp> <!-- number of contacts 12 --> <contact> <category>0</category> <person> <realName>Alle (Rundruf)</realName> </person> <uniqueid>11</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"intern\" vanity=\"\" prio=\"1\" >**9</number> <!-- idx:0 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>Anrufbeantworter</realName> </person> <uniqueid>12</uniqueid> <telephony> <services> </services> <!-- numbers:2--> <number type=\"intern\" vanity=\"\" prio=\"1\" >**600</number> <number type=\"memo\" vanity=\"\" prio=\"\" >**605</number> <!-- idx:1 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>AVM Ansage (HD)</realName> </person> <uniqueid>22</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"work\" quickdial=\"99\" vanity=\"\" prio=\"1\" >500@hd-telefonie.avm.de</number> <!-- idx:0 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>B\u00fcro</realName> </person> <uniqueid>13</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"intern\" vanity=\"\" prio=\"1\" >**611</number> <!-- idx:2 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>Fax</realName> </person> <uniqueid>14</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"intern\" vanity=\"\" prio=\"1\" >**2</number> <!-- idx:3 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>FRITZ!App Fon (Samsung SM-G965F)</realName> </person> <uniqueid>27</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"intern\" vanity=\"\" prio=\"1\" >**620</number> <!-- idx:4 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>ISDN/DECT Rundruf</realName> </person> <uniqueid>16</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"\" vanity=\"\" prio=\"1\" >**50</number> <!-- idx:5 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>K\u00fcche</realName> </person> <uniqueid>17</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"intern\" vanity=\"\" prio=\"1\" >**610</number> <!-- idx:6 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>Schlafen</realName> </person> <uniqueid>18</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"intern\" vanity=\"\" prio=\"1\" >**612</number> <!-- idx:7 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>Wecker 1</realName> </person> <uniqueid>19</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"\" vanity=\"\" prio=\"1\" >**41</number> <!-- idx:8 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>Wecker 2</realName> </person> <uniqueid>20</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"\" vanity=\"\" prio=\"1\" >**42</number> <!-- idx:9 --> <!-- ringtoneidx:nil --> </telephony> </contact> <contact> <category>0</category> <person> <realName>Wecker 3</realName> </person> <uniqueid>21</uniqueid> <telephony> <services> </services> <!-- numbers:1--> <number type=\"\" vanity=\"\" prio=\"1\" >**43</number> <!-- idx:10 --> <!-- ringtoneidx:nil --> </telephony> </contact> </phonebook></phonebooks> ", "filename": "data/pbook_0.xml"}
              Traceback (most recent call last):
                File "fritz_access.py", line 77, in <module>
                  main(args)
                File "fritz_access.py", line 63, in main
                  handle.download_phone_book()
                File "fritz_access.py", line 29, in download_phone_book
                  self.forward_file(result_phonebook["NewPhonebookURL"], filename)
              KeyError: 'NewPhonebookURL'
              

              Incoming calls are being displayed with the number on the screen, but are not shown in the recent calls list.

              Edit: It works when I use a .vcf file, but I’d really like to use my builtin phonebook and also grab recent calls.

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

                In case you haven’t noticed, @paviro is looking for a maintainer for this module.
                https://github.com/paviro/MMM-FRITZ-Box-Callmonitor/issues/40

                Would love to see this working!

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

                  So far, no maintainer.

                  Anyone else noticing that the module is not working with FRITZ!OS 7.20 anymore? (FB6590 Cable here, was working with the betas).

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

                    @requiemmg

                    Today a made a fresh installation on my Pi4 with the latest Buster and MagicMirror 2.12

                    I installed the modules FRITZBox-Callmonitor & Current Call

                    in the root:

                    sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev && sudo pip install fritzconnection
                    

                    and i fix the files from this Post -->

                    https://github.com/paviro/MMM-FRITZ-Box-Callmonitor/pull/35/commits/3f23f12d72d751567df67aebe33e1263be26bf81

                    and it works very well in combination with my Fritzbox 7590 running on 7.20

                    Best Regards

                    G 1 Reply Last reply Reply Quote 0
                    • 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
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 9
                        • 10
                        • 1 / 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