Read the statement by Michael Teeuw here.
adjusting reloadInterval
-
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.
-
Resolved.
Changed setting in config.js, module now updating at the frequency required.
Thank you.
-
Have you configured to start mirror with pm2? If so you have to restart with
pm2 restart mm
-
@Cato No, I’m not using PM2
-
@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
-
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.
-
Resolved.
Changed setting in config.js, module now updating at the frequency required.
Thank you.