calcurse icon indicating copy to clipboard operation
calcurse copied to clipboard

calcurse-caldav not downloading from Nextcloud

Open Htech155 opened this issue 6 years ago • 8 comments

I am unable to get caldav to sync with my nextcloud server, I am uncertain where the problem stems from. current config I have for caldav: [General] Binary = calcurse Hostname = [hostname] Path = /remote.php/dav/calendars/[username]/ DryRun = No InsecureSSL = No SyncFilter = cal Verbose = Yes AuthMethod = basic [Auth] Username = [username] Password = [password]

This current config when run with the --init=keep-remote does not give any errors, but does not download anything from the server.

When I change the path to /remote.php/dav/calendars/[username]/[calander] I get a http 400 error.

On nextcloud I get an error as follows "Sabre\DAV\Exception\BadRequest: A calendar-query REPORT on a calendar with a Depth: 0 is undefined. Set Depth to 1"

Htech155 avatar Mar 02 '19 21:03 Htech155

Are you using a very old version of the calcurse-caldav script? This sounds like a bug that has been fixed back in late 2016; see issue #38 and commit e76b96c9 for details.

lfos avatar Mar 03 '19 08:03 lfos

FYI I've managed to make it work with nextcloud (and I have a "/" at the end of the PATH, not sure if that's important)

Psycojoker avatar Apr 16 '19 22:04 Psycojoker

you need to add a calendar name to the end of the path Path = /remote.php/dav/calendars/[username]/calendar/

matt-horwood-mayden avatar Nov 08 '19 14:11 matt-horwood-mayden

I have the following line Path = /remote.php/dav/calendars/username/

and I want to view all my calendars, not just one. I run

calcurse-caldav --init=keep-remote

because I don't want anything to corrupt my nextcloud calendar. I get the output

Connecting to cloud.mydomain.com...
Removing all local calcurse objects...
Saving synchronization database to /home/me/.calcurse/caldav/sync.db...
0 items imported, 0 items removed locally.
0 items exported, 0 items removed from the server.

I'm not sure the correct way to do this

GideonWolfe avatar Nov 21 '19 07:11 GideonWolfe

calcurse does not yet support multiple calendars. As of now, the only workaround is to sync each individual calendar to a different data directory and browse them individually with calcurse.

lfos avatar Nov 21 '19 23:11 lfos

Fair enough. I'd love to see this feature, because nextcloud and other services sync multiple calendars. I'm currently using khal, which handles that fine but I prefer the UI of calcurse

GideonWolfe avatar Nov 22 '19 16:11 GideonWolfe

Sure. The core problem is not the synchronization but moreso the fact that calcurse itself cannot handle multiple calendars yet.

lfos avatar Nov 22 '19 16:11 lfos

This would be an awesome feature, I would love to be able to manage all of my calendars from calcurse. Thanks for all your hard work on this project!

jforseth210 avatar Sep 15 '21 04:09 jforseth210