MagicMirror Forum

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

    SOLVED Module Update Interval question

    Troubleshooting
    2
    4
    147
    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
      RGN01 last edited by

      I have MMM-eswordoftheday installed but have a problem in that it doesn’t automatically update.

      It updates if I restart the MM but not automatically once a day or more frequently.

      What drives the automated updates?

      The pertinent part of config.js is:

          {
            module: 'MMM-eswordoftheday',
            position: 'top_left',
            header: '',
            config: {
              updateInterval: 21600000
            }
      

      I have reduced the update frequency down from 86400000 to 21600000 (what I think is 6 hours) in an effort to sort this, but to no avail!

      Any tips to debug this would be very welcome.

      Thanks.

      Richard

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

        @rgn01 it only updates once after startup… then never again

        edit the .js file and change line 17 from

            setTimeout(function() {
        

        to

            setInterval(function() {
        

        for grins, and easy testing,
        change updateInterval to 60000 (60 seconds)

        Sam

        Create a working config
        How to add modules

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

          Thanks @sdetweil - I missed your reply until this morning so apologies for not reporting back earlier.

          I have now made the change, to 3 hours, and will watch it. As the source only changes once a day that felt like a sensible compromise to ensure it updates but not too often!

          I’ll confirm in the next few days whether this has worked!

          Thanks again!

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

            I can confirm that this is now solved. Thank you, @sdetweil !

            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