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

Prevent refresh when modules is changed from hidden to visible #12

Open
mlcampbe opened this issue Sep 14, 2020 · 1 comment
Open

Prevent refresh when modules is changed from hidden to visible #12

mlcampbe opened this issue Sep 14, 2020 · 1 comment

Comments

@mlcampbe
Copy link

I have setup MMM-Pages to load 2 pages of modules. On the first page I have static info such as clock, calendar, newsfeed, etc... On the 2nd page I have a url being loaded in the iFramePing module that references my weather station. MMM-Pages is set to auto switch between the 2 pages every 15 seconds. All works as expected, but...

This weather station uses external sources that have limits on the number of API calls I can make in an hour/day. I am afraid I am going to exceed my API allotments so I am looking for an option to prevent MMM-iFrame-Ping from reloading the url when the page is hidden and then changed back to visible.

Is it possible that you can add a parameter such as refreshAfterHidden as true/false that will prevent the url from being refreshed and just reshow the module?

@AgP42
Copy link
Owner

AgP42 commented Apr 16, 2021

No sorry, that's not possible to "remember" a display without requesting it again.

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

2 participants