Navigation

    MagicMirror Forum

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

    SOLVED adjusting reloadInterval

    Troubleshooting
    3
    6
    1817
    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
      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.

      broberg 1 Reply Last reply Reply Quote 0
      • R
        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
        • Cato
          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
            Richard238 @Cato last edited by

            @Cato No, I’m not using PM2

            1 Reply Last reply Reply Quote 0
            • broberg
              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
                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
                  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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy