Read the statement by Michael Teeuw here.
MMM-CalDAV
-
MMM-CalDAV
CalDav broker for MagicMirror
Concept & Motivation
Some CalDAV server doesn’t provide ICAL format, so it cannot be used with MM’s calendar modules.
This module enables MM to convert your CalDAV calendar data into the popular ICAL(
.ics) file. Converted ICAL output is hosted on MM itself.It has no screenshot
Configuration
{ module: "MMM-CalDAV", config: { name: "company", serverUrl: "http://gw.mycomp.com/principals/users/eouia0819@gmail.com", credentials: { username: "eouia0819@gmail.com", password: "myPassWord!@#$", }, vcalendarHeader: false } }, // If you want additional extra CalDAV connection, just describe it once more. (or multiple times as you need.) { module: "MMM-CalDAV", config: { name: "homenas", serverUrl: "http://mynas.synology.me:5000/caldav/eouia", credentials: { username: "eouia", password: "AnotherPassword!@#$", }, calendarFilter: ["My Calendar", "School Schedule"] } },Then it will provide the ICAL URL like;
https://localhost:8080/CALDAV/company.ics https://localhost:8080/CALDAV/homenas.icsYou can use this URL for your calendar modules.
Details : https://github.com/MMRIZE/MMM-CalDAV
-
@mmrize Thanks for the reply!! I put in the code, and put the following into my config.txt:
{ module: "MMM-CalDAV", possition: "top right", config: { name: "gregcal", serverUrl: "https://full.candev.url.com", credentials: { username: "---------------", password: "-------------", }, } }, { module: "calendar", header: "Gregs Calendar", position: "top_right", config: { colored: true, calendars: [ { url: "https://localhost:8080/CALDAV/gregcal.ics", symbol: 'check', }, ] } },MMM-CalDAV reports on the screen:
module_6_MMCalDAV and no calendar information is displayed. Also opening https://MMMip:8080/CALDAV/gregcal.ics does not open anything either.Any hints?
-
@gregorywest did u make a ~/MagicMirror/CALDAV folder?
-
@sdetweil DOH always the easy stuff I miss… will try tonight
-
@gregorywest OK Put CALDAV folder inside the ~/MagicMirror folder. Still get the same error messages on the MMM screen. When I try and web browse into the ics file I get a connection refused error. Is it possible I have a firewall causing me issues?
-
@gregorywest browse from where?
the default settings in mm are only apps INSIDE the mm machine can connect
so,
change the address and ipWhitelist options in config.js
address:"0.0.0.0", ipWhitelist:[],this allows any computer, phone,… on your local network to connect to the mm system
also, by default, mm is NOT https enabled, so the the calendar url should be http://
-
@gregorywest created the CALDAV folder. put in the folder a copy of my ics file. This ics file is now being displayed. the problem still remain that MMM_CalDAV does not seem to be updating the ics file at all. still have the module6 message on my screen.
-
@gregorywest ok looking at the code, I led u astray…
the module generates the file, but presents it when called at the /CALDAV/???.ics url
so, remove the CALDAV folder, but leave that url in the calendar module config
and it should work. there is a bug in the doc, as the url server is set on http, but the doc says https
-
@sdetweil really confused now. you need the /CALDAV/ folder removed. leathe the config.js as it is?
-
@gregorywest yes, the module creates a server at /CALDAV, and when the calendar module uses that URL, this module returns an ICS file. live… (same as if you had been using a google calendar)
this is different than the other converters that dump a file in a folder.
-
@sdetweil WOW its working!!! Thanks for your patience. Looking good. Something just occured to me. Can I do this with multiple users/calendars? The plan is for 5 calendars to be on the screen, they are all coming from the same SoGo server.
-
@gregorywest that I do not know
-
@sdetweil I noticed a different issue now. I was updating my calendar in SoGo, but none of the updates are showing up on MMM. This is even the case after a reboot of MMM.
The problem of the multiple calendars might be a show stopper. Will keep muddling through this.
Greg
-
@gregorywest ok, for multiple cals, u use another instance of the module in config.js
his doc shows that…update? should be the updateInterval parm… default 15 mins it says
-
@sdetweil
Thanks your kind help. I was absent for days. So I couldn’t support this issue.@GregoryWest
When you want to get several calendars(or accounts), just add this module again in your config.
And to refresh calendar, waitupdateInterval.
And with rebooting, usually last result will be shown after reboot.(CalDAV parsing is quite slow ). Generally it will takeupdateIntervalafter reboot, the change will be displayed. -
@gregorywest said in MMM-CalDAV:
@sdetweil WOW its working!!! Thanks for your patience. Looking good. Something just occured to me. Can I do this with multiple users/calendars? The plan is for 5 calendars to be on the screen, they are all coming from the same SoGo server.
What you want is;
- 5 CalDAV calendars from one account (It has more than 5 calendars) as one iCal Calendar : Just use
calendarFilter - 5 CalDAV calendaras from one account as 5 iCal Calendars: Use this module 5 times with
calendarFilter - 5 CalDAV calendars from several accounts as one summarized iCal Calendar : Sorry, impossible with this module.
- 5 CalDav calendars from several accounts as 5 iCal Calendars : Use method 2.
- 5 CalDAV calendars from one account (It has more than 5 calendars) as one iCal Calendar : Just use
-
UPDATE 2.0.0
- Newly rebuilt from scratch
- OAUTH supported (For Google Calendar)
- Multi servers/calendars in one module.
- more secure and efficiently
Now, you can use Google Calendar in the default calendar module(and more).
https://github.com/MMRIZE/MMM-CalDAV -
@matt216
More details about your environment are needed to know what happens.Let’s start with the concept.
Some CALDAV Providers don’t serve any public iCAL(.ics) URL to be consumed externally. You don’t need this module if your CALDAV service can host iCAL URLs. I have no idea about
baikal, but I think you know whether that service would provideiCALor not.MMM-CALDAV can access the CALDAV server(which would not host any public iCAL URL) to get target calendar events. Then, this module converts the event data to a real iCAL file(.ics). And this module also hosts that file as a URL accessible from the default
calendarmodule or some iCAL consuming modules with security. MMM-CALDAV will work like a private iCAL provider service.So, to show your event on MM, you may need both
MMM-CALDAVandcalendarmodule together..envfile is needed to connect/authenticate CALDAV server and some security features. Calendar events are very private so I want to block the security hole on working this module. You should put.envinMMM-CALDAVdirectory.So, where are you stuck now? Tell me what happens.
-
@MMRIZE Thank you for your help, but I managed to figure out getting baikal to generate the ics file, so I don’t need this module anymore.
Thanks anyway
-
Update 2.1.0
- Birthday calendar enabled. (
CardDAVimplementation) - Some code refactoring.
calendars: [],is changed totargets: []. you have to reconfigure yourconfig.js
Now you can get
Birthdayscalendar from iCloud or Google Contacts. (Of course, otherCardDAVsupported contacts services.) - Birthday calendar enabled. (
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