Read the statement by Michael Teeuw here.
Show webpage / iframe and reload
-
i had the same and i could fix it, in my special case, by simply reloading the webpage periodically i want to show.
(i use a wepage that crawls the status of my automatic lawn mower and shows me informations like status and battery)If you handle the webpage yourself, thats an easy option.
If you want to show a external source, it’s not working. -
@fox @usafa43tsolo which modules did you try, there are several of them
-
@strawberry-3.141 I used this module, which I found from the wiki: https://github.com/alberttwong/MMM-iFrame
-
@usafa43tsolo you could give this one a try https://github.com/TheBogueRat/MMM-iFrameReload
https://github.com/desertblade/iFrame -
Those are the two I’ve tried, specifically the first one. There was a thread that fox referenced that had the same issue and was supposedly fixed but I installed it correctly and fixed (I think) the config file. However, nothing ever shows up.
-
@usafa43tsolo which one of those 4?
-
-
@usafa43tsolo did you try to apply this fix i suggested here a few months ago? https://github.com/TheBogueRat/MMM-iFrameReload/issues/2#issuecomment-291011351
-
@strawberry-3.141 That did it. Loads perfectly now. Thank you for pointing that out!
-
@strawberry-3-141 you mean that fix?
adding the line:
iframe.setAttribute("timestamp", new Date().getTime());
this results in:
getDom: function() { var iframe = document.createElement("IFRAME"); iframe.style = "border:0" iframe.width = this.config.width; iframe.height = this.config.height; iframe.src = this.config.url + new Date().getTime(); iframe.setAttribute("timestamp", new Date().getTime()); return iframe; },
but no result
@usafa43tsolo could you share your .js file please?
edit:
i reinstalled it and then put the fix from @strawberry-3-141 from github.
now i see in my browser (in the respective frame)
Cannot GET /www.google.com