paviro / MMM-FRITZ-Box-Callmonitor

This an extension for the MagicMirror. It provides a callmonitor for FRITZ!Box users alerting them about incoming calls.
28 stars 22 forks source link

Error while loading the contacts #39

Open mkrause4 opened 4 years ago

mkrause4 commented 4 years ago

I have the following problem: The contacts of my Fritzbox are not loading. A loading symbol is permanently displayed. What can I do?

Picture

My configuration looks like this:

{ module: 'MMM-FRITZ-Box-Callmonitor', position: 'top_left', header: 'Verpasste Anrufe', config: { //vCard: 'home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/vCard1.vcf', username: "pi", password: "raspberry", showContactsStatus: true, maximumCallDistance: 300, deviceFilter: [], debug: "true" } },

Info: I use the user pi and the password raspberry also for the Fritzbox user.

derflippo commented 3 years ago

I have the same problem. I am using the API instead of the vCard but also having no contacts synced. Would be great if someone would have a clue.

My config:

    {
            module: 'MMM-FRITZ-Box-Callmonitor',
            position: 'bottom_left', 
            header: "Kürzliche Anrufe", 
            config: {
                    username: 'xyz',
                    password: 'xyz!',
                    reloadContactsInterval: '120',
                    fritzIP: '192.168.178.1',
                    fritzPort: '1012',
                    showContactsStatus: 'true',                     
                    debug: 'true'
                    }
     },
PieBa commented 3 years ago

It looks like an issue I also had. I assume this happens if you have more than one phone book in your Fritzbox. For me this workaround fixed the issue:

In file fritz_access.py just add .replace(",","") in line 26 before the : So the complete new line 26 would be like this: for phonebook_id in result["NewPhonebookList"].replace(",",""):