Read the statement by Michael Teeuw here.
Scheduled restart for MM or module
-
@CyanKali have you checked out MMM-iFrameReload??
-
Thank you so much, that was exactly what I was looking for!
I can’t believe I did not find it with by searching, I thought I checked all the modules and forums…Someone added the possibility to get rid of the scrolling bars in the iframe module. I just copied the code from the iframe module and it works in the iframe reload module, too.
I don´t want to take credit for it since I just copied it, but if it helps someone else, here is what I did:
I added “iframe.scrolling = this.config.scrolling;” in the module file, there:// Override dom generator.
getDom: function() {
var iframe = document.createElement(“IFRAME”);
iframe.style = “border:0”
iframe.width = this.config.width;
iframe.height = this.config.height;
iframe.scrolling = this.config.scrolling;
iframe.src = this.config.url;
return iframe;
},After that, you can set “scrolling:“no”,” in the within the module in the config file.
Thanks again!
-
…me again. Unfortunately, iframe reload did not work. There seems to be an known issue with refreshing pages but I tried the suggested fixes and nothing worked:
https://github.com/TheBogueRat/MMM-iFrameReload/issues/2?_pjax=%23js-repo-pjax-containerThe author of the module does not answer me, maybe I can get some help here? When you click on the link you see my post where I describe what I already tried.
-
Did you ever resolve this? I’m running into the same issue.
-
Unfortunately no. I am still looking for a solution. And I´m still hoping somebody might help with this issue.
-
@CyanKali I’m not sure why the developer didn’t update the git pull for this one.
I ran into every issue you did when trying to implement the “fix.”
-
@CyanKali can you try
iframe.setAttribute("timestamp", new Date().getTime());between line 32 and 33 of the js file? -
@strawberry-3.141 This worked for me. Outstanding. Thank you.
-
Hi straawberry, thank you for your help!
So, my js file now looks like this:getDom: function() { var iframe = document.createElement("IFRAME"); iframe.style = "border:0" iframe.width = this.config.width; iframe.height = this.config.height; iframe.scrolling = this.config.scrolling; iframe.src = this.config.url; iframe.setAttribute("timestamp", new Date().getTime()); iframe.id = this.config.id; return iframe;is that right?
And my congif.js now looks like this:
{ module: 'MMM-iFrameReload', position: 'bottom_right', // This can be any of the regions. config: { // See 'Configuration options' for more information. url: "http://MY_URL", width: "80%", // Optional. Default: 400px height: "400px", // Optional. Default: 800px scrolling:"no", refreshInterval: 60, //Optional. Default: 3600 = 1 hour animationSpeed: 4000, } },Is that right?
The stream is working right now, but I don´t see any refresh animation. I will have to wait until tomorrow to see if it reloads because most of the times it takes some hours for the stream to freeze.
-
@CyanKali normally it should reload after 60 seconds in your case, for testing i found this site which returns every reload a random content and timestamp so you can check if it is refreshing https://www.random.org/quick-pick/?tickets=2&lottery=5x69.1x26
-
Sorry for the late reply. I updated to the new MM release and it broke everything. But now I fixed it and was able to test again.
I see the new content every time its refreshing, so it works!
Thank you so much for your help! -
I want to thank Strawberry and everyone for resolving this. I have been worrying on it for some time and this finally resolved it. Thanks for putting the full code in the example Cyankali.
-
I would like to ask for help - module doesn’t work for me at all. I’ve got an error:
Failed to load resource: the server responded with a status of 404 (Not Found) loader.js:190 Error on loading script: modules/iFrameReload//iFrameReload.jsbut it’s not possible. here is my config.js:
{ module: 'iFrameReload', position: 'top_center', // This can be any of the regions. config: { // See 'Configuration options' for more information. url: "http://portal.chmi.cz/files/portal/docs/meteo/rad/mobile/ra6_30min.gif", width: "160px", // Optional. Default: 400px height: "120px", // Optional. Default: 800px refreshInterval: 1800 //Optional. Default: 3600 = 1 hour } },the url exists, feel free to try. with iFrame module it works, but without updating/refresh
thanks for help
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login