I am a pretty happy user of a
freetz'd AVM Fritz! Box 7140 for a while now, the only thing bugging me was the lack of an address book import built into the box.
i tried messing around with the
/var/flash/phonebook file, but for some reason my xml files kept being rejected.
ultimately, i found a utility called "Fritz!box Monitor" or short FBM, which is
supplied by AVM. It can import CSV files in a certain (pretty weird) format, so i re-wrote my xml-generator to print out that format instead. FBM's a windows program of course, so fire up your parallels/fusion/qemu/whatever.
You have to edit
fritzboxmonitor.ini in it's program directory before using this, and set the key
ExportAll to
1. I also set the
AutoSpeedDial entry to
0 because i don't use speed dialing and thus the csv exporter doesn't support it.
The exporter is written in python, i used
this script as a basis. It's an ugly quick hack, so bear with me. It should work with mac os x 10.5.5 stock python, probably earlier, too.
You can find the exporter script
here.
i also came up with a version that exports to a windows-addressbook-reimportable format; i use it to push my contacts to a siemens gigaset sl56 bluetooth enabled dect phone, which only supports a windows program as source either. that version is
here.
8 comments
Hey Fake!
Just found this from Google and am interested in the pushing contacts from Address Book on my Mac to the SL56 via Bluetooth.
Is there a way I can do this without running Windows on the Mac?
G
hi gary,
i am not aware of any method to do this... the sl56 is pretty strange, anyways - i wouldn't buy it again. the bluetooth never really worked the way it should (accepting contacts sent to it from other bluetooth devices never worked for me, let alone with the included contact picture intact).
so, sorry, i have no idea ;-)
Hello Script does not work,
python exportPB4Fritz.py
Traceback (most recent call last):
File "exportPB4Fritz.py", line 64, in <module>
list = addressBookToList()
File "exportPB4Fritz.py", line 31, in addressBookToList
thisPerson['work'] = telnormalize(phones.valueAtIndex_(val))
File "exportPB4Fritz.py", line 44, in telnormalize
if tel[0] == '+':
IndexError: string index out of range
hi mathias,
interesting. that could happen if one of your contacts has an empty phone record, or one that only consists of letters previously filtered out in the script (-, , \t). please add a debug statement in line 24 of the script, printing out the name of the person it is working on e.g. <tab> print "adding phone numbers for %s %s" % (first, last) and check the address book record for ther person it bails out after.
please let me know what caused this so i can update the script with a fix.
Hi fake,
bei mir kann das Skript anscheinend nicht aufs Adressbuch zugreifen:
from: can't read /var/mail/AddressBook
./exportPB4Fritz.py: line 3: import: command not found
./exportPB4Fritz.py: line 5: syntax error near unexpected token `('
./exportPB4Fritz.py: line 5: `def addressBookToList():'
Irgendeine Ahnung, wie ich das zum Laufen bekomme?
Der Ordner /var/mail/ ist bei mir anscheinend leer.
Gruß
chronos
ooh, chronos, sieht so aus als wollte dein system das als shell-skript, nicht als python-skript ausfuehren.
probiere es mal mit
python ./exportPB4Fritz.py
dann sollte es hoffentlich besser aussehen...
Dankeschön! Ja, das war mein Fehler, jetzt läufts einwandfrei.
lG
chronos
Hey Fake,
ich hab scheinbar nicht gut gesucht als ich mein Python zusammengehackt habe:
Allerdings sind bei dir zwei Kleinigkeiten anders als bei mir:
Python arbeitet per default mit UTF-8 und die Fritzbox mags in ISO-8859-1- von daher die schrägen äöü. Das tool von Programmish hab ich auch verwendet - aber noch ein bissi aufgebohrt. Bei dem Telefonnummern gerade ziehen - muss ich noch ein bissi sauberer Werden:
http://www.web-dreamer.de/blog/2010...