• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 Feb 25, 2017, 10:02 PM

    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.

    B 1 Reply Last reply Feb 26, 2017, 10:07 AM Reply Quote 0
    • R Offline
      Richard238 @Richard238
      last edited by Feb 26, 2017, 4:49 PM

      Resolved.

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

      Thank you.

      1 Reply Last reply Reply Quote 0
      • C Offline
        Cato Module Developer
        last edited by Feb 26, 2017, 12:07 AM

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

        R 1 Reply Last reply Feb 26, 2017, 9:34 AM Reply Quote 0
        • R Offline
          Richard238 @Cato
          last edited by Feb 26, 2017, 9:34 AM

          @Cato No, I’m not using PM2

          1 Reply Last reply Reply Quote 0
          • B Offline
            broberg Project Sponsor @Richard238
            last edited by Feb 26, 2017, 10:07 AM

            @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 Feb 26, 2017, 12:01 PM

              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 Feb 26, 2017, 4:49 PM Reply Quote 0
              • R Offline
                Richard238 @Richard238
                last edited by Feb 26, 2017, 4:49 PM

                Resolved.

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

                Thank you.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  1/6
                  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