MagicMirror Forum

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

    UNSOLVED Calendar module fails to fetch data and discards old data, leaving nothing

    Troubleshooting
    2
    2
    20
    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.
    • F
      fribse last edited by

      So I see this every morning:

      0|MagicMirror  | [13.02.2022 12:34.28.850] [ERROR]
      0|MagicMirror  | Calendar Error. Could not fetch calendar:  http://p01-calendarws.icloud.com/ca/subscribe/1/IsLh6fUURb4n_nA6vhWYUmlEe98rz2BN8BhioUPzrC2HVohwJIUCbGuGeTwczZWvXjTqU7vicBATXHojb1p5fn8ub3RCBUwKfHm3jXJDzFE Error: Service Unavailable
      0|MagicMirror  |     at NodeHelper.checkFetchStatus (/home/pi/MagicMirror/js/node_helper.js:121:9)
      0|MagicMirror  |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
      

      Which gives this result in the mirror:
      32e2fdf4-a197-47c3-bc95-cb721275486a-billede.png

      Later in the day, the calendar days are fetched, and then updated on the screen.
      Why does the module discard the existing days when it can’t get the new download?
      My guess is that the calendar is somehow throttled, and thus rejects requests when there are too many, so how do I make the calendar module keep the old data until it can get new data?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @fribse last edited by

        @fribse the module design is all or nothing.

        when it gets an error, theat is reported and the displayer has nothing.

        you would have to change the code

        Sam

        Create a working config
        How to add modules

        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