Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module is flashing (reloading?) #18

Open
tomkenner opened this issue Dec 6, 2021 · 5 comments
Open

Module is flashing (reloading?) #18

tomkenner opened this issue Dec 6, 2021 · 5 comments

Comments

@tomkenner
Copy link

The module flashes at different intervals. Sometimes every 3 seconds, then not for longer...

I checked it: it's every time when he fetches http://myip/modules/MMM-WienerLinien//templates/MMM-WienerLinien.njk?s=1638776447287

But I don't know, why he sometimes fetches this URL so often.

@tomkenner
Copy link
Author

The socketNotificationReceived method is called very often. There the DOM is updated (which causes the flashing).

I inserted a console.log(Date.now());

This is the output for 1 given Station ['1293'] - time in ms:

MMM-WienerLinien.js:189 1638900459813
MMM-WienerLinien.js:189 1638900461598
MMM-WienerLinien.js:189 1638900462837
MMM-WienerLinien.js:189 1638900465654
MMM-WienerLinien.js:189 1638900467493
MMM-WienerLinien.js:189 1638900469000
MMM-WienerLinien.js:189 1638900471182
MMM-WienerLinien.js:189 1638900473023
MMM-WienerLinien.js:189 1638900475175
MMM-WienerLinien.js:189 1638900478562
MMM-WienerLinien.js:189 1638900478967
MMM-WienerLinien.js:189 1638900480284

@fewieden
Copy link
Owner

@tomkenner could you share your config of the module? Did you maybe override the defaults?

@tomkenner
Copy link
Author

Here is the config of the module:

           {
                    module: 'MMM-WienerLinien',
                    position: 'top_left',
                    config: {
                            stations: ['1293','2983'],
                            max: 5,
                            updateInterval: 60000,
                            rotateInterval: 5000,
                    }
            },

@fewieden
Copy link
Owner

@tomkenner using that config the method socketNotificationReceived was correctly called every 60sec like specified.

The rotate interval of every 5 seconds was the only thing causing the flashing.

Can you maybe give some more details about your setup?

Magic Mirror version?

node version?

module version?

@tomkenner
Copy link
Author

As you can see above (timestamps from log) the flashing occurs more often than every 5 seconds. At the beginning it worked fine. After some days it began with the flashing-problem.

Magic Mirror version: 2.17.1

node v12.22.5

module version: 2.0.1

@fewieden fewieden added this to ToDos Jul 9, 2022
@fewieden fewieden moved this to 📋 Backlog in ToDos Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants