kbr / fritzconnection

Python-Tool to communicate with the AVM Fritz!Box by the TR-064 protocol and the AHA-HTTP-Interface
MIT License
304 stars 59 forks source link

Addressbook update and create #43

Open MichiFr opened 4 years ago

MichiFr commented 4 years ago

Any chance to enhance this lib and allow updates to addressbook(s) entries and adding new entries?

kbr commented 4 years ago

I haven't dive into this. Did you found a corresponding service for that task in the Vendor documentation?

MichiFr commented 4 years ago

Sorry, unfortunately not. I cam accross this lib while searching for a possibility to convert CardDAV data from my local server to Fritz!Box phonebooks.

So far, I did not use your lib but I've checked the functions it already offers and though I will aks for some enhancements to update or create addressbook entries.

As a sidenote: as far as I know only a current lab version of Fritz!OS, available for very few devices, offers a basic method for importing phonebooks using CardDAV providers as source. I currently have no chance to test because of missing hardware on my side, but I dared to ask here for some new features, though.

Since I'm still a learning user of Python I would be willing to write a convertermyself for synchronizing CardDAV data to Fritz!OS. As long as there are libraries available ;-)

Michael

bufemc commented 4 years ago

Ah, seems to be nearly a duplicate of my issue: https://github.com/kbr/fritzconnection/issues/50

I meanwhile provided there a code snippet how to add entries, which I use and works, but is still ugly. The author might do it better and cleaner by using the "Contact" object and I guess "Soaper".