Read the statement by Michael Teeuw here.
MMM-Domoticz : update time ?
-
Hello everybody, I’m also working on this module, but I was not successful, the MM2 loads but does not show the monitored device.
Can anyone help? -
Same for me, MM2 starts and no errors but the module MMM-domoticz don’t show up at screen at all.
My Domoticz Pi is up and running.
Thankful for help.Regards
//Richard -
Hi.
Just started my first mirror and added the Domoticz module. To get it to work I change the setTimeout to setInterval but I also had to change the call in the start function from this.scheduleUpdate(this.config.initialLoadDelay) to this.scheduleUpdate(this.config.updateInterval). Not doing this I think it will set the timer to fire every 10 ms and that didn’t work for me. It will take some time(this.config.updateInterval) to get the module up the first time but I can live with that until I know js better.Hope it helps someone.
BR
/Markus -
Hi,
I try your solution and also change updateInterval from 5000 to 2000.
I let you know…
Thanks!
-
After 6 days, It works perfectly. Thanks you guys !
To summarize you have to :
- Change line 56 from
this.scheduleUpdate(this.config.initialLoadDelay);
to
this.scheduleUpdate(this.config.updateInterval)
- Change line 169 from
setTimeout(function() {
to
setInterval(function() {
- Optionnal, you can adjust timers at lines 13, 14 and 19
Have fun :-)