MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

Problems with calender and Nextcloud



  • Hi,

    I got a Problem with the calender module, since it shows no dates.
    The standart calender works just fine, but when I try to connect my Nextcloud calender nothing shows. With my iPhone the link works, so I am sure it works.
    Had somebody the same expirience and knows some tips.

    Thank You
    kruf



  • @kruf said in Problems with calender and Nextcloud:

    Had somebody the same expirience and knows some tips.

    If I’m right you talk about standard calendar module and getting connected to your nextcloud.

    I have done my config as you can see and it works fine

    {
    	module: "calendar", 
    	header: "  WHAT CALENDAR YOU WILL SHOW", // see help for more information
    	position: "bottom_left",
    	config: {
    		colored: true,
    		displaySymbol: true,
    		wrapEvents: true,
    		fetchInterval: 120000,
    		fade: false,
     		fullDateEventDateFormat: "ddd DD. MMM",
    		maximumNumberOfDays: 30,
    		maximumEntries: 15,
    		maxTitleLength: 50,
    		displayRepeatingCountTitle: true,
    		fade: false,
    		timeFormat: "absolute",
    		dateFormat: "ddd DD. MMM - HH:mm",
    		dateEndFormat: "ddd DD. MMM - HH:mm",
    		showEnd: true,
    		joiningWord: "AT", // see help for more information
    		maxTitleLength: 500,
    		useRelativeDates: false,
    		getRelative: 6,
    		dayOfWeekFormat: "dddd",
    		urgency: 1,
    		calendars: [
    			{
    				symbol: "birthday-cake",
    				color: "#a9a9a9", 
    				url: "https://NAME:PASSWORD@DOMAIN.TLD/Nextcloud/remote.php/dav/calendars/CALENDARNAME/contact_birthdays?export"
    			},
    			{
    				symbol: "plane ",
    				color: "#ffd700", // gold
    				url: "https://www.schulferien.org/media/ical/deutschland/ferien_hessen_2019.ics?k=A1phwzkCPxzt2pDVDT3ZeJvHfv9hq0Wo39uxgoplWmpDqdjNn4diAxd9kVfib72HpVThoNV9WGIF3Pjs5BrYIpOZ2F97U0Mbdbo_c3mxjo0"
    			},
                   		]
    	}
    },
    

    If I’m wrong, please provide some information enable helpers to help.



  • @bdream
    thank you very much for your answer, I tried to use the link setup with the user and password in the name, but it does not work for me. I also tried to use a public link.
    I do not know why my dates do not appear.

    Greetings



  • @kruf said in Problems with calender and Nextcloud:

    I do not know why my dates do not appear.

    than start the config as first with only an official calendar as shown in the README.md on GitHub ad default value:

    config: {
    	colored: false,
    	coloredSymbolOnly: false,
    	calendars: [
    		{
    			url: 'http://www.calendarlabs.com/templates/ical/US-Holidays.ics',
    			symbol: 'calendar',
    			auth: {
    			    user: 'username',
    			    pass: 'superstrongpassword',
    			    method: 'basic'
    			}
    		},
    	],
    }
    

    If this don’t work your problem is on other place and as I said in my first post: “If I’m wrong, please provide some information enable helpers to help.”



  • @kruf so two things to test

    1. with the calendar URL, open a browser on the pi, and put in the URL… it should download the ICS file
      if not, u need to solve this part. Mirror does not run as any particular user, so it needs access without
      credentials (unless they are part of the actual url)

    2. I helped another user who did some download process, and then use the ics file locally, and had a similar problem. it turned out the ics reader is expecting windows line ends (cr+lf, \r\n), but the file had only unix line ends (lf, \n). so he had to do a unix2dos conversion as part of the download process



  • @bdream
    I tried your holiday calender in hessen, and it works. The standart calender also works just fine.



  • @kruf There is no download, it says "its a webdav interface and you need a client for it.
    Do you know how to do the conversion?





  • @kruf
    I use Nextcloud and have URL like this working.

    url: "https://NAME:PASSWORD@DOMAIN.TLD/Nextcloud/remote.php/dav/calendars/CALENDARNAME/contact_birthdays?export"
    
    url: "https://NAME:PASSWORT@DOMAIN.TLD/Nextcloud/remote.php/dav/calendars/CALENDARNAME/pers%c3%b6nlich?export"
    

    May this help you



  • @bdream has CALENDERNAME to be changed? Or is the phrase after that important?


Log in to reply