Read the statement by Michael Teeuw here.
Problems with calender and Nextcloud
-
@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
-
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) -
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?
-
@kruf said in Problems with calender and Nextcloud:
@bdream has CALENDERNAME to be changed? Or is the phrase after that important?
All UPPERCASE need to change as your calendar.
Exml for the birthdays from my personal calendar:url: "https://NAME:PASSWORD@DOMAIN.TLD/Nextcloud/remote.php/dav/calendars/myname/pers%c3%b6nlich?export"You have to change
NAME -> name you access your calendar
PASSWORD -> your Password
DOMAIN.TLD -> the url where ever you have your domain with nextcloud installed
!!! If you don’t use default installation of nextcloud you might change Nextcloud also!!!
CALENDARNAME -> How you named the calendar (expl.: myname, yourname, yourwivesname, yoursonsname…)I have different calendars for all people in my family so I have for each calendar diffent NAME, PASSWORD, CALENDARNAME
-
hey together,
i have the same issue here, but on my side i had a working system in the past.
My MagicMirror was broken and offline for half an year. Now he is up and running. I made an update to the current MM Version. For Nextcloud i am always on the current version.
So, now the problem is that on MM no Calender content will shown. I did not change somethink on the configuration. I use the same links what you mentioned here. When i put it in a browser i can download the ICS file and the content is correct.
It is a bit pitty that i had a software update on Nextcloud and MM side. Any ideas what i can test ?
-
two ways to see things
1… use npm start to start the mirror, not pm2… then messages will be displayed on the terminal window.
you should see the fetcher for calendar created and any errors in the fetch process
2. on the Mirror UI do ctrl-shift-i to open the developers window, and then select the tab labeled console, and scroll up… you can also filter the messages, by putting part of the module name in the filter field.
‘calendar’ for example (no quotes) -
@sdetweil
Great, Thanks for the instructions.I try step one and obviously i get an error during loading calender content (Link to calender replaced):
Calendar Error. Could not fetch calendar: CALENDER LINK { Error: write EPROTO 19413 98784:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:../../vendor/node/deps/openssl/openssl/ssl/record/rec_layer_s3.c:1407:SSL alert n umber 70 at WriteWrap.afterWrite [as oncomplete] (net.js:833:14) errno: 'EPROTO', code: 'EPROTO', syscall: 'write' }For Step 2 i have the problem to have only access with an putty terminal at the moment.
Any idea so far what the error message means ?
-
@Pakmann said in Problems with calender and Nextcloud:
version:…/…/vendor/node/deps/openssl/openssl/ssl/record/rec_layer_s3.c:1407:SSL
how did u configure the url in the config.js
http://
or
https:// -
My nextcloud server accept only https connections. I checked it with the config.js - it is https
-
@Pakmann try
wget -o your nextcloud_urlon the terminal window…
i think the calendar fetcher is having trouble negotiating the ssl (https) handshake…
-
@sdetweil said in Problems with calender and Nextcloud:
wget -O
Maybe it is to late on my side… The request told me i dont have an URL in the request…
Request like below.wget -O https://www.google.de -
but I said
wget -o your nextcloud_urlwhatever the https://… nextcloud thing is in config.js
-
yes, i try the complete URL for download die ICS file from nextcloud kalender. Include credentials inside the link:
wget -O https://USER:PASSWORD@DOMAIN/remote.php/dav/calendars/USER/personal/?export wget: URL fehlt Aufruf: wget [OPTION]... [URL] … -
@Pakmann just remove the -o parm
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login