Working with CardDAV

The discussion lounge for add-on Synology packages.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
mraky
Versed
Versed
Posts: 252
Joined: Thu Feb 23, 2012 11:49 am
Contact:

carddav in 5.1

Postby mraky » Tue Sep 23, 2014 6:03 pm

Hi,
carddav is one of announced features, but i cant find it in 5.1 beta. Can somebody help me ?
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 18185
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: carddav in 5.1

Postby HarryPotter » Tue Sep 23, 2014 6:27 pm

carddav will be a new package, but it is not available yet (see release note: COMING SOON)
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS415+ / DSM 6.1.1-15101-1 / ST4000VN000-2AH166
DS713+ / DSM 6.1.1-15101-1 / HD501LJ + HD502IJ (RAID0)
DS712+ / DSM 6.1-15047-2 / HD154UI + ST31000340AS (RAID0)

2 Squeezebox 3 + Boom

APC Smart UPS SUA750i
mraky
Versed
Versed
Posts: 252
Joined: Thu Feb 23, 2012 11:49 am
Contact:

Re: carddav in 5.1

Postby mraky » Wed Sep 24, 2014 9:09 am

HarryPotter wrote:carddav will be a new package, but it is not available yet (see release note: COMING SOON)



thx for correction :) i hope it will be released in coming days/this week. i miss this feature alot, and it was for my main reason, why i rushed with testing of 5.1. Let see
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 18185
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: carddav in 5.1

Postby HarryPotter » Thu Sep 25, 2014 9:41 am

The package is now available.

But there is still the question how to use it now... :? What is the path the clients need to connect to the server (url:8008 doesnt work).
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS415+ / DSM 6.1.1-15101-1 / ST4000VN000-2AH166
DS713+ / DSM 6.1.1-15101-1 / HD501LJ + HD502IJ (RAID0)
DS712+ / DSM 6.1-15047-2 / HD154UI + ST31000340AS (RAID0)

2 Squeezebox 3 + Boom

APC Smart UPS SUA750i
sxc7885
Sharp
Sharp
Posts: 189
Joined: Wed Jul 23, 2014 8:23 pm

Re: carddav in 5.1

Postby sxc7885 » Thu Sep 25, 2014 11:26 am

So I installed the package and now the bigger question is how do I use it? I can not find any setting or menu for setting up contacts or how to connect it to my iphone or ipad
User avatar
equiros
Student
Student
Posts: 61
Joined: Thu Jan 23, 2014 10:39 am
Location: Tarragona, Spain

Re: carddav in 5.1

Postby equiros » Thu Sep 25, 2014 11:43 am

Working perfect on MacBook Pro and an iPhone 5S. Syncing fast!
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 18185
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: carddav in 5.1

Postby HarryPotter » Thu Sep 25, 2014 11:53 am

Aha, and HOW?
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS415+ / DSM 6.1.1-15101-1 / ST4000VN000-2AH166
DS713+ / DSM 6.1.1-15101-1 / HD501LJ + HD502IJ (RAID0)
DS712+ / DSM 6.1-15047-2 / HD154UI + ST31000340AS (RAID0)

2 Squeezebox 3 + Boom

APC Smart UPS SUA750i
User avatar
importedprogrammer
Versed
Versed
Posts: 287
Joined: Mon Sep 01, 2008 10:18 am

Re: carddav in 5.1

Postby importedprogrammer » Thu Sep 25, 2014 12:50 pm

HarryPotter wrote:Aha, and HOW?


well 1st install it,

Urls are

Thunderbird with sogo connector
http://YOURDOMIN?IP:8008/addressbooks/u ... dressbook/

iphone as this most caldav are picked up using the underline .well-known/ url without need for full url
http://YOURDOMIN?IP:8008
DS713+ 4GB Ram linked to Raspberry Pi V2 Samba4 PDC & Cubieboard A20 Samba4 BDC.
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 18185
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: carddav in 5.1

Postby HarryPotter » Thu Sep 25, 2014 1:54 pm

Thanks, that was the information I was looking for. It does work.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS415+ / DSM 6.1.1-15101-1 / ST4000VN000-2AH166
DS713+ / DSM 6.1.1-15101-1 / HD501LJ + HD502IJ (RAID0)
DS712+ / DSM 6.1-15047-2 / HD154UI + ST31000340AS (RAID0)

2 Squeezebox 3 + Boom

APC Smart UPS SUA750i
User avatar
importedprogrammer
Versed
Versed
Posts: 287
Joined: Mon Sep 01, 2008 10:18 am

Re: carddav in 5.1

Postby importedprogrammer » Thu Sep 25, 2014 5:11 pm

The carddav server that is been used is Calendar and Contacts Server http://calendarserver.org/, which i find strange that synology didn't open it up to include the calender part of the which would then be accessible from

Some Clients
webcal://YOURDOMIN?IP:8008/calendars/

others
webcal://YOURDOMIN?IP:8008/calendars/

lol the caldavd.plist
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">


Synology you need to stop joking around with half heartedness may as-well just called it Calendar and Contacts Server and open up it to what it was meant to be.


ROFLMAO :lol:

Ok this is how to enable the caldav part of this package so you get the carddav and caldav from same package, go to


Code: Select all

/var/packages/CardDAVServer/target/etc


open

Code: Select all

syno_caldavd.plist


at line 32 change

Code: Select all

    <!-- Enable Calendars -->
    <key>EnableCalDAV</key>
    <false/>


to

Code: Select all

    <!-- Enable Calendars -->
    <key>EnableCalDAV</key>
    <true/>


restart the package then i used my iphone to log you will see default cal "calendar/" i then create extra calenders from within the iphone calender app.

access calender can be done with

http://YOURDOMIN?IP:8008/calendars/user ... /calendar/
http://YOURDOMIN?IP:8008/principals/__u ... xxxxxxxxx/

you can get all these url by just login in from the browser

YOU DO THIS AT YOUR OWN RISK!!
If you have never worked with apple calender server then I wouldn't go down this route, next i be looking at setting them email invite notification
DS713+ 4GB Ram linked to Raspberry Pi V2 Samba4 PDC & Cubieboard A20 Samba4 BDC.
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 18185
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: carddav in 5.1

Postby HarryPotter » Thu Sep 25, 2014 5:34 pm

Ey man, this is a fantastic find! Calendar and Addressbook work fine! Tested on an android S4 with CalDAV Sync Free Beta and CardDAV free Beta

Thank you.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS415+ / DSM 6.1.1-15101-1 / ST4000VN000-2AH166
DS713+ / DSM 6.1.1-15101-1 / HD501LJ + HD502IJ (RAID0)
DS712+ / DSM 6.1-15047-2 / HD154UI + ST31000340AS (RAID0)

2 Squeezebox 3 + Boom

APC Smart UPS SUA750i
User avatar
importedprogrammer
Versed
Versed
Posts: 287
Joined: Mon Sep 01, 2008 10:18 am

Re: carddav in 5.1

Postby importedprogrammer » Thu Sep 25, 2014 5:54 pm

HarryPotter wrote:Ey man, this is a fantastic find! Calendar and Addressbook work fine! Tested on an android S4 with CalDAV Sync Free Beta and CardDAV free Beta

Thank you.



not really a great find, when I saw the carddav login with my browser I know right away it was the same calender/carddav that Apple uses, and because of that I knew that synology had limited it some where, like I said I'll be looking into opening it right up to how I used it on my Mac osx lion/mountain lion server, that same file also holds the key to enable invites notifications and acceptance, but need to get it right 100%


I'll also be looking at export to ics
DS713+ 4GB Ram linked to Raspberry Pi V2 Samba4 PDC & Cubieboard A20 Samba4 BDC.
User avatar
importedprogrammer
Versed
Versed
Posts: 287
Joined: Mon Sep 01, 2008 10:18 am

Re: carddav in 5.1

Postby importedprogrammer » Thu Sep 25, 2014 6:48 pm

Ok, got some more info here around line 534

This control notification for invites.

It is best to create email address for this, ei invites@YOURDOMAIN.COM, carddav@YOURDOMAIN.COM

Code: Select all

      <!-- iMIP protocol options -->
      <key>iMIP</key>
      <dict>
        <key>Enabled</key>
        <false/>
        <key>MailGatewayServer</key>
        <string>localhost</string>
        <key>MailGatewayPort</key>
        <integer>62310</integer>
        <key>Sending</key>
        <dict>
          <key>Server</key>
          <string/>
          <key>Port</key>
          <integer>587</integer>
          <key>UseSSL</key>
          <true/>
          <key>Username</key>
          <string/>
          <key>Password</key>
          <string/>
          <key>Address</key>
          <string/> <!-- Address email will be sent from -->
        </dict>
        <key>Receiving</key>
        <dict>
          <key>Server</key>
          <string/>
          <key>Port</key>
          <integer>995</integer>
          <key>Type</key>
          <string/> <!-- Either "pop" or "imap" -->
          <key>UseSSL</key>
          <true/>
          <key>Username</key>
          <string/>
          <key>Password</key>
          <string/>
          <key>PollingSeconds</key>
          <integer>30</integer>
        </dict>
        <key>AddressPatterns</key>
        <array>
          <string>mailto:.*</string>
        </array>
      </dict>

    </dict>

to

Code: Select all

      <!-- iMIP protocol options -->
      <key>iMIP</key>
      <dict>
        <key>Enabled</key>
        <false/>
        <key>MailGatewayServer</key>
        <string>localhost</string>
        <key>MailGatewayPort</key>
        <integer>62310</integer>
        <key>Sending</key>
        <dict>
          <key>Server</key>
          <string/>
          <key>Port</key>
          <integer>24 or 465</integer>
          <key>UseSSL</key>
          <true/>
          <key>Username</key>
          <string>YOURUSERNAME</string>
          <key>Password</key>
          <string>YOURUSERPASSWORD</string>
          <key>Address</key>
          <string>USER@YOURDOMAIN.COM</string>
        </dict>
        <key>Receiving</key>
        <dict>
          <key>Server</key>
          <string>http://YOURDOMAIN.COM</string>
          <key>Port</key>
          <integer>993</integer>
          <key>Type</key>
          <string>imap</string>
          <key>UseSSL</key>
          <true/>
          <string>YOURUSERNAME</string>
          <string/>
          <string>YOURUSERPASSWORD</string>
          <string/>
          <key>PollingSeconds</key>
          <integer>30</integer>
        </dict>
        <key>AddressPatterns</key>
        <array>
          <string>mailto:.*</string>
        </array>
      </dict>

    </dict>

around line 299, this control resouces, the resources.xml whould have a list like Meeeting room, Use of Tv or games console.

The sting line would need to be change to /var/packages/CardDAVServer/target/etc/resources.xml and also the xml will need to be created

see here on how it should look
https://svn.calendarserver.org/reposito ... resources/

Code: Select all

    <!-- Resource and Location Service -->
    <key>ResourceService</key>
    <dict>
      <key>Enabled</key>
      <false/>
      <key>type</key>
      <string>twistedcaldav.directory.xmlfile.XMLDirectoryService</string>

      <key>params</key>
      <dict>
        <key>xmlFile</key>
        <string>/etc/caldavd/resources.xml</string>
      </dict>
    </dict>


Security risk at line 365, best use ssl or suffer u have been warned

Code: Select all

      <!-- Clear text; best avoided -->
      <key>Basic</key>
      <dict>
        <key>Enabled</key>
        <true/>
      </dict>


at line 463 , this is the jabber push notication server that apple uses may take a look at cross building that or getting it going with synology own push

Code: Select all

    <!--
        Notifications
      -->

    <key>Notifications</key>
    <dict>
      <!-- Time spent coalescing notifications before delivery -->
      <key>CoalesceSeconds</key>
      <integer>3</integer>

      <key>Services</key>
      <dict>
        <key>XMPPNotifier</key>
        <dict>
          <!-- XMPP notification service -->
          <key>Service</key>
          <string>twistedcaldav.notify.XMPPNotifierService</string>
          <key>Enabled</key>
          <false/>

          <!-- XMPP host and port to contact -->
          <key>Host</key>
          <string>xmpp.host.name</string>
          <key>Port</key>
          <integer>5222</integer>

          <!-- Jabber ID and password for the server -->
          <key>JID</key>
          <string>jid@xmpp.host.name/resource</string>
          <key>Password</key>
          <string>password_goes_here</string>

          <!-- PubSub service address -->
          <key>ServiceAddress</key>
          <string>pubsub.xmpp.host.name</string>
        </dict>
      </dict>
    </dict>
DS713+ 4GB Ram linked to Raspberry Pi V2 Samba4 PDC & Cubieboard A20 Samba4 BDC.
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 18185
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: carddav in 5.1

Postby HarryPotter » Thu Sep 25, 2014 9:49 pm

importedprogrammer wrote:not really a great find

Indeed :( It doesnt really sync. The calendar stays empty.

I can connect and get 4 different calendars or whatever it is: calendar, notification, "user", and inbox. I can sync all but everything stays empty.
I can import an ics file (104 entries) to calendar (with ical import/export caldav), it looks like everything is ok, the events appear on the android calendar, but if I sync on another device, the calendar is still empty.
If I use the empty calendar and add an event, then sync, on the other device nothing arrives.

So for now I will go on with baikal.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS415+ / DSM 6.1.1-15101-1 / ST4000VN000-2AH166
DS713+ / DSM 6.1.1-15101-1 / HD501LJ + HD502IJ (RAID0)
DS712+ / DSM 6.1-15047-2 / HD154UI + ST31000340AS (RAID0)

2 Squeezebox 3 + Boom

APC Smart UPS SUA750i
mraky
Versed
Versed
Posts: 252
Joined: Thu Feb 23, 2012 11:49 am
Contact:

Re: carddav in 5.1

Postby mraky » Thu Sep 25, 2014 10:46 pm

HarryPotter wrote:
importedprogrammer wrote:not really a great find

Indeed :( It doesnt really sync. The calendar stays empty.

I can connect and get 4 different calendars or whatever it is: calendar, notification, "user", and inbox. I can sync all but everything stays empty.
I can import an ics file (104 entries) to calendar (with ical import/export caldav), it looks like everything is ok, the events appear on the android calendar, but if I sync on another device, the calendar is still empty.
If I use the empty calendar and add an event, then sync, on the other device nothing arrives.

So for now I will go on with baikal.


why do you need caldav as part of this package so much. caldav is avaiable in synology since long time.

Return to “Official Synology Packages”

Who is online

Users browsing this forum: No registered users and 3 guests