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 10.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.
    • S Offline
      Shampooman
      last edited by

      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
      • paviroP Offline
        paviro Admin
        last edited by

        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 Reply Quote 0
        • S Offline
          Shampooman @paviro
          last edited by

          @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
          • paviroP Offline
            paviro Admin
            last edited by

            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

              hmmm… that works…

              1 Reply Last reply Reply Quote 0
              • S Offline
                Shampooman
                last edited by

                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
                • C Offline
                  charliwest
                  last edited by

                  @Shampooman do you have this publicly anywhere? I have a bash script that does something I want an MMM to do but have no idea how to get it working and it looks to me thats what you are doing.
                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by

                    I can make the curl call work, adding a -k to it, to get around the certificate.
                    Can I do something similar in the module ?
                    Thanks.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      raymonvdm
                      last edited by raymonvdm

                      I`m using NextCloud and i figured it out using the following config

                                 {
                                          module: "calendar",
                                          header: "username",
                                          position: "top_left",
                                          config: {
                                              calendars: [
                                                 {
                                                   symbol: "calendar-check-o ",
                                                   url: "https://username:app_password@nexctcloud.domain.nl/remote.php/dav/calendars/username/8a757113-03ae-4d7a-a6a1-8db4350eee54_shared_by_username?export"
                                                  }
                                               ]
                      		}
                      	},
                      

                      I got the calander name from the webinterface by clicking on the dots right behind the specific calender.

                      Note: I am using a dedicated user to login to nextcloud. This user is recieving the “shared” calanders from the actual users. In this way i don`t need to login with my own nextcloud credentials

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