MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Local .ics file access error

    Troubleshooting
    3
    7
    193
    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.
    • kai
      kai last edited by

      Hi there,
      I tried to access a local .ics file with the default calendar module. When I use an external URL within the calendar’s configuration there is no problem - the calendar entries are displayed on my magic mirror.
      If I download the same file and copy it into my magic mirror directory and change the calendar’s configuration to URL: "http://localhost:8080/file.ics" (or URL: "http://IP_of_MM:8080/file.ics") the calendar module does not show any entries. I tried both putting the file into the magic mirror’s root directory (like @Sean mentioned in topic 9092) and putting into a subdirectory (like @Shockwave mentioned in topic 467) but I did not succeed yet.
      When I try to access the file directly by entering the config’s URL into a browser (on another PC within the same network) I always get an error like “cannot get file.ics”; when quitting the magic mirror there are access errors / 404 errors displayed as well.

      Hence to my mind it is some kind of access / authorization error…?!?

      Any hints appreciated. Thanks a lot.
      May the code be with you
      -kai

      1 Reply Last reply Reply Quote 0
      • L
        lolo last edited by

        Should be like this .

        url: "webcal://0.0.0.0:8080/file.ics"
        
        1 Reply Last reply Reply Quote 0
        • kai
          kai last edited by

          Thanks a lot, @lolo
          Unfortunately this does not make any difference… using webcal://... displays “no appointments” within the calendar as well. The MM’s log says “Calendar error. Could not fetch calendar … 404: Not found”.

          1 Reply Last reply Reply Quote 0
          • L
            lolo last edited by lolo

            I have local calendar and is working fine.
            Copy file.ics in modules folder and add to config

            url: "webcal://localhost:8080/modules/file.ics" 
            

            or

            url: "webcal://0.0.0.0:8080/modules/file.ics" 
            
            1 Reply Last reply Reply Quote 0
            • kai
              kai last edited by

              Thanks a lot @lolo - you made my day!
              That was the crucial point: the modules directory. I now can access the file via url: "webcal://[MM-IP]/modules/file.ics"! 🙂
              Thanks a lot again!!!

              1 Reply Last reply Reply Quote 0
              • A
                ashishtank last edited by

                @kai as @lolo suggested the files will be accessible if it is in modules directory. Not all files on root level are accessible directly. Below directories and their child directories and files are accessible from browser.

                "/config", "/css", "/fonts", "/modules", "/vendor", "/translations", "/tests/configs"
                
                1 Reply Last reply Reply Quote 0
                • kai
                  kai last edited by

                  Thank you very much @ashishtank for sharing this!
                  Good to know! 🙂

                  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