andig / carddav2fb

Download CardDAV VCards and upload as phonebook to AVM FRITZ!Box
63 stars 19 forks source link

Unexpected behaviour when using "run" and when using "-i" flag #237

Closed pucicu closed 2 years ago

pucicu commented 2 years ago

I would like to use the tool for sync the Baikal-based addressbook at a NAS to a FritzBox. Because of the upgrade to DSM 7, the old version of carddav2fb (from jens-maus) does not run anymore.

The workflow now runs smoothly when I use firstcarddav2fb download test, then convert carddav2fb convert test test.xmland then upload carddav2fb upload test.xml. As far as I understand, the run command would do these three steps together. But when I use carddav2fb run the tool tries to download the addressbooks from the FritzBox instead from the NAS and stops with an error

Downloading recent FRITZ!Box phonebook
Save internal data from recent FRITZ!Box phonebook!

In functions.php line 74:
Could not connect to ftp server fritz.box for upload

This behaviour is not what I would expect.

The same (or similar) happens when I use the -iflag for the command convert.

andig commented 2 years ago

So you‘re basically saying that you can specify your own server using download but not using run?

pucicu commented 2 years ago

exactly. the same behaviour on two different machines (directly calling the tool from the NAS and from a macOS).

blacksenator commented 2 years ago

This not a bug - it´s a feature! carddav2fb downloads FRITZ!Box telephone book in the first step to save FRITZ!Box-specific data: internal numbers, quickdial or vanity information. This information are saved in the internal FRITZ!Box memory using ftp.

You can skip this feature by deactivating ftp usage in general

pucicu commented 2 years ago

ah, ok, I see. There was no information about this feature. Now it works.

blacksenator commented 2 years ago

@pucicu: I recommend to have a look into my forks wiki

pucicu commented 2 years ago

perhaps the error message is then misleading ("Could not connect to ftp server fritz.box for upload"). I guess, it should refer to download?

Do you have a guide for setting the FritzBox to allow the download via FTP? The download from the FritzBox does not work when using option -i (although the upload works well).

pucicu commented 2 years ago

@pucicu: I recommend to have a look into my forks wiki

Oh, wow. I have to look at your fork. Thanks for this hint!

blacksenator commented 2 years ago

Please close this issue and let´s discuss further here