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

After MM runs for >24 hours, MMM-wiki begins pulling multiple articles per second #8

Open
reeserich opened this issue Jan 4, 2021 · 11 comments

Comments

@reeserich
Copy link

After I leave MagicMirror on for >24 hours (haven't been able to pinpoint an exact time at which this starts happening), it appears my update Interval (currently set at one minute) gets bypassed and updates start occuring very frequently, to the point where a snippet isn't even fully loaded before the next one is displayed. This is fixed by stopping and restarting MagicMirror.

@shin10
Copy link

shin10 commented May 11, 2022

Late, but I have a similar issue. In my case - I'm using the pages plugin, and a PIR to suspend the plugins if no one is around - I think it has to do with the used interval. I replaced it with a timeout and so far it seems to avoid multiple clashing calls, when the plugin shows up again.

@gjmkoper
Copy link

shin10, can you elaborate on what you exactly did to avoid this problem?

@shin10
Copy link

shin10 commented Dec 22, 2022

You can have a look at my fork here: master...shin10:MMM-wiki:master

It's working well for me but I hadn't created a pull request, yet, due to the "complexity" of my MM configuration (actually I can't remember why). ;)
I'll do so if you can verify it solves the issue in your setup as well.

@gjmkoper
Copy link

Thanks, I will try and report back in a few days from now.

@gjmkoper
Copy link

I brought about the changes in the MMM-wiki.js file and restarted. It now fetches two articles and then displays the last one for the given period. I'll wait for another 24h to see if it stays that way.

@gjmkoper
Copy link

I am sorry to report that this change did not work well for me. Two times restarted and two times a crash after about one hour. I will revert to the old version that kept working for longer :-)

@shin10
Copy link

shin10 commented Dec 24, 2022

Strange. Just out of curiousity: have you also removed the setup function like I did? I ask because I don't think two articles should be fetched at startup like you mentioned before.

@gjmkoper
Copy link

Hmm, I'm not sure what you mean. I use the standard setup from which I remove the center message (Hello Sexo or so) and switch to Dutch. How do I proceed to now have in the center the wiki messages?
My system is experimental, RPi4 with standard installation. I can do whatever you want me to try as long as it can be done in that environment.

@shin10
Copy link

shin10 commented Dec 24, 2022

Sorry, I was referring to the start function in line 195

@gjmkoper
Copy link

Yes, I did.

@gjmkoper
Copy link

To be specific, I used the file here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants