MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    Maximum File Size of ics FIle?

    Troubleshooting
    2
    10
    3255
    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
      Stef last edited by

      Hey everyone,

      i stumbled over the MagicMirror Project almost a year ago and was already then hooked!
      I am now currently building my own, but i got a problem with the Calender plugin.

      My main Google Calender won’t load. All i get is “Loading…”
      I tried to open the FIle via Chrome and it imediatly downloaded it (https://calendar.google.com/calendar/ical/myname%40gmail.com/private-key/basic.ics).

      The file size is 1,35MB - is this a problem for the mirror? Because any other File (like a Holiday ics from the web with 27KB or even my quick created test gmail account with only one appointment) will load and display the events on the mirror…

      Is there any way to fix this?

      I’m running the newest version of the MagicMirror on a Raspi 3
      PRETTY_NAME=“Raspbian GNU/Linux 9 (stretch)”
      NAME=“Raspbian GNU/Linux”
      VERSION_ID=“9”
      VERSION=“9 (stretch)”

      Any help is apreciated - even if it is a workaround…
      Thanks!

      N 1 Reply Last reply Reply Quote 0
      • N
        ninjabreadman @Stef last edited by ninjabreadman

        @Stef Just checked, and my largest calendar is 425Kb, so I can’t say what is “too big”.

        Is this from an online service like Google or Outlook? You may be able to use query parameters to specify start/end dates (edit: more detailed description and API links here) for your query to return fewer results. If not, apparently some CalDAV servers (like DAVDroid) also allow you to pass parameters for start/end dates for the calendar. You can then create a query to (e.g.) only return events for this month and next.

        Alternatively, you might instead look at this post. You may have to change the config for whatever service you’re using, but in vdirsyncer you can set start_date and end_date options which should slice your calendar into something reasonable that you can then serve locally from your Pi. It’s not as simple as pointing a module at a URL, but once set up with a cron job should be pretty reliable.

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        1 Reply Last reply Reply Quote 0
        • S
          Stef last edited by Stef

          @ninjabreadman (nice name btw)
          Thanks for your headsup.
          Yes this is directly from Google.
          Unfortuantley, adding the start/end dates won’t work. It seems to me, that i have to make my calendar public, in order to use this… and i do not want this.

          I’ll try to find the time to check out your other Hint with vdirsyncer. Looks easy enough.

          I’ll keep you posted!

          Thanks and a nice weekend

          1 Reply Last reply Reply Quote 0
          • S
            Stef last edited by

            Ok… I am stuck…

            The Google API creation wasn’t a problem, and installing the vdirsyncer worked well also.

            But now i am supposed to create a conifg file in ~/.vdirsyncer/config - but i get an error everytime, that this File or Folder can’t be found…

            If i run ls -l in usr/bin, i get the following output:
            lrwxrwxrwx 1 root root 30 Feb 3 21:32 vdirsyncer -> /home/pi/.local/bin/vdirsyncer

            So… it is an folder… but why can’t i access it??
            Am i missing something?

            thanks!

            N 1 Reply Last reply Reply Quote 0
            • N
              ninjabreadman @Stef last edited by ninjabreadman

              @Stef You first need to create the config file (i.e. via touch):

              touch ~/.vdirsyncer/config
              nano ~/.vdirsyncer/config
              

              Yes, .vdirsyncer exists, but config doesn’t (yet).

              Problem with config or JavaScript? Copy/paste it into JSHint.
              Check out the detailed walkthroughs on install, config, modules, etc.

              1 Reply Last reply Reply Quote 0
              • S
                Stef last edited by

                Yes i know 😞
                But everytime i enter

                touch ~/.vdirsyncer/config

                i get, that it can’t find the directory…
                (" touch: ‘/home/pi/.vdirsyncer/config’ kann nicht ber▒hrt werden: Datei oder Verzeichnis nicht gefunden")

                N 1 Reply Last reply Reply Quote 0
                • N
                  ninjabreadman @Stef last edited by ninjabreadman

                  @Stef Ah, i think you have the symlink to vdirsyncer but not the hidden folder, .vdirsyncer (in your home folder) for config options.

                  Type mkdir ~/.vdirsyncer then try again to create the config file.

                  Problem with config or JavaScript? Copy/paste it into JSHint.
                  Check out the detailed walkthroughs on install, config, modules, etc.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Stef last edited by

                    YES! Thanks!
                    I didn’t realised that…

                    1 Reply Last reply Reply Quote 0
                    • S
                      Stef last edited by

                      Uhoh… i almost forgot:
                      It all works like a charme now!

                      Thank you @ninjabreadman!

                      …Maybe i will write a litlle howto… but after all it was pretty straight forward.

                      This Thread can be closed now.

                      N 1 Reply Last reply Reply Quote 1
                      • N
                        ninjabreadman @Stef last edited by

                        @Stef That’s awesome, congrats. Thanks for letting us know!

                        If anything, comment on @Beh’s post with any edits or additions you suggest to help others.

                        Cheers!

                        Problem with config or JavaScript? Copy/paste it into JSHint.
                        Check out the detailed walkthroughs on install, config, modules, etc.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy