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.

    adjusting reloadInterval

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 3 Posters 2.4k Views 2 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.
    • R Offline
      Richard238
      last edited by

      If a realoadInterval of 60*1000 = one minute, how do I change it to reload at different intervals?

      I’ve tried various combinations of 3/10/30*1000, even change 1000 to 100.

      Save the .js and then ‘npm start’, but the refresh is still one minute.

      Is refresh controlled from elsewhere?

      Thank you.

      brobergB 1 Reply Last reply Reply Quote 0
      • R Offline
        Richard238 @Richard238
        last edited by

        Resolved.

        Changed setting in config.js, module now updating at the frequency required.

        Thank you.

        1 Reply Last reply Reply Quote 0
        • CatoC Offline
          Cato Module Developer
          last edited by

          Have you configured to start mirror with pm2? If so you have to restart with pm2 restart mm

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            Richard238 @Cato
            last edited by

            @Cato No, I’m not using PM2

            1 Reply Last reply Reply Quote 0
            • brobergB Offline
              broberg Project Sponsor @Richard238
              last edited by

              @Richard238 many modules have set a minimum reloadinterval to 10seconds and that can’t be changed unless you change the if statement that controls it.

              And if you are working directly on the pi you can just reload the page by pressing ctrl+r

              The only time I have needed to restart it completly is when messing with the code of the node_helper file

              1 Reply Last reply Reply Quote 0
              • R Offline
                Richard238
                last edited by

                It’s in a bespoke module, created by Gordon(izanbard)

                Module.register("MMM-MyTemps", {
                    defaults: {
                        host: "192.168.1.41",
                        path: "/temp2mcf.php?format=json",
                        reloadInterval: 60 * 1000 //1 min
                    },
                

                Module works fine, but I’d like it to reload more frequently.

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

                  Resolved.

                  Changed setting in config.js, module now updating at the frequency required.

                  Thank you.

                  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 Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy