MMM-Domoticz : update time ?
Hello everyone and first, thanks to Mich for the availability of the MagicMirror and to all those who contributed to the writing of modules …
My problem: I found a module that retrieves information from the Domoticz box via the json API. Everything works very well except updating the data, these are only done when the MagicMirror starts and then no update.
Here is the module link: https://github.com/M-Arvidsson/MMM-domoticz
If a person has an idea I am taker, excuse my English I am french.
Thanks for any help you can bring.
@djam you are using a timeout instead of an interval https://github.com/M-Arvidsson/MMM-domoticz/blob/master/domoticz.js#L169
What’s the difference?
setTimeout(function…, 1000) Get’s executed once after 1 second
setInterval(function…, 1000) Get’s executed every second
@strawberry-3.141 Hello ,
Simply, and in addition with the explanation ! ;-)
Thank you very much, it works much better like that …
I will finally be able to attack the CSS of the module that I will post on the forum.