CalDAV and CardDAV syncing#

CalDAV and CardDAV are protocols to sync calendars and contacts with a remote server. Many e-mail hosters provide a CalDAV and CardDAV interface.

CalDAV sync can be set up by using the calendar app. Open it, click on the little calendar icon in the top right corner and select “Add internet calendar > Generic CalDAV”. Enter your calendar URL as well as your username and password to complete the process.

CardDAV sync can be set up by using two different ways detailed in the following instructions. These instructions work for CalDAV as well.

First, follow this guide to activate Developer Mode and a connection either through ADB or SSH.

Then choose between the two following guides

  • The one proposed by Bastos77 and Vanyasem is quite simple, if you have few CalDav or CardDAV to configure.

  • The one proposed by UT-itilities is much featured, with many commands to create or delete configurations. Use it if you manage many configurations, on one or multiple servers

1. A simple guide proposed by Bastos77 and Vanyasem#

  1. Download this script (let’s call it dav.sh) and edit the following variables:

    • CAL_URL

    • CONTACTS_URL

    • USERNAME

    • PASSWORD

    • CONTACT_NAME

    • CALENDAR_NAME

    • VISUAL_NAME

    • CONFIG_NAME

    • CRON_FREQUENCY

  2. Move the file to your Ubuntu Touch device, either by way of a file manager or through the use of ADB:

    adb push dav.sh /home/phablet
    
  3. Connect with the phablet shell (using adb shell) or type the following directly into the Ubuntu Touch device terminal app:

    chmod +x dav.sh
    ./dav.sh