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

OwnCloud integration

Scheduled Pinned Locked Moved Unsolved General Discussion
13 Posts 7 Posters 9.9k Views 7 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.
  • J Offline
    jan73
    last edited by May 22, 2016, 9:29 PM

    I’d like to use OwnCloud as the calendar service for the MagicMirror, and would like to find out if there are others, that use OwnCloud as backend as well. Similarly OwnCloud could be used as a server backend for other data, like todo lists or even new feeds. I would like to understand if others also interesting in using OwnCloud.

    1 Reply Last reply Reply Quote 0
    • P Offline
      paviro Admin
      last edited by May 22, 2016, 11:54 PM

      Doesn’t Owncloud provide a ical url? You could use that without any problem in the calendar module :)

      We're all stories in the end. Just make it a good one, eh?

      – The Doctor

      1 Reply Last reply Reply Quote 0
      • D Offline
        DirkS
        last edited by May 23, 2016, 7:35 AM

        as i can see in my owncloud they are providing CalDAV adresses. I’m not using the calendar function but should be no problem to integrate.

        1 Reply Last reply Reply Quote 0
        • S Offline
          Shampooman
          last edited by Jun 2, 2016, 8:33 AM

          Hello,
          I would also like to sync the MM with my owncloud calendar. The bad news is, that you need a username and a password for the owncloud ical file. I didn’t find an option to enter a user and password in the MM-Modul. So I tried to do a workaround (this project is my first expirience with JS, so it’s pretty hard for me to understand.) I found a little bash script to download the ical file to my homefolder. But I can’t enter the homefolder location with the MM-Modul. Perhaps someone has a good idea to do this job. :)

          #!/bin/bash
          ical=‘http://ownclouddomain.de/remote.php/caldav/calendars/admin/blubb?export’
          dir=/home/pi/
          user=‘admin’
          pw=‘blablabla’
          curl $ical -u$user:$pw > $dir’MYical.ics’

          1 Reply Last reply Reply Quote 0
          • S Offline
            Shampooman
            last edited by Jun 2, 2016, 12:35 PM

            I found another important information. It’s still very dirty, and everyone who knows how to do something like this will just laugh about me, but I got a working way to import my owncloud calendar. I just changed the directory to /home/pi/MagicMirror/modules/default/calendar/public
            and added the following to the config.js:

                                config: {
                                        calendars: [
                                                {
                                                        symbol: 'calendar-check-o ',
                                                        url: 'http://127.0.0.1:8080/calendar/MYical.ics'
                                                }
                                        ]
                                }
            

            this is my bash script now:

            #!/bin/bash
            ical='http://ownclouddomain.de/remote.php/caldav/calendars/admin/blubb?export’
            dir=/home/pi/MagicMirror/modules/default/calendar/public
            user='admin’
            pw=‘blablabla’
            curl $ical -u$user:$pw > $dir’MYical.ics’

            so you only have to make a cronjob now, which starts the bash script.

            I hope this helps someone, even if it is very, very dirty… :)

            1 Reply Last reply Reply Quote 0
            • P Offline
              paviro Admin
              last edited by Jun 2, 2016, 12:59 PM

              Why not do username:password@yourdomain.com in the config?

              We're all stories in the end. Just make it a good one, eh?

              – The Doctor

              S 1 Reply Last reply Jun 2, 2016, 1:11 PM Reply Quote 0
              • S Offline
                Shampooman @paviro
                last edited by Jun 2, 2016, 1:11 PM

                @paviro said in OwnCloud integration:

                Why not do username:password@yourdomain.com in the config?

                because it doesn’t work. :) I got this Error in the console:
                logger.js:23 Calendar Error. Could not fetch calendar: user:password@myowncloud.de/remote.php/caldav/calendars/user/calendar?export

                1 Reply Last reply Reply Quote 0
                • P Offline
                  paviro Admin
                  last edited by Jun 2, 2016, 1:50 PM

                  Can you try executing curl -L http://user:password@myowncloud.de/remote.php/caldav/calendars/user/calendar?export in a shell?

                  We're all stories in the end. Just make it a good one, eh?

                  – The Doctor

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    Shampooman
                    last edited by Jun 2, 2016, 1:57 PM

                    hmmm… that works…

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Shampooman
                      last edited by Jun 2, 2016, 1:59 PM

                      ok, now it works completly. Perhaps I had a mistake inside my code. Thank you for your help!

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