← Back to team overview

ubuntu-phone team mailing list archive

Re: ownCloud app.

 

On 17/09/14 20:51, Jelmer Prins wrote:

Im very interested
I'm setting up owncloud atm

Sent from Blue Mail <http://r.bluemailapp.com>

On 17 Sep 2014, at 12:39, Mitchell Reese <projects@xxxxxxxxxxxxxxxxxxxxx <mailto:projects@xxxxxxxxxxxxxxxxxxxxx>> wrote:

    If anyone's interested, I've managed to get a rough calendar sync
    happening through owncloud on my Nexus 4. Got no response to my last
    post on this mailing list, so I'm not going to bother typing out
    anything unless people are interested. If you want details, let me know.

    Cheers,

    Mitchell

Grooviness. I'm using rtm-14.09. Loving it. I had to manually install the debs from launchpad for owncloudcmd for file syncing - needed libowncloudsync0, owncloud-client, & owncloud-client-cmd. Probably could have edited the sources.list file and enabled the standard armhf repos, but instead I installed the debs. Owncloud is not in the rtm repos. I'm using owncloudcmd at the moment as a cron job to sync hourly. Yep folks, it's a writeable image.

For calendar sync, below is the syntax. Once set-up, you can run the bottom command as a cron job. It's fiddly, but it works. The variables "MyCalendar" "curious-owncloud" and "froggy" can be changed to suit your taste. Providing they are consistent, and are different from each other, anything should work. You will see MyCalendar in your calendar app, which can be synced by running the last command. Lastly, anything in parenthesis needs your own details there, but do NOT include the parenthesis when running the command. Good luck.


----Code--------
#Create Calendar
syncevolution --create-database backend=evolution-calendar database=MyCalendar

#Create Peer
syncevolution --configure --template webdav username="yourusername" password="yourpoassword" syncURL="url-to-owncloud"/remote.php/caldav/calendars/username/defaultcalendar keyring=no target-config@curious-owncloud

#Create New Source
syncevolution --configure backend=evolution-calendar database=MyCalendar @default froggy

#Add remote database
syncevolution --configure database="url-to-owncloud"/remote.php/caldav/calendars/username/defaultcalendar backend=caldav target-config@curious-owncloud froggy

#Connect remote calendars with local databases
syncevolution --configure --template SyncEvolution_Client syncURL=local://@curious-owncloud username= password= curious-owncloud froggy

#Add local database to the source
syncevolution --configure sync=two-way database=MyCalendar curious-owncloud froggy

#Start first sync
syncevolution --sync refresh-from-remote curious-owncloud froggy

#Repeat syncing
syncevolution --sync two-way curious-owncloud froggy




Follow ups

References