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

Local .ics file access error

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 989 Views 3 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.
  • K Offline
    kai
    last edited by Jan 15, 2021, 9:48 AM

    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 Offline
      lolo
      last edited by Jan 15, 2021, 10:26 AM

      Should be like this .

      url: "webcal://0.0.0.0:8080/file.ics"
      
      1 Reply Last reply Reply Quote 0
      • K Offline
        kai
        last edited by Jan 15, 2021, 11:38 AM

        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 Offline
          lolo
          last edited by lolo Jan 15, 2021, 1:59 PM Jan 15, 2021, 1:48 PM

          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
          • K Offline
            kai
            last edited by Jan 15, 2021, 3:30 PM

            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 Offline
              ashishtank Module Developer
              last edited by Jan 15, 2021, 4:02 PM

              @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
              • K Offline
                kai
                last edited by Jan 15, 2021, 4:54 PM

                Thank you very much @ashishtank for sharing this!
                Good to know! :-)

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