• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-Calendar not showing calendar

Scheduled Pinned Locked Moved Solved Troubleshooting
3 Posts 2 Posters 2.3k Views 2 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.
  • C Offline
    castletonroad
    last edited by castletonroad Jun 9, 2019, 6:20 AM Jun 9, 2019, 5:03 AM

    Hi,

    I have the default MMM-Calendar module working fine with a Google ical link:

    url: "webcal://calendar.google.com/calendar/ical/MY_PRIVATE_ICAL_ADDRESS/basic.ics"
    

    I am now trying to view a CalDav calendar from NextCloud, with:

    url: "https://MY_DOMAIN.com/nextcloud/remote.php/dav/calendars/USER/personal?export",
        auth: {
        user: 'USER',
        pass: 'PASSWORD',
        method: 'basic'
        }
    

    As this does not work, I have exported/downloaded the Nextcloud CalDav calendar to a local .ics file:

    curl -L https://USER:PASSWORD@MY_DOMAIN.com/nextcloud/remote.php/dav/calendars/USER/personal?export > /var/www/html/calendars/personal.ics
    
    chown www-data:www-data /var/www/html/calendars/personal.ics
    

    …but still cannot get it to display, using:

    url: "webcal://127.0.0.1/calendars/personal.ics"
    

    I then tried this approach with the working Google calendar. I downloaded the Google basic.ics file, confirmed that it is accessible (via a web browser at https://127.0.0.1/calendars/basic.ics), but disappointingly, MMM-Calendar cannot display it using:

    url: "webcal://127.0.0.1/calendars/basic.ics"
    

    Is there anything obvious that I’m missing / should be doing?

    I’m trying to ditch Google and use my own servers, with Nextcloud providing the calendar, but can’t fathom why MMM-Calendar won’t take my Nextcloud link (CalDav being ?exported to .ics).

    In summary, my options appear to be to access direct the Nextloud calendar, or to download it and access it locally. Neither of these options seem to work; and accessing the working Google calendar, locally, does not work either, even though it is accessible by Apache.

    Please help… :(

    S 1 Reply Last reply Jun 9, 2019, 12:51 PM Reply Quote 0
    • S Away
      sdetweil @castletonroad
      last edited by sdetweil Jun 9, 2019, 1:00 PM Jun 9, 2019, 12:51 PM

      @castletonroad I’m not sure this will help, but the local mirror web server is not on port 80, but typically on 8080 (port setting in config.js)

      so, your url should be

      url: "http://127.0.0.1:8080/modules/calendars/basic.ics"
      

      and the mirror web server base directory is the modules folder… so your file would need to be located in that directory tree somewhere

      I downloaded my calendar, and it works fine locally

                url: "http://localhost:8086/modules/cals/basic.ics"
      

      my mirror is running on port 8086.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 3
      • C Offline
        castletonroad
        last edited by Jun 13, 2019, 3:17 AM

        @sdetweil

        Solved, thank you so much!

        Using port 8080, and placing the CalDav exported files (.ics format) in the …MagicMirror/modules/… tree is the answer.

        (Still unsure why I can’t view the CalDav directly, but I run an hourly script to download the calendars, so no real issue.)

        I am VERY happy! :)

        Thanks again.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          2/3
          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