darickc / MMM-BackgroundSlideshow

MIT License
143 stars 80 forks source link

Frequency of image change increases with every connected client #48

Closed fr0nk closed 8 months ago

fr0nk commented 4 years ago

Issue: When only a single client (browser) is connected to the MagicMirror, everything works fine. But open another tab with the MagicMirror Url and the images change in higher frequency in all tabs. Open a few more and the background image changes like crazy.

Config: Default installation with default settings, only changed transitionImages to false so the image change is visible with high frequency.

ryanm7780 commented 4 years ago

I'm seeing this same behavior. I have 3 tablets in the house all looking at a central server-only MagicMirror instance and the images just flash like crazy on each tablet.

dushyantahuja commented 3 years ago

I see the same issue, is there any way to avoid this?

crazyscot commented 9 months ago

The issue seems to arise because the timer is instantiated once on every client (by MMM-BackgroundSlideshow.js) , as opposed to just once (if it were to live in node_helper.js) - and when any timer fires the image changes.