MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-CalDAV

    Scheduled Pinned Locked Moved Productivity
    93 Posts 9 Posters 21.9k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MMRIZE
      last edited by

      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.ics 
      

      You can use this URL for your calendar modules.

      Details : https://github.com/MMRIZE/MMM-CalDAV

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        GregoryWest @MMRIZE
        last edited by

        @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?

        S 1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @GregoryWest
          last edited by

          @gregorywest did u make a ~/MagicMirror/CALDAV folder?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            GregoryWest @sdetweil
            last edited by

            @sdetweil DOH always the easy stuff I miss… will try tonight

            G 1 Reply Last reply Reply Quote 0
            • G Offline
              GregoryWest @GregoryWest
              last edited by

              @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?

              S G 2 Replies Last reply Reply Quote 0
              • S Away
                sdetweil @GregoryWest
                last edited by sdetweil

                @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://

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • G Offline
                  GregoryWest @GregoryWest
                  last edited by

                  @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.

                  S 1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @GregoryWest
                    last edited by

                    @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

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    G 1 Reply Last reply Reply Quote 0
                    • G Offline
                      GregoryWest @sdetweil
                      last edited by

                      @sdetweil really confused now. you need the /CALDAV/ folder removed. leathe the config.js as it is?

                      S 1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @GregoryWest
                        last edited by

                        @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.

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        G 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 9
                        • 10
                        • 1 / 10
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy