Collection of node-red nodes to download Calendars (CalDAV) and Contacts (CardDAV) and up- / download / list files (WebDAV) from / to nextcloud

Detailed information can be found in the build in info of each node

CalDAV

  • based on dav package using CalDAV protocol
  • reads all calendars and sends a message for each calendar
  • reads a specified calandar if set in node properties or incoming message

CardDAV

  • based on dav package using CalDAV protocol
  • reads all addressbooks and sends a message for each adressbook
  • reads a specified addressbook if set in node properties or incoming message

WebDAV

  • based on webdav package using WebDAV protocol
Read content of a server directory
  • reads content of the users root directory if no folder is specified
  • reads content of a given directory specified in node properties or incoming message
Upload a file to a server directory
  • uploads a file to nextcloud server
  • absolute path of upload file can be set in node properties or incoming message
  • server directory can be set in node properties or incoming message
Download a file from a server directory
  • downloads a file from nextcloud server
  • file on server can be set in node properties or incoming message
  • sends file as binary buffer to the output. File can be stored using file node
[{"id":"502b01d3.dd73c","type":"inject","z":"dc35aed1.03fd1","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":120,"y":60,"wires":[["263d9449.1a21cc"]]},{"id":"39b22bad.b5b014","type":"debug","z":"dc35aed1.03fd1","name":"","active":true,"console":"false","complete":"false","x":530,"y":60,"wires":[]},{"id":"a53297a8.6a6798","type":"inject","z":"dc35aed1.03fd1","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":120,"y":120,"wires":[["fa78ab37.9147d8"]]},{"id":"f9c858d7.469f28","type":"debug","z":"dc35aed1.03fd1","name":"","active":true,"console":"false","complete":"false","x":530,"y":120,"wires":[]},{"id":"50a16ff1.cdae1","type":"inject","z":"dc35aed1.03fd1","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":120,"y":240,"wires":[["e2b27e7d.d34c7"]]},{"id":"4e99065a.4fb7a8","type":"debug","z":"dc35aed1.03fd1","name":"","active":true,"console":"false","complete":"false","x":530,"y":240,"wires":[]},{"id":"fa78ab37.9147d8","type":"nextcloud-carddav","z":"dc35aed1.03fd1","rname":"CardDAV","server":"71711bdf.630884","addressBook":"","x":280,"y":120,"wires":[["f9c858d7.469f28"]]},{"id":"901cbb4.0278648","type":"inject","z":"dc35aed1.03fd1","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":120,"y":300,"wires":[["406f2d31.50eb34"]]},{"id":"347d6585.4d787a","type":"debug","z":"dc35aed1.03fd1","name":"","active":true,"console":"false","complete":"false","x":710,"y":300,"wires":[]},{"id":"de7c0707.c81a88","type":"nextcloud-webdav-in","z":"dc35aed1.03fd1","uname":"WebDAV in","server":"71711bdf.630884","filename":"/home/torsten/Bilder/at.svg","directory":"dev","x":530,"y":300,"wires":[["347d6585.4d787a"]]},{"id":"406f2d31.50eb34","type":"function","z":"dc35aed1.03fd1","name":"set filename + dir","func":"msg.filename = '/home/test/Bilder/example.jpg'\nmsg.directory = 'Backup'\nreturn msg","outputs":1,"noerr":0,"x":310,"y":300,"wires":[["de7c0707.c81a88"]]},{"id":"263d9449.1a21cc","type":"nextcloud-caldav","z":"dc35aed1.03fd1","nname":"CalDAV","server":"71711bdf.630884","calendar":"","x":280,"y":60,"wires":[["39b22bad.b5b014"]]},{"id":"e2b27e7d.d34c7","type":"nextcloud-webdav-list","z":"dc35aed1.03fd1","wname":"WebDAV list","server":"71711bdf.630884","directory":"Ordner Urlaub Jan","x":290,"y":240,"wires":[["4e99065a.4fb7a8"]]},{"id":"441140fb.5f2","type":"nextcloud-webdav-out","z":"dc35aed1.03fd1","wname":"WebDAV out","server":"71711bdf.630884","filename":"/Ordner Urlaub Jan/IMG_0537.JPG","x":290,"y":360,"wires":[["5e092d99.33a414"]]},{"id":"df0af0f0.f0924","type":"inject","z":"dc35aed1.03fd1","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":120,"y":360,"wires":[["441140fb.5f2"]]},{"id":"5e092d99.33a414","type":"file","z":"dc35aed1.03fd1","name":"","filename":"/home/test/note.txt","appendNewline":false,"createDir":false,"overwriteFile":"true","x":550,"y":360,"wires":[]},{"id":"71711bdf.630884","type":"nextcloud-credentials","z":"","cname":"Nextcloud","address":"https://nextcloud.test.de"}]

Flow Info

Created 7 years, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x4)
  • file (x1)
  • function (x1)
  • inject (x5)
Other
  • nextcloud-caldav (x1)
  • nextcloud-carddav (x1)
  • nextcloud-credentials (x1)
  • nextcloud-webdav-in (x1)
  • nextcloud-webdav-list (x1)
  • nextcloud-webdav-out (x1)

Tags

  • owncloud
  • nextcloud
  • WebDAV
  • CalDAV
  • CardDAV
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option