Hi Sriram
I try to get the ASynk running on Debian Sid with a local owncloud onthe
machine (laptop) and Asynk retrieved from GitHub.
Some things are working, others are a bit hidden for a complete Python
novize (and I am not planning to become a Python programmer fro now).
- I try to make some changes in the way my BBBD is read (notes_map,
phones_map, postal_map,...), but have no idea where to put such an
adapted private config.json or how to write the config.py.
- Just putting the new config.json file together with the config.py in
my use directory does not help
- copy-paste the contents of an adapted config.json into the config.py
file gives a syntax error
- I write, that the structure of your example config.json files shoudl
be taken and put into config.py.
- But what would be the syntax?
- Can I change just small piece? I would like to change, say
postal_map for bb. What would I have to write into the config.py?
In JSON syntax, or in PY(?) syntax? And how would this syntax look
like for such a small change?
- I did realize that the postal addresses in my BBDB are not put into
the owncloud addressbook (CardDAV), and I think you are mentioning
that CardDAV is not configured for postal addresses.
- The problem is, that postal addresses are lost from BBDB after
syncing. Is there any work-around? I was expecting that ASynk would
leave these BBDB fields alone (no sync on these fields, but just
leave them in the BBDB database/file) - any easy possibility to
achieve that?
- on creation-date and timestamp in BBDB: I like these fields for
personal documentation use (some of my entries/items are more than 20
years old). It seems, these fields are all "taken" by ASynk. Any
possibility to avoid this? By some re-naming of fields, e.g. ASynk not
taking ove creation-date and timestam, but using additional fields
creation-date-async and timestamp-async for its purposes? And leaving
the BBDB fields silently in the synced BBDB file. Again, is this
something that can be easiliy achieved through configuration options?
Many thanks for the software.
Best, Adrian.
Many thanks Sriram
This entry does not work. I get no error, but the phone and email types
are not recognised in owncloud. I do:
$ ./asynk.py --op=create-profile --name gaga --user-dir=~/.asynk/ --db bb cd --folder default /owncloud/remote.php/carddav/addressbooks/gaga/contacts/ --store "/home/gaga/.bbdb/.bbdb-2015-05-05" "http://localhost/owncloud/remote.php/carddav/addressbooks/gaga/contacts"
$ ./asynk.py --op=sync --name gaga --user-dir=~/.asynk/
and the config.py entries are:
config['bb']['email_domains'] = {'home' : 'lanz.name', 'haberlin.name',}
config['bb']['email_domains'] = {'work' : 'wsl.ch', 'ethz.ch', 'bafu.admin.ch',}
config['bb']['email_domains'] = {'other' : '.* '}
config['bb']['postal_map'] = { 'home' : 'Home'}
config['bb']['postal_map'] = { 'work' : 'Office'}
config['bb']['postal_map'] = { 'other' : '.*'}
config['bb']['phones_map'] = { 'phone_home' : 'Home'}
config['bb']['phones_map'] = { 'phone_work' : 'Office'}
config['bb']['phones_map'] = { 'phone_mob' : 'Mobile'}
config['bb']['phones_map'] = { 'fax_home' : 'HomeFax'}
config['bb']['phones_map'] = { 'fax_work' : 'OfficeFax'}
config['bb']['phones_map'] = { 'fax_other' : 'OtherFax'}
config['bb']['phones_map'] = { 'phone_other' : '.*'}
config['bb']['notes_map'] = { 'fileas' : 'versand'}
config['bb']['notes_map'] = { 'midle_name' : 'tex-name'}
config['bb']['notes_map'] = { 'notes' : 'gnokii'}
config['bb']['notes_map'] = { 'anniv' : 'anniversary'}
config['bb']['notes_map'] = { 'itemid' : 'bbdb-id'}
config['bb']['notes_map'] = { 'dept' : 'mail-alias'}
config['bb']['notes_map'] = { 'title' : 'buch'}
- name, organization, birthday, and all phone numbers and
email addresses are there, also the bbdb AKA field as owncloud
nickname field
- but the phone and email types are not assigned to work, home, ...
- and the intended associations under notes_map do not work (except
anniversary)
Any idea?
Best, Adrian.