MagicMirror Forum

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

    UNSOLVED XKCD not updating

    Troubleshooting
    2
    4
    212
    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.
    • R
      ruskythegreat last edited by

      So I’ve tried both the DailyXKCD and MMM-XKCD but I can’t get either to update. They will refresh if I restart MM though.
      This is my current extract: -

               module: 'DailyXKCD',
              position: 'top_right',
              config: {
                  updateInterval: 3600000,
                  grayScale: false,
                  invertColors: true,
                  limitComicWidth: 400,
                  limitComicHeight: 0,
                  randomComic: true,
                  showTitle: true,
                  }
      

      Any ideas please?

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

        @ruskythegreat according to the site they add a new image 3 times a WEEK, Monday, Wednesday, Friday

        Sam

        Create a working config
        How to add modules

        R 1 Reply Last reply Reply Quote 0
        • R
          ruskythegreat @sdetweil last edited by

          @sdetweil Yup, there’s an option in both modules.
          In DailyXKCD:
          randomComic Set to true, if you want to see a random comic on days, when there is no new comic.

          In MMM-XKCD there’s also an alwaysRandom option:
          randomComic bool false Display a random comic, where no new comic is available.
          alwaysRandom bool false If you always want to see a random comic, even on days where a new comic is available. Note: Only effective if randomComic is set to true.

          I’m currently running DailyXKCD, so If I’m reading that right, my config has updateInterval set to 3600000 which is 1h, I should get a new comic every hour (for testing!).

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

            @ruskythegreat no idea really… code looks ok… there is a small timing problem on startup, but

            open the developers window, ctrl-shift-i, select the tab labeled console, and put a unique part of the module name in the filter field (xkcd)

            see if there are any errors reported

            i did what the node_helper does to get an image, and it looks good…

            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