• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

CardDav (contacts) support

Scheduled Pinned Locked Moved OS
carddavcontacts
55 Posts 26 Posters 17.0k Views 16 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Thatoo
      last edited by 8 Jul 2020, 19:56

      I have tried, with the help I could find here and there, to make a script to sync only our contacts to nextcloud, see below one of the version that I think should be working.

      Unfortunately, all my attempt failed. I always get the same error : [ERROR] error code from SyncEvolution fatal error (local, status 10500) : no such datastore(s): NextcloudContactDatastore

      Any idea why do I get this error and how to fix it? How to improve the script?
      Cheers to all,

      #!/bin/bash
      # It is script to sync contacts between my Nexus 5 with UBports ubuntu touch OTA 12 and a nextcloud server
      # --------------- [ Server ] ---------------- #
      echo "What is the URL of your nextcloud server?":
      read NEXTCLOUD_URL
      echo "What is your username?":
      read USERNAME
      echo "What is your password?":
      read PASSWORD
      
      # ----------------- [ Phone ] ----------------- #
      CONTACTS_CONFIG_NAME="NextcloudContactConf"
      CONTACTS_NAME="NextcloudContactDatastore"
      echo "What name do you want to give to your local Adressbook?":
      read CONTACTS_VISUAL_NAME
      
      CRON_FREQUENCY="hourly"
      
      export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35)
      
      #Create contact list
      syncevolution --create-database backend=evolution-contacts database=$CONTACTS_VISUAL_NAME
      #Create Peer
      syncevolution --configure --template webdav username=$USERNAME password=$PASSWORD syncURL=$NEXTCLOUD_URL/remote.php/dav/addressbooks/users/$USERNAME/contacts/ keyring=no target-config@$CONTACTS_CONFIG_NAME
      #Create New Source
      syncevolution --configure backend=evolution-contacts database=$CONTACTS_VISUAL_NAME @default $CONTACTS_NAME
      #Add remote database
      syncevolution --configure database=$NEXTCLOUD_URL/remote.php/dav/addressbooks/users/$USERNAME/contacts/ backend=carddav target-config@$CONTACTS_CONFIG_NAME $CONTACTS_NAME
      #Connect remote contact list with local databases
      syncevolution --configure --template SyncEvolution_Client Sync=None syncURL=local://@$CONTACTS_CONFIG_NAME username=$USERNAME password=$PASSWORD $CONTACTS_CONFIG_NAME $CONTACTS_NAME
      #Add local database to the source
      syncevolution --configure sync=two-way backend=evolution-contacts database=$CONTACTS_VISUAL_NAME $CONTACTS_CONFIG_NAME $CONTACTS_NAME
      #Start first sync
      syncevolution --sync refresh-from-remote $CONTACTS_CONFIG_NAME $CONTACTS_NAME
      
      #Add Sync Cronjob
      sudo mount / -o remount,rw
      COMMAND_LINE="export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CONTACTS_CONFIG_NAME"
      sudo sh -c "echo '$COMMAND_LINE' > /sbin/sogosync"
      sudo chmod +x /sbin/sogosync
      
      CRON_LINE="@$CRON_FREQUENCY /sbin/sogosync"
      (crontab -u phablet -r;) # only if no other cronjob already exist in the crontab
      (crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet -
      sudo mount / -o remount,ro
      sudo service cron restart
      

      Nexus 5

      1 Reply Last reply Reply Quote 0
      • T Offline
        Thatoo
        last edited by 17 Jul 2020, 16:43

        I found this old tutorial that add a

        --template webdav
        

        to the #Add remote database part but it didn't solve my issue

        https://itectec.com/ubuntu/ubuntu-how-to-sync-contacts-and-the-calendar-on-ubuntu-touch-with-owncloud/

        I have tried also to contribute to this script : https://github.com/UT-ilities/UTouch_CalDAV_and_CardDAV_synchronization
        but it isn't working neither.

        I have spent hours trying to make something working without success. Too bad... I'll wait for some good news to come then or some help on how to make such script working on UT 16.04 with nextcloud.

        Nexus 5

        1 Reply Last reply Reply Quote 0
        • G Offline
          gwengui
          last edited by 11 Mar 2022, 20:30

          Hi everyone,

          @mardy wrote in last september on Github that CardDav support could be available in OTA21. As we now all use OTA22, I guess that we are getting closer :beaming_face_with_smiling_eyes:
          Good news is that the solution seems almost ready.

          @mardy : Could you make any progress since that last message ?

          Nexus 5 as daily driver (used as desktop) / BQ E4.5 for work / BQ M10 HD for home

          Nexus 5 + Nexus 7 for my old mum / OnePlus One for my brother

          X 1 Reply Last reply 14 Sept 2022, 10:36 Reply Quote 1
          • X Offline
            x.Dub @gwengui
            last edited by 14 Sept 2022, 10:36

            I don't like creating zombie threads. But I would like to ask when to expect carddav support in UT? :beaming_face_with_smiling_eyes:

            G 1 Reply Last reply 14 Sept 2022, 17:34 Reply Quote 0
            • G Offline
              gwengui @x.Dub
              last edited by 14 Sept 2022, 17:34

              @x-dub It seems that we have never been so close :

              https://github.com/orgs/ubports/projects/35/views/1

              Nexus 5 as daily driver (used as desktop) / BQ E4.5 for work / BQ M10 HD for home

              Nexus 5 + Nexus 7 for my old mum / OnePlus One for my brother

              G 1 Reply Last reply 15 Nov 2023, 21:25 Reply Quote 0
              • G Offline
                gwengui @gwengui
                last edited by 15 Nov 2023, 21:25

                Hi,

                @mardy does not seem to connect to this forum anymore.

                Does anyone has any news about the new address book app and CardDav support ? It was almost there in Xenial OTA 24 before its removal.

                CardDav synchronisation would be a great feature with Focal !

                Nexus 5 as daily driver (used as desktop) / BQ E4.5 for work / BQ M10 HD for home

                Nexus 5 + Nexus 7 for my old mum / OnePlus One for my brother

                L 1 Reply Last reply 16 Nov 2023, 08:26 Reply Quote 0
                • L Offline
                  lduboeuf @gwengui
                  last edited by 16 Nov 2023, 08:26

                  @gwengui said in CardDav (contacts) support:

                  Hi,

                  @mardy does not seem to connect to this forum anymore.

                  Does anyone has any news about the new address book app and CardDav support ? It was almost there in Xenial OTA 24 before its removal.

                  CardDav synchronisation would be a great feature with Focal !

                  Hi,

                  AFAIK no one have worked on it. I personally fixed some regressions here and there, but there is still the missing piece of contact synchronisation and i have no idea how to do that.
                  Hope @mardy or someone can push it back again soon 😉

                  D L 2 Replies Last reply 16 Nov 2023, 11:05 Reply Quote 0
                  • D Offline
                    DPITTI @lduboeuf
                    last edited by 16 Nov 2023, 11:05

                    @lduboeuf said in CardDav (contacts) support:

                    AFAIK no one have worked on it. I personally fixed some regressions here and there, but there is still the missing piece of contact synchronisation and i have no idea how to do that.
                    Hope @mardy or someone can push it back again soon

                    Mardy has a video from Youtube on his homepage of a song sung in Russian. I don't think we'll hear anything more from him any time soon. His FM radio app doesn't work on Focal either.

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      lduboeuf @lduboeuf
                      last edited by lduboeuf 4 Jan 2024, 14:05 31 Mar 2024, 22:28

                      @lduboeuf said in CardDav (contacts) support:

                      @gwengui said in CardDav (contacts) support:

                      Hi,

                      @mardy does not seem to connect to this forum anymore.

                      Does anyone has any news about the new address book app and CardDav support ? It was almost there in Xenial OTA 24 before its removal.

                      CardDav synchronisation would be a great feature with Focal !

                      Hi,

                      AFAIK no one have worked on it. I personally fixed some regressions here and there, but there is still the missing piece of contact synchronisation and i have no idea how to do that.
                      Hope @mardy or someone can push it back again soon 😉

                      FYI i got carddav with new backend working on my device. Still early to celebrate though and with manual config only. Lots of testing and reverse engineering to do.

                      L 1 Reply Last reply 7 Apr 2024, 21:21 Reply Quote 5
                      • L Offline
                        lduboeuf @lduboeuf
                        last edited by 7 Apr 2024, 21:21

                        @lduboeuf said in CardDav (contacts) support:

                        FYI i got carddav with new backend working on my device. Still early to celebrate though and with manual config only. Lots of testing and reverse engineering to do.

                        New backend, carddav with NC account: It works! ( still need UI fixes)
                        photo1712524222.jpeg

                        L 1 Reply Last reply 20 Apr 2024, 21:06 Reply Quote 4
                        • L Offline
                          lduboeuf @lduboeuf
                          last edited by 20 Apr 2024, 21:06

                          Got "generic Cerddav" working too, but for that one there is not any check and feedback when you create your account.

                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post